docker-mailserver: postfix/submissions/smtpd: SASL authentication failure: Couldn't find mech XOAUTH2
π Preliminary Checks
- I tried searching for an existing issue and followed the debugging docs advice, but still need assistance.
π What Happened?
I use roundcube to connect to IMAP with OAUTH2 and everything works correct. I can login to the mailbox and read the mails.
When I try to send an e-mail, I get the following error in the docker mailserver logs:
postfix/submissions/smtpd[1653]: warning: SASL authentication failure: Couldn't find mech XOAUTH2
postfix/submissions/smtpd[1653]: warning: SASL XOAUTH2 authentication failed: no mechanism available, sasl_username=(unavailable)
π Reproduction Steps
Authenticate with OAUTH2 and try to send and e-mail
π DMS Version
v14.0.0
π» Operating System and Architecture
Ubuntu 22.04
βοΈ Container configuration files
No response
π Relevant log output
postfix/submissions/smtpd[1653]: warning: SASL authentication failure: Couldn't find mech XOAUTH2
postfix/submissions/smtpd[1653]: warning: hostname[ip-adres]: SASL XOAUTH2 authentication failed: no mechanism available, sasl_username=(unavailable)
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (9 by maintainers)
Check that dovecote is requesting 3 scopes: openid, profile, and email.
Ensure that the username attribute is being returned along with the email. If the username is under
subyou might have to change the attribute to that.Try logging in with your email address instead and setting the attribute to email.
Checked and this is correct. Requesting openid, profie and email in the roundcube config
I found out that the attribute in the userinfo endpoint of Authelia for username is
preferred_username. Changed the configuration toAnd I can login again with roundcube to my mailbox. Sending e-mails remains the same. It is correct that in the introspection endpoint the username attribute is
username.Sending e-mails remains a problem.
Hi @polarathene @thechubbypanda
thank you for your feedback.
Unfortunately it doesnβt work. If I use
I get this error in the logs:
and I canβt login to IMAP with roundcube.
If I add
I can login to IMAP with roundcube but I get the following error when I send an e-mail with SMTP on port 465 and 587:
Thank you for your help! Kristof