Some implementations of PostFix only allow passwords to contain letters and numbers, meaning you may need to ensure your Elastic Email SMTP password is only alphanumeric.
Find your Postfix config file, typically /etc/postfix/main.cf, and add the following:
smtp_sasl_auth_enable = yessmtp_sasl_password_maps = hash:/etc/postfix/sasl_passwdsmtp_sasl_security_options = noanonymoussmtp_sasl_tls_security_options = noanonymoussmtp_tls_security_level = encryptheader_size_limit = 4096000relayhost = [smtp.mikyhost.com]:587
Now you need to specify your credentials (Those are generated under the SMTP settings screen) in the separate file /etc/postfix/sasl_passwd (you’ll likely need to create it):
[smtp.mikyhost.com]:587 yourmikyhostSMTPUsername:yourmikyhostSMTPPassword
Next, make sure the file has restricted read and write access only for root, and use the postmap command to update PostFix’s hashtables to use this new file:
$ sudo chmod 600 /etc/postfix/sasl_passwd$ sudo postmap /etc/postfix/sasl_passwd
Finally, restart Postfix:
$ sudo systemctl restart postfix
If you are getting no mechanism available error messages it generally indicates that you are missing some SASL authentication libraries.
Install the missing module dependency using apt-get (i.e., Debian, Ubuntu):
$ apt-get install libsasl2-modules
Or using a yum (i.e., RedHat, Fedora, CentOS):
$ yum install cyrus-sasl-plain

