On 29/09/2021 12:06, Nils Freydank wrote:
Hi Wol,

my credentials for dovecot have the following syntax, i.e. four additional
colons after the password:
'<user name>:<type of the password><password itself>::::'
I use only virtual users, so I can't tell if mixing works, too.

For the dovecot setup I can recommend this guide:
https://prefetch.eu/blog/2020/email-server/#mda-dovecot

Looks quite a good guide ...

Two general remarks:
1st, be more patient. This is a mailing list, not a support chat.

I know :-) but I thought 24hrs would lead to at least one bite ... :-)

2nd, I _strongly_ recommend to use some kind of hashing instead of plain
passwords. I use '{ARGON2ID}' and generate the hashes by running
'doveadm pw -s ARGON2I'
which asks for the plain text password on stdin.

Yup. But it's a home server and security is pretty lax anyway...
And having problems full stop I thought I'd try and get it working before worrying about hashing - I've already tried hashing with exactly the same results ...


These are the logs reported by systemctl ...

Sep 29 22:01:11 thewolery dovecot[1328]: auth-worker(4883): conn unix:auth-worker (pid=4881,uid=76): auth-worker<1>: passwd(antlists,192.168.1.65,<0zFJoSjNUfnAqAFB>): unknown user Sep 29 22:01:11 thewolery dovecot[1328]: auth: Error: passwd(antlists,192.168.1.65,<0zFJoSjNUfnAqAFB>): user not found from userdb Sep 29 22:01:11 thewolery dovecot[1328]: imap: Error: auth-master: login: request [2101346305]: Login auth request failed: Authenticated user not found from userdb, auth lookup id=2101346305 (auth connect> Sep 29 22:01:11 thewolery dovecot[1328]: imap-login: Internal login failure (pid=4880 id=1): user=<antlists>, method=PLAIN, rip=192.168.1.65, lip=192.168.1.218, mpid=4882, TLS, session=<0zFJoSjNUfnAqAFB> Sep 29 22:01:11 thewolery dovecot[1328]: auth-worker(4883): conn unix:auth-worker (pid=4881,uid=76): auth-worker<2>: passwd(antlists,192.168.1.65,<3ddJoSjNUvnAqAFB>): unknown user Sep 29 22:01:11 thewolery dovecot[1328]: auth: Error: passwd(antlists,192.168.1.65,<3ddJoSjNUvnAqAFB>): user not found from userdb Sep 29 22:01:11 thewolery dovecot[1328]: imap: Error: auth-master: login: request [2807693313]: Login auth request failed: Authenticated user not found from userdb, auth lookup id=2807693313 (auth connect> Sep 29 22:01:11 thewolery dovecot[1328]: imap-login: Internal login failure (pid=4884 id=1): user=<antlists>, method=PLAIN, rip=192.168.1.65, lip=192.168.1.218, mpid=4885, TLS, session=<3ddJoSjNUvnAqAFB>

and from dovecot.conf

# authentication configuration:
auth_verbose = yes
auth_mechanisms = plain
passdb {
  driver = passwd-file
  args = /etc/dovecot/passwd
}

userdb {
  driver = passwd-file
  args = username_format=%n /etc/dovecot/passwd
  override_fields = uid=vmail gid=vmail home=/home/vmail/%n
}

Cheers,
Wol

Reply via email to