[Dovecot] pam_authenticate() failed
Hi List,
I have a problem with auth for just one user:
dovecot: Sep 30 09:56:16 Info: auth(default): new auth connection:
pid=3809
dovecot: Sep 30 09:56:17 Info: auth(default): client in: AUTH 1
PLAIN service=IMAP secured lip=127.0.0.1 rip=127.0.0.1
resp=AGoucnVpc0BtZXJreC12ZXJrZXJrLm5sAGJsb2VtMDEh
dovecot: Sep 30 09:56:17 Info: auth(default):
pam(j.ruis@merkx-verkerk.nl,127.0.0.1): lookup service=dovecot
dovecot: Sep 30 09:56:17 Info: auth(default):
pam(j.ruis@merkx-verkerk.nl,127.0.0.1): pam_authenticate() failed:
Authentication failed
dovecot: Sep 30 09:56:18 Info: auth(default): client out: FAIL 1
user=j.ruis@merkx-verkerk.nl
dovecot: Sep 30 09:56:18 Info: imap-login: Disconnected:
user=<j.ruis@merkx-verkerk.nl>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1,
secured
this login attempt is done via webmail but also connections with mail clients fail.
other users can login successful:
dovecot: Sep 30 09:58:36 Info: auth(default): client in: AUTH 1
PLAIN service=IMAP secured lip=127.0.0.1 rip=127.0.0.1 resp=AG1
hcnRpam5AeW91bmdndW5zLm5sADZtdW5zaG9l
dovecot: Sep 30 09:58:36 Info: auth(default):
pam(martijn@youngguns.nl,127.0.0.1): lookup service=dovecot
dovecot: Sep 30 09:58:36 Info: auth(default): client out: OK 1
user=martijn@youngguns.nl
dovecot: Sep 30 09:58:36 Info: auth(default): master in: REQUEST 72
4119 1
dovecot: Sep 30 09:58:36 Info: auth(default):
passwd(martijn@youngguns.nl,127.0.0.1): lookup
dovecot: Sep 30 09:58:36 Info: auth(default): master out: USER 72
martijn@youngguns.nl system_user=martijn@youngguns.nl uid=1063
gid=1062 home=/home/youngguns.nl/homes/martijn
dovecot: Sep 30 09:58:36 Info: imap-login: Login:
user=<martijn@youngguns.nl>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1,
secured
dovecot: Sep 30 09:58:36 Info: IMAP(martijn@youngguns.nl): Loading modules
from directory: /opt/csw/lib/dovecot/imap
dovecot: Sep 30 09:58:36 Info: IMAP(martijn@youngguns.nl): Module loaded:
/opt/csw/lib/dovecot/imap/lib90_antispam_plugin.so
dovecot: Sep 30 09:58:36 Info: IMAP(martijn@youngguns.nl): Effective
uid=1063, gid=1062, home=/home/youngguns.nl/homes/martijn
dovecot: Sep 30 09:58:36 Info: IMAP(martijn@youngguns.nl): maildir:
data=/home/youngguns.nl/homes/martijn/Maildir
dovecot: Sep 30 09:58:36 Info: IMAP(martijn@youngguns.nl): maildir:
root=/home/youngguns.nl/homes/martijn/Maildir,
index=/home/youngguns.nl/home
s/martijn/Maildir, control=, inbox=
dovecot: Sep 30 09:58:36 Info: IMAP(martijn@youngguns.nl): Disconnected:
Logged out
How can I determine why pam_authenticate() failed?
output of dovecot -n:
# 1.0.13: /opt/csw/etc/dovecot.conf log_path: /var/log/dovecot.log info_log_path: /var/log/dovecot.info.log protocols: imap pop3 imaps pop3s listen(default): * listen(imap): * listen(pop3): *:110 ssl_cert_file: /opt/csw/ssl/secure-youngguns-nl.crt ssl_key_file: /opt/csw/ssl/secure-youngguns-nl.key disable_plaintext_auth: no verbose_ssl: yes login_dir: /opt/csw/var/run/dovecot/login login_executable(default): /opt/csw/libexec/dovecot/imap-login login_executable(imap): /opt/csw/libexec/dovecot/imap-login login_executable(pop3): /opt/csw/libexec/dovecot/pop3-login login_greeting: Welkom bij de YoungGuns postbode. mail_location: maildir:~/Maildir mail_debug: yes mail_executable(default): /opt/csw/libexec/dovecot/imap mail_executable(imap): /opt/csw/libexec/dovecot/imap mail_executable(pop3): /opt/csw/libexec/dovecot/pop3 mail_plugins(default): antispam mail_plugins(imap): antispam mail_plugins(pop3): mail_plugin_dir(default): /opt/csw/lib/dovecot/imap mail_plugin_dir(imap): /opt/csw/lib/dovecot/imap mail_plugin_dir(pop3): /opt/csw/lib/dovecot/pop3 pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %v.%u auth default: mechanisms: login plain verbose: yes debug: yes debug_passwords: yes passdb: driver: pam userdb: driver: passwd socket: type: listen client: path: /opt/csw/var/spool/postfix/private/auth mode: 432 user: postfix group: postfix plugin: antispam_trash: Trash;trash;TRASH antispam_spam: spam antispam_mail_tmpdir: /tmp antispam_mail_sendmail: /opt/csw/bin/sa-learn antispam_mail_sendmail_args: antispam_mail_spam: --spam antispam_mail_notspam: --ham
--
thanks, Martijn
On Wed, 2009-09-30 at 10:06 +0200, Martijn de Munnik wrote:
Hi List,
I have a problem with auth for just one user:
dovecot: Sep 30 09:56:16 Info: auth(default): new auth connection: pid=3809 dovecot: Sep 30 09:56:17 Info: auth(default): client in: AUTH 1
PLAIN service=IMAP secured lip=127.0.0.1 rip=127.0.0.1
resp=AGoucnVpc0BtZXJreC12ZXJrZXJrLm5sAGJsb2VtMDEh
Note that the user's password is visible in the above resp text if you base64 decode it. Might want to change it. :)
How can I determine why pam_authenticate() failed?
Maybe look at PAM logs to see if they say anything? Unfortunately PAM's logging is pretty horrible and there's nothing Dovecot can do about it. See what modules /etc/pam.d/dovecot has enabled and maybe one of them prevents access? Although the most typical reason for auth failure is simply that the user typed the password wrong..
participants (2)
-
Martijn de Munnik
-
Timo Sirainen