Score:0

Dovecot failing to authenticate new users

ca flag

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.

Clifton Zama avatar
ca flag
It says "unknown user", but when I go "doveadm user support" iit recognises the user.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.