Plesk

Sending messages from webmail fails: SMTP Error (250): Authentication failed

Symptoms

Cause

Postfix misconfiguration.

Resolution

  1. Connect to the server via SSH;

  2. Check that smtpd_tls_protocols, smtpd_tls_ciphers and smtpd_tls_security_level, smtpd_sasl_auth_enable are set as below using the following command:

    # grep -E "smtpd_tls_protocols|smtpd_tls_security_level|smtpd_tls_ciphers|smtpd_use_tls|smtpd_sasl_auth_enable" /etc/postfix/main.cf
    smtpd_use_tls = yes
    smtpd_tls_security_level = may
    smtpd_tls_ciphers = medium
    smtpd_tls_protocols = TLSv1 TLSv1.1 TLSv1.2
    smtpd_sasl_auth_enable = yes

  3. Make sure that smtpd_tls_exclude_ciphers, smtpd_sasl_security_options, smtpd_tls_auth_only and tls_ssl_options are not defined in /etc/postfix/main.cf file (the output of the command below should be empty):

    # grep -E "smtpd_tls_exclude_ciphers|smtpd_sasl_security_options|smtpd_tls_auth_only|tls_ssl_options" /etc/postfix/main.cf

  4. Reload postfix if any changes were made:

    # service postfix reload