Configure Postfix to sent emails using MailGun

First install requirements


Edit /etc/postfix/


Create file /etc/postfix/sasl_passwd

Replace SMTP_LOGIN and SMTP_PASSWORD with your user and password you get from mailgun.


Restart postfix

You can test email with

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *