Configure ElasticEmail with Postfix

To configure ElasticEmail with postfix, first install sasl support

On Debian/Ubuntu

On RHEL/CentOS

Edit postfix config

On Ubuntu/Debian, you need to comment the line starting with “relayhost”.

Add following

Now create file

Add following content

You can find your SMTP user name and password from

https://elasticemail.com/account/#/settings/apiconfiguration

elasticemail postfix

Now run

Restart postfix with

Postfix will relay mails using postfix now.

See postfix