Source: dovecot Version: 1:2.2.13-12~deb8u1 Severity: normal Dovecot stopped working after the upgrade from wheezy to jessie: None of our users could still log in.
After some debugging, the problem was fixed by switching from passdb { driver=pam } to passdb { driver=shadow }. However, I believe that pam authentication is still supposed to work. Maybe you can help find the underlying issue? Here some information -- first, output of doveconf -n: ---- # 2.2.13: /etc/dovecot/dovecot.conf # OS: Linux 3.16.0-4-amd64 x86_64 Debian 8.2 auth_debug = yes mail_location = maildir:~/Maildir passdb { driver = pam } protocols = imap service auth { user = root } ssl = required ssl_cert = </etc/dovecot/ssl.crt ssl_key = </etc/dovecot/private/ssl.key userdb { driver = passwd } ---- Content of /etc/pam.d/dovecot: ---- auth required pam_unix.so nullok account required pam_unix.so ---- auth_debug_passwords=yes confirms that I am using the correct password. As already mentioned, it also works with passdb { driver=shadow }. Dovecot's auth process is running as root, and the file in /etc/pam.d/ is named correctly. WhyDoesItNotWork.txt does not provide any more hints what could be wrong. Running "doveadm auth test username" fails. Running "pamtester dovecot username authenticate" reports success. /var/log/auth.log says: auth: pam_unix(dovecot:auth): check pass; user unknown auth: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=username rhost= Please let me know if I can provide further information. Thanks, Nis -- System Information: Debian Release: 8.2 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Init: systemd (via /run/systemd/system)