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

Following this article

https://www.smtp2go.com/setupguide/exim_whm_cpanel/

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:

mailgun_login:
 driver = plaintext
 public_name = LOGIN
 hide client_send = : postmaster@mydomain.co.il:9b7....e3

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


2. Find the area under

Section: ROUTERSTART

and paste these values:

mailgun:

 driver = manualroute
 domains = ! +local_domains
 transport = mailgun_transport
 route_list = "* smtp.eu.mailgun.org::587 byname"
 host_find_failed = defer
 no_more

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


3. Find the area under

Section: TRANSPORTSTART

and paste these values:

mailgun_transport:
 driver = smtp
 hosts = smtp.eu.mailgun.org
 hosts_require_auth = smtp.eu.mailgun.org
 hosts_require_tls = smtp.eu.mailgun.org

Again notice EU/US. 


REGARDS



Comments

Popular posts from this blog

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

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

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