I opened this thread a while ago. I figured all was well and moved on with live. Now I’m stuck once more and debugging is driving me insane.
My e-mail server is failing to send email. It will error out after a 10s delay for SASL_AUTH. Running swaks from the server throws:
postfix/submission/smtpd[32677]: warning: localhost[127.0.0.1]: SASL LOGIN authentication failed: Connection lost to authentication server, sasl_username=(unavailable)
dovecot[14258]: auth: Error: auth client 0 disconnected with 1 pending requests: EOF
I have been debugging this issue for days now and there is something not correct when dovecot wants to authenticate:
sudo time doveadm auth test user@domain.ca
Password:
passdb: user@domain.ca auth succeeded
extra fields:
user=user@domain.ca
0.02user 0.02system 0:32.23elapsed 0%CPU (0avgtext+0avgdata 7800maxresident)k
It takes 32 seconds to do something, but there is no indication as to what. Executing the SQL to return the username from the database from the CLI is near instant, that is also what I have in the log with a few msec.
I have verified and compared the permission for /var/run/ and all those are correct:
ls -ld /var/run/dovecot
drwxr-xr-x 5 root root 800 Dec 8 15:51 /var/run/dovecot
ls -l /var/run/dovecot/auth-userdb
srw-rw---- 1 postman mail 0 Dec 8 15:51 /var/run/dovecot/auth-userdb
Spamassassin does not appear to be an issue as well. Though it complaints in the log, while the permissions are right and the spamd user belongs to the correct group:
getent passwd spamd
spamd:x:1001:1000::/var/log/spamassassin:/bin/false
id spamd
uid=1001(spamd) gid=1000(spamd) groups=498(mail),150(postman),1000(spamd)
However journalctl shows:
lda(user@domain.ca)<12223><>: Error: auth-master: userdb lookup(user@domain.ca): connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=1001(spamd) egid=1000(spamd) missing +r perm: /var/run/dovecot/auth-userdb, we're not in group 498(mail), dir owned by 0:0 mode=0755)
Dec 08 15:22:41 postoffice dovecot[12223]: lda(12223): Fatal: Internal error
Executing a simple test to make sure spamd is not the issue:
runuser -u spamd -- test -r /var/run/dovecot/auth-userdb && echo "ok" || echo "fail"
ok
And the spamd response is near instant.
My issues have arrived since a MySQL CVE update applied to my Leap install. It seems that there is an issue with dovecot and lda, but I’m lost on how to solve that hopefully the community can give some guidance. What could this time-out be?