Skip to content

Instantly share code, notes, and snippets.

View rmckeel's full-sized avatar

Ryan McKeel rmckeel

View GitHub Profile
@rmckeel
rmckeel / Configure Exim on cPanel to use Mailgun SMTP
Last active June 14, 2021 08:46 — forked from andcam/Configure Exim on cPanel to use Mailgun SMTP
Method for redirecting all email on a Linux WHM server for one domain to Mailgun for reliable delivery
# This allows you to route all email from a Linux WHM server using exim through the Mailgun service
# or other email service. This is very powerful because email from a server is typically untrusted
# and hard to get good email delivery.
# This is not tested on servers that host multiple domains, because Mailgun's service is specific
# to one domain. If you figure out multiple domains with Mailgun, write it in the comments or fork this!
# Log in to WHM, go to Exim Configuration Manager -> Advanced Editor tab then edit the following.
### NOTE!
# If setting hosts_require_auth and hosts_require_tls = smtp.mailgun.org,