I have set up postfix/dovecot with the following dovecot.conf:
disable_plaintext_auth = no
mail_privileged_group = mail
mail_location = mbox:~/mail:INBOX=/var/mail/%u
userdb {
driver = passwd
}
passdb {
args = %s
driver = pam
}
protocols = " imap"
protocol imap {
mail_plugins = " autocreate"
}
plugin {
autocreate = Trash
autocreate2 = Sent
autosubscribe = Trash
autosubscribe2 = Sent
}
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
}
ssl=required
ssl_cert = </etc/letsencrypt/live/mail.mydomain.id/fullchain.pem
ssl_key = </etc/letsencrypt/live/mail.mydomain.id/privkey.pem
log_path = /var/log/dovecot.log
auth_debug=yes
Now I have successfully added five users by simply adding them as linux users with adduser and passwd. After that I was able to set Thunderbird to connect and everything worked and still works fine for those users. Today I tried to add a user called "info" and a user called "support" and neither allows Thunderbird to fetch emails."doveadm" recognises them as users but authentication tests fail. But then I noticed that they fail even with. The dovecot log on the other hand says:
Mar 28 02:47:47 auth: Debug: pam([email protected],<myip>,<ZusUNev3e/bFXAba>): Performing passdb lookup
Mar 28 02:47:47 auth-worker(24702): Debug: conn unix:auth-worker (pid=24701,uid=97): auth-worker<2>: Handling PASSV request
Mar 28 02:47:47 auth-worker(24702): Debug: pam([email protected],<myip>,<ZusUNev3e/bFXAba>): Performing passdb lookup
Mar 28 02:47:47 auth-worker(24702): Debug: pam([email protected],<myip>,<ZusUNev3e/bFXAba>): lookup service=imap
Mar 28 02:47:47 auth-worker(24702): Debug: pam([email protected],<myip>,<ZusUNev3e/bFXAba>): #1/1 style=1 msg=Password:
Mar 28 02:47:49 auth-worker(24702): Info: pam([email protected],<myip>,<ZusUNev3e/bFXAba>): unknown user
Mar 28 02:47:49 auth-worker(24702): Debug: pam([email protected],<myip>,<ZusUNev3e/bFXAba>): Finished passdb lookup
Mar 28 02:47:49 auth-worker(24702): Debug: conn unix:auth-worker (pid=24701,uid=97): auth-worker<2>: Finished
Mar 28 02:47:49 auth: Debug: pam([email protected],<myip>,<ZusUNev3e/bFXAba>): Finished passdb lookup
Not sure what is going on.Please help.