[Dovecot] Inotify max_user_instances
skdovecot at smail.inf.fh-brs.de
Fri Mar 8 10:31:26 EET 2013
-----BEGIN PGP SIGNED MESSAGE-----
On Thu, 7 Mar 2013, Daniel L. Miller wrote:
> Maybe I have multiple problems - dunno.
> I've started seeing the following log lines:
> Mar 7 07:46:22 bubba dovecot: imap(dmiller at amfes.com): Warning: Inotify
> instance limit for user 5000 (UID vmail) exceeded, disabling. Increase
> max_user_instances is currently 128.
> I've tried stopping and restarting dovecot - the message immediately returns.
> I could just increase max_user_instances - but I'd like to understand what
> the number SHOULD be and why simply restarting Dovecot doesn't fix it. If
> this issue is for user "vmail" this is used by mail services only - and I've
> only got a few users on my system.
Dovecot needs one inotify entity per IDLE, maybe more for internal
purposes. So in theory, you will need: <max number of simultaneous users>
* <number of watched mailboxes per users> + <fixed amount>, because you
use one _system_ user for all IMAP-users.
> I'm also fighting a netfilter issue - my connection tracking counters keep
> climbing. Don't know if this is in any way related.
Do you use NAT on the same machine? Or some intrusion detection system?
When you get many short connections, esp. UDP ones, the connection tracker
fills up easily.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the dovecot