Increasing the number of concurrent imap connections allowed from any one IP address
Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Increasing the number of concurrent imap connections allowed from any one IP address
Hi all,
I'm running the Parallels Pro X 10.3.0 control panel for web hosting on CentOS 5.2. All's running very well with one minor issue.
I've some heavy-use clients who use a proxy to connect to our mail server, so their outward facing IP is the same for each connection.
It appears that the imap server on my box is hitting a wall after a limit is hit, generating errors on the client side like 'The imap server has terminated the connection' or 'Imap connection limit reached'.
I've put in a ticket with the provider, but am hoping that this knowledgeable community may have an idea on how to increase the concurrent connection limit for IMAP.
The IMAP and POP3 servers are plug-and-play on standard UNIX
systems. There is no special configuration needed. Please ignore all
rumors to the effect that you need to create an IMAP configuration
file.
And then they go straight into source code modification and re-compilation.
Ouch, my friend, ouch. Apparently, unless you can recompile from the source, configuration is not an option.
Or just tell me that there is another uw-imap.
Note to self: _avoid_ uw-imap at _all_ costs for anything serious.
Understood, and I didn't intend to be glib. Your options, short of limiting the client's concurrent connections, are essentially none.
The appliance may be light on resources, and thereby has capped the number of concurrent connections, or this could be a "value add" for the vendor. Once you buy into an "appliance", you're at the vendors mercy.
Thanks for all the replies. Yes, it is an appliance control panel over CentOS, but I may well modify it to use dovecot as that's the imap server of choice with CentOS/RHEL.
I had already found that little <sneering look> oh so helpful </sneering look> piece of non-information ...thought that I'd post just in case there were docs that hadn't been revealed in a day's worth of googling.
I'll post the results, whatever they were, so that others aren't caught.
The answer was far more simple than I though it could be.
One way of doing this was to globally change how xinetd handles concurrent connections from a given source IP. Not my preference, but before I found the better solution, I did the value in xinetd.conf from:
This isn't optimal as it defines a 100% increase in this value for all services managed by xinetd, not just imap.
Then came the better solution from the software vendor support (finally!)
Quote:
to increase limit per IP for imap you have to add directive 'per_source = 100' into /etc/xinetd.d/wp_imap and /etc/xinetd.d/wp_imaps and restart xinetd. It will override default per_source directive, and increase limit only for imap.
The wp_ prefix indicates a 'webppliance' file, which is a term used by Parallels/Ensim for this product.
Solution works and is far better than having to recompile from source, thereby voiding my ability to obtain support from the vendor.
Thanks to all who offered suggestions...I hope this post helps others who use Ensim/Parallels Pro X v 10.3.x
Regards,
-Ray
Last edited by rsleventhal; 07-17-2008 at 10:50 AM.
Don't worry about the per_source increase - its is a cap, not a pre-allocation of resources.
It appears your appliance has some room for tuning - that's very good news for you. And that you vendor came through with a good response is even better news. More timely responses from them might give them the Gold.
Don't worry about the per_source increase - its is a cap, not a pre-allocation of resources.
It appears your appliance has some room for tuning - that's very good news for you. And that you vendor came through with a good response is even better news. More timely responses from them might give them the Gold.
Best of luck!
I've been hosting for nearly a decade, and with Ensim as my control panel for most of that time. Ensim support was horribly lacking but since having been picked up by SWSoft (now Paralells) things have gotten far better.
The control panel software is very tunable...which is why I was so puzzled by the first reply (from them, not here) of 'recompile from source, but of course if you do that, we can't support you any longer'.
Their next and rather quick reply was the answer I needed.
On top of all this, I've just changed my business model from colocation of my own machines to leasing a dedicated server from a provider about whom I can't say enough good things.
If anyone out there needs a good, solid and reputable dedicated server provider, I wholeheartedly recommend OLM.NET. I don't work for them. I'm just one of their customers. But they're service is outstanding and their support even more so.
Quote:
OK, thank you very much for the feedback, since we all learned something, and happy that you had a solution that did not involves paying more !
I wholly agree...great to have answers without spending more $$.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.