OK. I'm feeling like a bit of an idiot since I cannot get dovecot working. I am trying to use my shadow and passwd files for the password and user dbs but I get errors. First, here is my dovecot config. I am using the package from SlackBuilds.
Code:
# dovecot -n
# 2.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 3.10.17 x86_64 Slackware 14.1
auth_debug = yes
auth_verbose = yes
disable_plaintext_auth = no
mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
args = blocking=no
driver = shadow
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
args = blocking=no
driver = passwd
}
Next, a telnet session.
Code:
$ telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot ready.
a login user password
a NO [AUTHENTICATIONFAILED] Authentication failed.
I used my actual username and password but they are redacted here obviously.
Finally, the maillog for the attempt.
Code:
Sep 10 19:19:50 pi dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth
Sep 10 19:19:50 pi dovecot: auth: Debug: Read auth token secret from /var/run/dovecot/auth-token-secret.dat
Sep 10 19:19:50 pi dovecot: auth: Debug: auth client connected (pid=2233)
Sep 10 19:20:12 pi dovecot: auth: Debug: client in: AUTH^I1^IPLAIN^Iservice=imap^Isecured^Isession=9XA8S74CYAB/AAAB^Ilip=127.0.0.1^Irip=127.0.0.1^Ilport=143^Irport=56672^Iresp=<hidden>
Sep 10 19:20:12 pi dovecot: auth: Debug: shadow(user,127.0.0.1,<9XA8S74CYAB/AAAB>): lookup
Sep 10 19:20:12 pi dovecot: auth: shadow(user,127.0.0.1,<9XA8S74CYAB/AAAB>): unknown user
Sep 10 19:20:14 pi dovecot: auth: Debug: client passdb out: FAIL^I1^Iuser=user
I am probably missing something trivial, but I can't see it nor has google found an answer yet.