mailgun postfix relay config on CentOS 6.5

Written by James McDonald

March 3, 2014

Followed the mailgun documentation to get SASL relay working but was getting

SASL authentication failure: No worthy mechs found

Also found that the default configuration wasn’t finding the ca-bundle.crt

# /etc/postfix/main.cf
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = static:[email protected]:yourmailgunpassword
smtp_sasl_security_options = noanonymous
# add this line to point to ca-bundle
smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = may
smtpd_tls_CApath = /etc/pki/tls/certs
smtpd_tls_cert_file = /etc/pki/tls/certs/smtpd.pem
smtpd_tls_key_file = $smtpd_tls_cert_file
smtpd_tls_security_level = may

 

Also discovered that there was a missing module

yum install cyrus-sasl-plain

http://priority-zero.blogspot.com.au/2013/03/postfix-with-gmail.html

Creating a self signed cert

cd /etc/pki/certs
make smtpd.pem

0 Comments

Submit a Comment

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

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Squarespace Image Export

To gain continued access to your Squarespace website images after cancelling your subscription you have several...

MySQL 8.x GRANT ALL STATEMENT

-- CREATE CREATE USER 'tgnrestoreuser'@'localhost' IDENTIFIED BY 'AppleSauceLoveBird2024'; GRANT ALL PRIVILEGES ON...

Exetel Opt-Out of CGNAT

If your port forwards and inbound and/or outbound site-to-site VPN's have failed when switching to Exetel due to their...