Dovecot warning after update Debian from 6 to 7 (OpenVZ)

Magician

Verified User
Joined
Jan 31, 2010
Messages
135
Location
EU / PL
Code:
$Shutting down dovecot:
$Starting dovecot: Warning: fd limit (ulimit -n) is lower than required under max. load (1024 < 2048), because of default_client_limit

Any ideas how to resolve this? Before update Debian was no warning.
 
No mather what I wrote to /etc/security/limits.conf and reboot
* - nofile 2048
* soft nofile 2048
* hard nofile 2048

after rebot
ulimit -n wrote 1024. (dovecot warning exist) My Debian 7 is in OpenVZ container. Is any other solution?
 
You might need to add:

session required pam_limits.so

to the /etc/pam.d/common-session file.
 
Any ideas how to resolve this? Before update Debian was no warning.

You need to update your init script. Run this:

Code:
cp -f /usr/local/directadmin/custombuild/dovecot.boot.debian /etc/init.d/dovecot
chmod 755 /etc/init.d/dovecot
/etc/init.d/dovecot restart
 
Back
Top