Situation: fresh dovecot install. I have postfix successfully accepting and delivering mail to a virtual mailbox.
I'm trying to pop that mailbox, but it can't see it. I hope someone can point out where my config is wrong.
Code:
dovecot -n
# 1.0.7: /etc/dovecot.conf
protocols: pop3
login_dir: /var/run/dovecot/login
login_executable: /usr/libexec/dovecot/pop3-login
mail_location: mbox:/var/spool/mail/%d/%n
mail_executable: /usr/libexec/dovecot/pop3
mail_plugin_dir: /usr/lib64/dovecot/pop3
auth default:
verbose: yes
debug: yes
debug_passwords: yes
passdb:
driver: pam
userdb:
driver: passwd
userdb:
driver: passwd-file
args: scheme=PLAIN username_format=%n /etc/auth/%d-passwd
content of the (domain)-passwd file
Code:
]# cat /etc/auth/domain.com-passwd
testuser:password:98:98::/home/user::INBOX=/var/spool/mail/vhosts/%d/%n
Keep in mind, postfix delivers successfully to /var/spool/mail/vhosts/%d/%n
The /var/log/secure logs I get say (trying both testuser and
testuser@domain.com)
Code:
Nov 4 21:58:19 cloud dovecot-auth: pam_unix(dovecot:auth): check pass; user unknown
Nov 4 21:58:19 cloud dovecot-auth: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser= rhost=::ffff:202.x.x.x
Nov 4 21:58:19 cloud dovecot-auth: pam_succeed_if(dovecot:auth): error retrieving information about user testuser
Nov 4 21:58:35 cloud dovecot-auth: pam_unix(dovecot:auth): check pass; user unknown
Nov 4 21:58:35 cloud dovecot-auth: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser= rhost=::ffff:202.x.x.x
Nov 4 21:58:35 cloud dovecot-auth: pam_succeed_if(dovecot:auth): error retrieving information about user testuser@domain.com
And /var/log/maillog says
Code:
Nov 4 21:58:09 cloud dovecot: auth(default): new auth connection: pid=30549
Nov 4 21:58:19 cloud dovecot: auth(default): client in: AUTH 1 PLAIN service=POP3 lip=::ffff:173.x.x.x rip=::ffff:202.x.x.x resp=AG51dABtaGFsbDY5Njk=
Nov 4 21:58:19 cloud dovecot: auth(default): pam(testuser,::ffff:202.x.x.x): lookup service=dovecot
Nov 4 21:58:21 cloud dovecot: auth(default): pam(testuser,::ffff:202.x.x.x): pam_authenticate() failed: User not known to the underlying authentication module
Nov 4 21:58:22 cloud dovecot: auth(default): client out: FAIL 1 user=testuser
Nov 4 21:58:35 cloud dovecot: auth(default): client in: AUTH 2 PLAIN service=POP3 lip=::ffff:173.x.x.x rip=::ffff:202.x.x.x resp=AG51dEBuYWtlZGtpd2kuY28ubnoAbWhhbGw2OTY5
Nov 4 21:58:35 cloud dovecot: auth(default): pam(testuser@domain.com,::ffff:202.x.x.x): lookup service=dovecot
Nov 4 21:58:37 cloud dovecot: auth(default): pam(testuser@domain.com,::ffff:202.x.x.x): pam_authenticate() failed: User not known to the underlying authentication module
Nov 4 21:58:38 cloud dovecot: auth(default): client out: FAIL 2 user=testuser@domain.com
I checked file permissions, paths...
I'm currently out of ideas