CPanel - WHM - change sending email via server to email Relay (email supplier SMTP) (mailgun)

Following this article

While choosing mailgun as my supplier, and the help of one of GNS experts, here is what you need to do. 

NOTICE this is for SMTP.

Open your WHM, in the left search for "Exim" and click "Exim Configuration Manager".

Within the new window opened there are some tabs, choose "Advanced Editor". Its Highly recommended that you save the old values for each place you make a change.

1. Find the area under

begin authenticators

Section: AUTH 

and paste these values:

 driver = plaintext
 public_name = LOGIN
 hide client_send = :

change the last line to your email account name and your password

2. Find the area under


and paste these values:


 driver = manualroute
 domains = ! +local_domains
 transport = mailgun_transport
 route_list = "* byname"
 host_find_failed = defer

NOTICE I am using the European servers, for the US servers change to "". also i am using the default port

3. Find the area under


and paste these values:

 driver = smtp
 hosts =
 hosts_require_auth =
 hosts_require_tls =

Again notice EU/US. 



Popular posts from this blog

OverTheWire[.com] Natas Walkthrough - JUST HINT, NO SPOILERS

SOLVED The item could not be indexed successfully because the item failed in the indexing subsystem

Asp.Net Ending Response options, Response.End() vs CompleteRequest()