[Dovecot] per-user limit?
I am seeing a problem where users are limited to 6 imap logins total. One of my users has a bunch of phones and computers, and wants them all on at the same time.
I'm looking through my configuration, and I cannot see a limit on how many times a single user can connect. He is connecting from different IPs.
Any ideas? My logs show the following error when they attempt to auth for a 7th time:
dovecot: imap-login: Disconnected (no auth attempts): rip=111.yy.zz.xx, lip=81.209.183.113, TLS
$ dovecot -n # 2.0.16: /etc/dovecot/dovecot.conf # OS: OpenBSD 5.1 amd64 ffs auth_mechanisms = plain login base_dir = /var/dovecot/ listen = *, [::] mail_location = maildir:/usr/home/%u/Maildir managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave mbox_write_locks = fcntl passdb { driver = bsdauth } service auth { unix_listener /var/run/dovecot/auth-master { mode = 0600 } unix_listener /var/spool/postfix/private/auth { group = wheel mode = 0660 user = _postfix } user = root } service imap-login { process_limit = 128 process_min_avail = 6 service_count = 1 user = _dovecot } service pop3-login { process_limit = 64 process_min_avail = 6 service_count = 1 user = _dovecot } ssl_cert = </etc/ssl/dovecotcert.pem ssl_key = </etc/ssl/private/dovecot.pem userdb { driver = passwd } protocol pop3 { pop3_uidl_format = %08Xu%08Xv } protocol lda { mail_plugins = sieve postmaster_address = postmaster@theapt.org }
-- We are all in the gutter, but some of us are looking at the stars. -- Oscar Wilde
On 2012-01-16 4:15 AM, Peter Hessler <phessler@theapt.org> wrote:
I'm looking through my configuration, and I cannot see a limit on how many times a single user can connect. He is connecting from different IPs.
I think you're needing:
http://wiki2.dovecot.org/Services#Service_limits
--
Best regards,
Charles
On 2012 Jan 17 (Tue) at 06:26:39 -0500 (-0500), Charles Marcus wrote: :On 2012-01-16 4:15 AM, Peter Hessler <phessler@theapt.org> wrote: :>I'm looking through my configuration, and I cannot see a limit on how :>many times a single user can connect. He is connecting from different :>IPs. : :I think you're needing: : :http://wiki2.dovecot.org/Services#Service_limits :
Thanks for the pointer.
Hoever, this doesn't seem to help me.
When I do "doveconf | grep [foo]" I find that the limits are either '0' or '1'.
Except in "service imap-login { process-limit = 128 }". I had bumped that up from 64, and now it is at 1024. I don't have many users (about 6 that use imap), and nobody can use more than 6. I also double checked my process limits, and they are either unlimited, or measured in the ten-thousands.
-- Osborn's Law: Variables won't; constants aren't.
On Mon, 2012-01-16 at 10:15 +0100, Peter Hessler wrote:
I am seeing a problem where users are limited to 6 imap logins total. One of my users has a bunch of phones and computers, and wants them all on at the same time.
I'm looking through my configuration, and I cannot see a limit on how many times a single user can connect. He is connecting from different IPs.
Any ideas? My logs show the following error when they attempt to auth for a 7th time:
dovecot: imap-login: Disconnected (no auth attempts): rip=111.yy.zz.xx, lip=81.209.183.113, TLS
This means that the client simply didn't try to log in. If Dovecot reaches some kind of a limit, it logs about that. If there isn't anything else logged, I don't think the problem is in Dovecot itself.
Can you reproduce this yourself by logging in with e.g. telnet?
Timo Sirainen <tss <at> iki.fi> writes:
On Mon, 2012-01-16 at 10:15 +0100, Peter Hessler wrote:
I am seeing a problem where users are limited to 6 imap logins total. One of my users has a bunch of phones and computers, and wants them all on at the same time. I'm looking through my configuration, and I cannot see a limit on how many times a single user can connect. He is connecting from different IPs. Any ideas? My logs show the following error when they attempt to auth for a 7th time:
Hi, I also get the same problem of the same user getting a password mismatch error when may devices are tryibg to login to the same IMAP account at the same time. I didn't check how manylogins triggers this nasty behavior but noticed that this unwanted feature started right after I upgraded the the server from Debian Lenny to Squeeze. If anybody can point me to a hint about how I coukd change this behavior it woul be very much appreciated.
participants (4)
-
Charles Marcus
-
Michel Bisson
-
Peter Hessler
-
Timo Sirainen