APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS











(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Home > Kerio > Setting Maximum Service Connections in Kerio Mailserver
Printer Friendly Version




Setting Maximum Service Connections in Kerio Mailserver



When you configure Services in Kerio Mailserver, you can restrict the number of allowed connections. See Service Parameter Settings in Kerio's on-line manual if you aren't already familiar with this.

One of the questions I often get is how to set those service limits. For example, how many concurrent https connections should we allow? You could just set it to an arbitrarily high number, but that can expose you to Denial of Service attacks where the machine is so busy with https that it can't do much else. On the other hand, you don't want your users unable to connect because you have set it too low.

There's no absolute answer, but I'd start with 5 times the number of users. That's probably much more than you need, but we can easily check how many are actually being used. For Mac and Linux, the tool we need is "lsof". You'll run this as root:


lsof -i:https | wc -l
lsof -i:25 | wc -l
 

The first will tell you how many https connections are open right now. The second counts smtp (port 25) connections. Note that we can use service names or port numbers.

Replace "wc -l" with "more" to see the actual connections.

For Windows, it's not so easy. A "netstat -a" will show posts, but that's hardly convenient. This Cports utility looks a little better, but like most Windows tools, it does both more and less than we want. No, I don't like Windows, really I do not. But this could just be my ignorance: there may be an easy way to duplicate the ease and power of lsof - or maybe even someone has taken the trouble to port it? Please leave a comment if you know an easy way to do this in Windows.



Anyway,, if I had 50 Kerio mail users, I might set the number of concurrent https connections to 250. Random "lsof -i:443 | wc -l" invocations might show me that usually there are 100 or so connections in use, so I might drop it to 150 if that were true. I'd want to count these during high activity periods: 9:00 AM, just after lunch, perhaps again in the late afternoon. That should give me a good idea of what is normal for these users. I'll want to add a few extra to allow for growth and unusual usage days.

The same tools can be used for every service. If you don't get a lot of inbound mail, you might limit smtp more than https. If you hardly every use NNTP, that can be throttled down.

Be sure to watch logs to be sure your users usage patterns haven't changed.


If this page was useful to you, please click to help others find it:  
Your +1's can help friends, contacts, and others on the web find the best stuff when they search.


1 comment




More Articles by Anthony Lawrence - Find me on Google+



Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



Kerio Control Firewall
Kerio Connect Mailserver

Kerio Control Firewall

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.


My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!


book graphic unix and linux troubleshooting guide




Buy Kerio from a dealer who knows tech: I sell and support

Kerio Connect Mail server, Control, Workspace and Operator licenses and subscription renewals




pavatar.jpg

This post tagged:

       - Kerio
       - Kerio Info
       - Kerio Pricing




Unix/Linux Consultants

Skills Tests

Guest Post Here