[Dovecot] v2.1.rc1 released

Miguel Tormo mlists at edicom.eu
Thu Nov 24 22:35:09 EET 2011


El Jueves, 24 de Noviembre de 2011 20:25:47 Timo Sirainen escribió:
> I'm not sure if changing /etc/security/limits.conf helps. It's probably
> only used by PAM when user logs in, so if Dovecot is started in system
> bootup it's unlikely to have been even read yet. Also I think some OSes
> override the limits in /etc/init.d/ scripts. Of course, I could be
> completely wrong in all of the above, I haven't really tested any of
> it 

Well actually this is tricky, I'm not sure if it would work after a system boot, but I'm sure it works after a reboot of the service. It is also true what you say that some OSes override the limits in the /etc/init.d/ scripts, for example issuing an 'ulimit -n 4096' (if using bash) before dropping privileges (that should be inherited, but if privileges are dropped using "su" or something that uses PAM, then the /etc/security/limits.conf file comes into play again).

Another permanent way between reboots that I just googled is changing this line of includes/linux/fs.h:
#define INR_OPEN 1024           /* Initial setting for nfile rlimits */ 

and recompile the kernel :P.




More information about the dovecot mailing list