How to configure PostFix with VMA Emailer

How to configure PostFix with VMA Emailer

To use VMA Emailer as relay host you must update the PostFix configuration.

 

PostFix

Some implementations of PostFix only allow passwords to contain letters and numbers, meaning you may need to ensure your VMA Emailer password is only alphanumeric.

Find your Postfix config file, typically /etc/postfix/main.cf, and add the following:

 

smtp_sasl_auth_enable = yes

smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd

smtp_sasl_security_options = noanonymous

smtp_sasl_tls_security_options = noanonymous

smtp_tls_security_level = encrypt

header_size_limit = 4096000

relayhost = [smtp.elasticemail.com]:587

Now you need to specify your credentials (optionally, use apikey as a username and an API Key as the password) in the separate file /etc/postfix/sasl_passwd (you'll likely need to create it):

 

[smtp.elasticemail.com]:587 yourElasticEmailUsername:yourElasticEmailPassword

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

Troubleshooting

If port 587 is not working for you please try 2525 in your postfix config. You may also need to edit /etc/postfix/master.cf to remove # from

 

#tlsmgr unix - - n 1000? 1 tlsmgr

 

    • Related Articles

    • How to configure Mautic with VMA Emailer

      Learn how to configure Mautic software with VMA Emailer. In order to send emails via VMA Emailer servers while using Mautic software - you will need to properly configure your Mautic. Navigate to Email Settings under Configuration panel inside Mautic ...
    • How to configure Sendy with VMA Emailer

      Find out more about configuring Sendy with VMA Emailer. If this is the first time you're setting up Sendy with VMA Emailer you need to click the Add New Brand button. You can enter the necessary company details in the New Brand section. SMTP ...
    • Debian/Ubuntu Tutorial for VMA Emailer

      Learn about how to configure Ubuntu nullmailer to relay all local emails through the VMA Emailer cloud. One of our customers provided us with a tutorial to use VMA Emailer with Debian/Ubuntu. Please use this tutorial as is, as it is not authored nor ...
    • How to configure Ssmtp with VMA Emailer

      Find out more about VMA Emailer on SMTP relay for ssmtp. Adding VMA Emailer as an SMTP relay for ssmtp is easy. Edit/etc/ssmtp/ssmtp.conf and add the following: mailhub=smtp.elasticemail.com:587 AuthUser=elasticemailusername ...
    • How to configure Thunderbird with VMA Emailer

      Learn more about how to send mail using Thunderbird. To send mail using Thunderbird you need to modify your outgoing server settings in Thunderbird accordingly. Additionally, you can modify settings in Thunderbird that will allow you to include a ...