Plesk Roundcube sending error – SMTP Error (535): Authentication failed


When sending from Roundcube on an Ubuntu server with plesk, we get the following error:

SMTP Error (535): Authentication failed


While trying to send an email via Roundcube, the following error appears:

SMTP Error (535): Authentication failed

In /var/log/maillog following entries can be found:

warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
warning: SASL authentication failure: Password verification failed
warning: localhost[::1]: SASL PLAIN authentication failed: generic failure

saslauthd service is running:

    service saslauthd status
    Redirecting to /bin/systemctl status saslauthd.service
    ‚óŹ saslauthd.service - SASL authentication daemon.
    Loaded: loaded (/usr/lib/systemd/system/saslauthd.service; enabled; vendor preset: disabled)
    Active: active (running)

compatibility_level value was previously defined in /etc/postfix/ as following:

# grep compatibility_level /etc/postfix/
compatibility_level = 2

Here is the fix: Comment out compatibility_level in /etc/postfix/

Login to the server via SSH.
Create a backup of /etc/postfix/

# cp -p /etc/postfix/ /etc/postfix/main.cf_bck

Remove compatibility_level value from /etc/postfix/ using the favorite text editor.

# nano /etc/postfix/
#compatibility_level = 2

Check SMTP daemon configuration:
If RHEL/CentOS/CloudLinux is used, verify that chrooted mode is disabled:

egrep "^smtp " /etc/postfix/ | grep inet
smtp inet n - n - - smtpd

If Debian/Ubuntu is used, verify that chrooted mode is enabled:

egrep "^smtp " /etc/postfix/ | grep inet
smtp inet n - y - - smtpd

Reload postfix configuration:

service postfix reload