Connect DirectAdmin with MailGun

Game Over!

Verified User
Joined
Jan 19, 2018
Messages
9
Hey guys.

Do you have any tut about how sending Directadmin emails for one domain or all domain via MailGun?
I searched but couldn't find any TUT in forum or any other website.

I just registered an account on MailGun.com and now, What should I do?

Thanks
 

mxroute

Verified User
Joined
Sep 24, 2019
Messages
18
I've not specifically set up mailgun for this, but this should be around the right theory to get started:

In /etc/exim.authenticators.post.conf:

Code:
mailgun_login:
driver = plaintext
public_name = LOGIN
hide client_send = : YourMailgunEmailAddress : YourMailgunDomainPassword
In /etc/exim.routers.pre.conf:

Code:
mailgun:
driver = manualroute
domains = ! +local_domains
transport = mailgun_transport
route_list = * smtp.mailgun.org byname
In /etc/exim.transports.pre.conf:

Code:
mailgun_transport:
driver=smtp
hosts_require_auth = *
A restart of exim (systemctl restart exim) should be all that is needed after this, and it should persist through updates.
 
Top