Hi all,
I’ve been having enormous problems with pam authentication. I use opensuse 11.1, postfix 2.5.5, dovecot 1.1.7. , ssl, dovecot-sasl. Everything works fine within local network, but I can’t log in from outside (using outlook express 6). Output of dovecot -n:
protocols: imap imaps pop3 pop3s
listen(default): *:143
listen(imap): *:143
listen(pop3): *:110
ssl_listen(default): *:993
ssl_listen(imap): *:993
ssl_listen(pop3): *:995
verbose_ssl: yes
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_location: mbox:/var/spool/mail/%n
mail_debug: yes
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
auth default:
mechanisms: plain login
debug_passwords: yes
passdb:
driver: pam
args: dovecot
userdb:
driver: passwd
socket:
type: listen
client:
path: /var/spool/postfix/private/auth
mode: 432
user: postfix
group: postfix
/etc/pam.d/dovecot:
#%PAM-1.0
auth include common-auth
account include common-account
password include common-password
session include common-session
auth required pam_unix.so
account required pam_unix.so
mail log says something like:
Jun 12 21:07:56 mail dovecot: auth(default): new auth connection: pid=12127
Jun 12 21:08:44 mail dovecot: auth(default): client in: AUTH 1 PLAIN service=pop3 secured lip=192.168.1.67 rip=xx.xxx.xxx.xx lport=995 rport=2220 resp=AG1lc2luZ3ZhbABTWktPUE9XSUNaMQ==
Jun 12 21:08:44 mail dovecot: auth-worker(default): pam(username,xx.xxx.xxx.xx): lookup service=pop3
Jun 12 21:08:44 mail dovecot: auth-worker(default): pam(username,xx.xxx.xxx.xx): #1/1 style=1 msg=Password:
Jun 12 21:08:44 mail dovecot: auth-worker(default): pam(username,xx.xxx.xxx.xx): pam_authenticate() failed: Authentication failure (password mismatch?)
Jun 12 21:08:44 mail dovecot: auth(default): new auth connection: pid=12130
Jun 12 21:08:46 mail dovecot: auth(default): client out: FAIL 1 user=username
Jun 12 21:08:46 mail dovecot: pop3-login: Disconnected (auth failed, 1 attempts): user=<username>, method=PLAIN, rip=xx.xxx.xxx.xx, lip=192.168.1.67, TLS: Disconnected
I can’t figure out what I am doing wrong. Any suggestions would be much appreciated.