Hi folks, My institute's mail server was upgraded to RHEL5 with dovecot 1.0-2.1rc5 recently. And it uses PAM authentication which points to LDAP server. Now from time to time it gets Error like dovecot: Aug 29 09:23:59 Error: auth(default): pam(joshua,192.168.177.52): pipe() failed: Too many open files and users can not login. My config is like dovecot -n # /etc/dovecot.conf base_dir: /var/run/dovecot/ log_path: /var/log/dovecot info_log_path: /var/log/dovecot listen: * login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login login_greeting: ASIAA Dovecot ready. login_processes_count: 4 mail_location: mbox:/asiaa/home/%u/:/asiaa/home/%u/mail/:INBOX=/var/mail/%u:INDEX=/asiaa/home/%u/mail/dovecot_indexes mail_debug: yes mail_full_filesystem_access: yes mail_drop_priv_before_exec: yes mail_executable(default): /etc/dovecot_postlogin_beforeimap.sh mail_executable(imap): /etc/dovecot_postlogin_beforeimap.sh mail_executable(pop3): /etc/dovecot_postlogin_beforepop3.sh mail_process_size: 512 mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 pop3_uidl_format(default): %08Xu%08Xv pop3_uidl_format(imap): %08Xu%08Xv pop3_uidl_format(pop3): %08Xv%08Xu auth default: passdb: driver: pam userdb: driver: passwd Any suggestion or help is appreciated Cheers Joshua
Joshua, C.S. Chen wrote:> Hi folks, > My institute's mail server was upgraded to RHEL5 with dovecot 1.0-2.1rc5 > recently. And it uses PAM authentication which points to LDAP server. > Now from time to time it gets Error like > > dovecot: Aug 29 09:23:59 Error: auth(default): > pam(joshua,192.168.177.52): pipe() failed: Too many open files > > > and users can not login. My config is like > > dovecot -n > > # /etc/dovecot.conf > base_dir: /var/run/dovecot/ > log_path: /var/log/dovecot > info_log_path: /var/log/dovecot > listen: * > login_dir: /var/run/dovecot/login > login_executable(default): /usr/libexec/dovecot/imap-login > login_executable(imap): /usr/libexec/dovecot/imap-login > login_executable(pop3): /usr/libexec/dovecot/pop3-login > login_greeting: ASIAA Dovecot ready. > login_processes_count: 4 > mail_location: > mbox:/asiaa/home/%u/:/asiaa/home/%u/mail/:INBOX=/var/mail/%u:INDEX=/asiaa/home/%u/mail/dovecot_indexes > mail_debug: yes > mail_full_filesystem_access: yes > mail_drop_priv_before_exec: yes > mail_executable(default): /etc/dovecot_postlogin_beforeimap.sh > mail_executable(imap): /etc/dovecot_postlogin_beforeimap.sh > mail_executable(pop3): /etc/dovecot_postlogin_beforepop3.sh > mail_process_size: 512 > mail_plugin_dir(default): /usr/lib/dovecot/imap > mail_plugin_dir(imap): /usr/lib/dovecot/imap > mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 > pop3_uidl_format(default): %08Xu%08Xv > pop3_uidl_format(imap): %08Xu%08Xv > pop3_uidl_format(pop3): %08Xv%08Xu > auth default: > passdb: > driver: pam > userdb: > driver: passwd > > > > > Any suggestion or help is appreciated > Cheers > Joshua >and here is another symptom: (/var/log/dovecot) dovecot: Aug 29 10:14:16 Info: pop3-login: Disconnected: Inactivity: rip=192.168.176.21, lip=192.168.177.5 dovecot: Aug 29 10:14:24 Info: pop3-login: Disconnected: Inactivity: rip=192.168.176.22, lip=192.168.177.5 dovecot: Aug 29 10:14:38 Info: pop3-login: Disconnected: Inactivity: rip=192.168.177.52, lip=192.168.177.5 dovecot: Aug 29 10:14:39 Info: pop3-login: Disconnected: Inactivity: rip=192.168.176.168, lip=192.168.177.5 dovecot: Aug 29 10:14:56 Info: imap-login: Disconnected: Inactivity: rip=192.168.176.47, lip=192.168.177.5 dovecot: Aug 29 10:15:13 Info: pop3-login: Disconnected: Inactivity: rip=192.168.177.28, lip=192.168.177.5 dovecot: Aug 29 10:15:18 Info: imap-login: Disconnected: Inactivity: rip=192.168.177.174, lip=192.168.177.5, TLS dovecot: Aug 29 10:15:33 Info: pop3-login: Disconnected: Inactivity: rip=192.168.176.165, lip=192.168.177.5 dovecot: Aug 29 10:15:35 Info: imap-login: Disconnected: Inactivity: rip=192.168.177.202, lip=192.168.177.5, dovecot: Aug 29 10:15:39 Info: pop3-login: Disconnected: Inactivity: rip=192.168.177.172, lip=192.168.177.5 dovecot: Aug 29 10:15:45 Info: pop3-login: Disconnected: Inactivity: rip=192.168.176.167, lip=192.168.177.5 than all pop3 clients are waiting,, Cheers Joshua
Hello, On Wed, Aug 29, 2007 at 10:06:41AM +0800, Joshua, C.S. Chen wrote:> My institute's mail server was upgraded to RHEL5 with dovecot 1.0-2.1rc5 > recently. And it uses PAM authentication which points to LDAP server. > Now from time to time it gets Error like > > dovecot: Aug 29 09:23:59 Error: auth(default): > pam(joshua,192.168.177.52): pipe() failed: Too many open filesThis looks similar to [221572]. We don't know what was causing that though. I can imagine that even [154314] may be causing that (which is hopefully getting fixed in RHEL 5.2). [221572] https://bugzilla.redhat.com/show_bug.cgi?id=221572 [154314] https://bugzilla.redhat.com/show_bug.cgi?id=154314> passdb: > driver: pam > userdb: > driver: passwdPlease, try to use userdb ldap in dovecot.conf. That way you don't use nss_ldap, which is buggy. -- Tomas Janousek, SW Engineer, Red Hat, Inc.
On Wed, 2007-08-29 at 10:06 +0800, Joshua, C.S. Chen wrote:> Hi folks, > My institute's mail server was upgraded to RHEL5 with dovecot 1.0-2.1rc5 > recently. And it uses PAM authentication which points to LDAP server. > Now from time to time it gets Error likerc5 is pretty old. There are v1.0.x packages for RHEL5.> dovecot: Aug 29 09:23:59 Error: auth(default): > pam(joshua,192.168.177.52): pipe() failed: Too many open filesLook at dovecot-auth process's list of open files: ls -l /proc/`pidof dovecot-auth`/fd/ How many are there and what are opened most of the time?> auth default: > passdb: > driver: pam > userdb: > driver: passwdAre you using also nss_ldap? See http://wiki.dovecot.org/AuthDatabase/Passwd. With rc5 you can't fix it properly, and that could also be the cause of your problems. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070909/26df85df/attachment-0002.bin>