After many hours trying to set up a new mail server, I just can't figure out why the passwords which postfixadmin store are a mismatch with what dovecot passes for authentication.
In postfixadmin, password encryption setting is:
$CONF['encrypt'] = 'md5crypt';
And in dovecot
default_pass_scheme = MD5-CRYPT
I've tried to log in using
telnet
doveadm
desktop mail client
And in all three cases the mail.log always shows the same result
Jun 4 19:02:14 mail dovecot: auth-worker(8215): sql([email protected]): Password mismatch
Jun 4 19:02:14 mail dovecot: auth-worker(8215): Debug: sql([email protected]): MD5-CRYPT(oSPYmCa5Lhzc2ok2bLfQNqDCx) != '$1$37cc98c3$FeIfz2v7CfeSroJkyH4rK0'
Jun 4 19:02:16 mail dovecot: auth: Debug: client passdb out: FAIL#0111#[email protected]
To me it looks like dovecot encrypts password with MD5-CRYPT() in a way that doesn't match the database entry made by postfixadmin. Is this the problem? And if so, how can I solve it?