Authentication not working
Issue #782
new
On the latest version* I cannot login into the admin interface nor send emails.
Everything else works as expected.
When sending mails I get an authentication error after a long waiting period.
docker.io/analogic/poste.io latest a0115ada9c75
I wasn’t sure where to look for logfiles regarding this problem.
The only auth related log files seem to be for imap ¯\_(ツ)_/¯
Comments (1)
-
reporter - Log in to comment
Ok I found the problem after digging around in the code and adding/using nasty exception drivem debugging
I’ll try to talk key points here.
I read-only bind mount /etc/letsencrypt/…./privkey.pem to /etc/ssl/server.key on the container
Your auth script uses doveadm to verify the sha512-crypt hash of the password of the user
doveadm loads /etc/dovecove/conf.d/* and verifies its settings
the key however has ownership root:root and permissions rw- --- ---
this causes a permission error
following this doveadm aborts with a configuration error without even checking the hash against the password
authentication fails due to doveadm not returning
(verified)
on stdoutFunny detail about this. That only causes issues with sending mails or logging into the server admin interface.
So I’d say maybe not really a bug… but something worth discussing about.