Failed to authenticate on SMTP server with username "XYZ" using 2 possible authenticators

Failed to authenticate on SMTP server with username "XYZ" using 2 possible authenticators

If you know the login credentials are fine, but you still get this error, then you should:

1) Go into Backend -> Miscellaneous -> PHP Info and search for "Registered Stream Socket Transports" and make sure it contains at least "tls, tlsv1.0, tlsv1.1, tlsv1.2".
As an example, in my current install, i have this: "tcp, udp, unix, udg, ssl, sslv3, sslv2, tls, tlsv1.0, tlsv1.1, tlsv1.2".
2) Make sure your password does not contain special chars like the & sign. If it does, change it so that it doesn’t.
3) If you are using CPanel, go into WHM > Tweak Settings > Allow all users to make external SMTP connections.
4) If you are using CPanel/WHM and you’re using a ConfigServer Firewall, there is a setting in the Firewall Settings called “SMTP_BLOCK” which says:
Block outgoing SMTP except for root, exim and mailman (forces scripts/users to use the exim/sendmail binary instead of sockets access). This replaces the protection as WHM > Tweak Settings > SMTP Tweaks
Now, if the SMTP_BLOCK is Enabled then you need to scroll down to where it says "SMTP_ALLOWUSER" and then type in the username of the account that AppMail is hosted on. Adding the username and saving/restarting the firewall then then allow the account to connecting to external SMTP servers.

    • Related Articles

    • Adding a new Amazon SES delivery server (Web API)

      This article will drive you through the steps on creating and validating an Amazon SES delivery server. First of all, you have to create an account here. Once you are done and you are logged in, you should search for the Simple Email Service. The ...
    • Using Sparkpost, I get a “Forbidden” error message when I try to validate the delivery server

      The error message can look like: Cannot send the confirmation email using the data you provided. Here is a transcript of the error message: Forbidden. This happens because when you have created the SparkPost Api key, you haven’t checked all the ...
    • Using Redis for cache and mutexes

      Since AppMail 1.5.0 is possible to use Redis for the cache and mutex components. In order to do this, after you install and setup redis, you have to open the apps/common/config/main-custom.php file and add the following components into it: ...
    • Add a new delivery server type

      If you look in apps/common/models/ you will see lots of files called DeliveryServer{TYPE}.php where type is the provider they implement, for example DeliveryServerAmazonSesWebApi.php In order to create your own delivery server implementation, you ...
    • Nginx server basic configuration for AppMail

      Please note that the below configuration is going to use php-fpm for what is worth. /etc/nginx/nginx.conf # For more information on configuration, see: # * Official English Documentation: https://nginx.org/en/docs/ # * Official Russian Documentation: ...