Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: justrace on January 15, 2010, 10:31:25 PM

Title: How to increase the numbers of concurred IMAP connections?
Post by: justrace on January 15, 2010, 10:31:25 PM
Hi
I now have looking a lot of pages, but I cant finding where I can set the numbers of allowed IMAP-connections from the same klient.
It's because I have a lot of mail-addresses, and if I have more than 5 IMAP-accounts in the same klient (Outlook/Win ail/ Live Mail etc.) I got an error:

IMAP-server ....
Too many concurred connections ...

But I can hav 5 by each klient, and then no problem, except if they try to connect at same time.

Title: Re: How to increase the numbers of concurred IMAP connections?
Post by: Stefano on January 15, 2010, 10:59:37 PM
hi, welcome here

start reading the FAQ (link above), thank you
Title: Re: How to increase the numbers of concurred IMAP connections?
Post by: justrace on January 16, 2010, 12:04:43 AM
I have read the most of it, and when I type "config show imap" then I got:

ConcurrencyLimit=400
ConcurrencyLimitByIP=12
TCPPort=143
access=private
service=enabled

If its here I have to change something, I wonder what "400" and "12" is?
Because that limit I ran into, is 5.
Title: Re: How to increase the numbers of concurred IMAP connections?
Post by: Stefano on January 16, 2010, 12:08:19 AM
are you using imap or imaps?

post the result of
Code: [Select]
config show imaps
Title: Re: How to increase the numbers of concurred IMAP connections?
Post by: justrace on January 16, 2010, 12:12:30 AM
Same result, except from TCPPort= 993.

I'm using IMAP, from inside.

I just tried to make the 6th mailaccount in Outlook, and immidetly I got this:

421 per host concurrency limit reached
   Protokol:   IMAP
   Server:   mail.it-hulen.com
   Port:   143
   Fejlkode:   0x80004005
Title: Re: How to increase the numbers of concurred IMAP connections?
Post by: Stefano on January 16, 2010, 12:33:41 AM
try with

Code: [Select]
config setprop imap ConcurrencyLimitByIP 50
signal-event email-update
Title: Re: How to increase the numbers of concurred IMAP connections?
Post by: justrace on January 16, 2010, 12:43:49 AM
I tried, and restarted the mailprogram, with same result.
Title: Re: How to increase the numbers of concurred IMAP connections?
Post by: mmccarn on January 16, 2010, 03:15:35 AM
I think Stefano got the exact db variable name wrong...for which SME is not very forgiving.

Try this:
Code: [Select]
config setprop imap ConcurrencyLimitPerIP 50
signal-event email-update

Verify that you have set the new value in your IMAP configuration using:
Code: [Select]
cat var/service/imap/config
Verify that your running instance of imap is using the new configuration value using:
Code: [Select]
grep concurrency /var/log/imap/current(each line should look like @400000004b5120230167bfb4 tcpsvd: info: concurrency 16740 192.168.99.2 1/12, where the number after the "/" is the value of INSTANCES_PER_IP).
Title: Re: How to increase the numbers of concurred IMAP connections?
Post by: piran on January 16, 2010, 03:56:19 PM
Verify that you have set the new value in your IMAP configuration using:
Code: [Select]
cat var/service/imap/config
Code: [Select]
cat /var/service/imap/config
Title: Re: How to increase the numbers of concurred IMAP connections?
Post by: justrace on January 16, 2010, 04:13:05 PM
Hi
I have done:
config setprop imap ConcurrencyLimitPerIP 50
signal-event email-update
cat /var/service/imap/config
grep concurrency /var/log/imap/current

Still got the error.

But its not pr. IP the problem is, because if I have 3 e-mail klient open at the same time, each with 5 IMAP-accounts configured, there no problem.
The problem is more than 5 on each klient.
But I wanna have 10 or more IMAP-accounts on each klient.

>(each line should look like @400000004b5120230167bfb4 tcpsvd: info: concurrency 16740 192.168.99.2 1/12, where the number after the "/" is the value of INSTANCES_PER_IP).
Yes, I have 11/50 right now.
Title: Re: How to increase the numbers of concurred IMAP connections?
Post by: piran on January 16, 2010, 04:35:01 PM
config setprop imap ConcurrencyLimitPerIP 50
signal-event email-update
cat /var/service/imap/config
grep concurrency /var/log/imap/current
...may be better to:
Code: [Select]
config setprop imap ConcurrencyLimitPerIP 50
signal-event post-upgrade
signal-event reboot
cat /var/service/imap/config
grep concurrency /var/log/imap/current

YMMV
Title: Re: How to increase the numbers of concurred IMAP connections?
Post by: justrace on January 16, 2010, 05:33:10 PM
I have done it.

I right now have testet with 8 IMAP in the same klient, and no errors.

I have used sme since v.7 released, and fighting this problem from start.

I'm sendind you a virtual beer. No, wrong, a hole box.
Thanks!!  :D :D :D :D :D

Thanks to Stefano & mmcarn too, for trying, and getting me closer to an solution.

Thanks again.
Title: Re: How to increase the numbers of concurred IMAP connections?
Post by: justrace on January 17, 2010, 01:25:14 AM
Hi
follow-up:

I have now testing in more than 6 hours with 11 IMAp-accounts in Outlook, 7 in Win mail, and 8 in Live nail.

Its working, no errors.

 :D :D :D :D :D