SASL authentication fails for usernames with an @

SYSTEM INFORMATION
OS type and version Ubuntu 22.04
Webmin version 1.999
Virtualmin version 7.1-1

I recently upgraded from Ubuntu 20.04 to 22.04. Previously, this worked correctly, but stopped working after upgrading.

If I have the domain example.com and have the address hello@example.com, I can log in successfully if I use the username hello-example.com, but not hello@example.com, which worked previously. It fails with the message:

SASL LOGIN authentication failed: authentication failure

I tried resetting the password both through Virtualmin and by the command line and that didn’t work.

Is there any way to make it work logging in with the email address as the username?

Hello,

Perhaps, /etc/default/saslauthd was overwritten upon distro-upgrade? What is its content?

1 Like

Here’s the file after removing all comments:

DESC="SASL Authentication Daemon"
NAME="saslauthd"
START=yes
MECHANISMS="pam"
MECH_OPTIONS=""
THREADS=5
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd"

It seems to be missing few options. Try this one:

DESC="SASL Authentication Daemon"
NAME="saslauthd"
START=yes
MECHANISMS="pam"
THREADS=5
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"
PARAMS="-m /var/spool/postfix/var/run/saslauthd -r"

That did it. Thanks!

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.