Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andcam/8fe6061543c7495342e2 to your computer and use it in GitHub Desktop.
Save andcam/8fe6061543c7495342e2 to your computer and use it in GitHub Desktop.
Section: AUTH
mailgun_login:
driver = plaintext
public_name = LOGIN
hide client_send = : [email protected] : password
Section: ROUTERSTART
mailgun:
driver = manualroute
domains = ! +local_domains
transport = mailgun_transport
route_list = "* smtp.mailgun.org::2525 byname"
host_find_failed = defer
no_more
Section: TRANSPORTSTART
mailgun_transport:
driver = smtp
hosts = smtp.mailgun.org
hosts_require_auth = smtp.mailgun.org
hosts_require_tls = smtp.mailgun.org
@rmckeel
Copy link

rmckeel commented Jan 16, 2018

Thanks! Having some issues with 550 Relaying Denied intermittently happening, still investigating, perhaps someone has dealt with / fixed this issue?

Also, looking over your example, I would recommend defaulting to port 587, then using 2525 if that doesn't work, per http://blog.mailgun.com/25-465-587-what-port-should-i-use/

@jameshsieh
Copy link

This is really help me, it's working for my cpanel instance on GCP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment