Switch to External Email Without Deleting Email

jazee

Well-Known Member
Jan 12, 2015
142
14
68
cPanel Access Level
Root Administrator
I moved a domain's email to Google Gsuite (Gmail) however I have some things to test in Gmail for a few days prior to shutting down email for the domain on the Cpanel server. Emails sent from the domain website though are still going to the old email server because despite have external DNS, it's ignoring the MX records and delivery the mail to the local mail server because it sees the local email exchange setting for the domain (always been a bit weird Cpanel does this as it should honor the MX records at the DNS no matter what the email hosting setting on the server, in my opinion).

Is it possible to change the setting to remote mail exchanger without deleting all the email accounts in case I want to switch back?
 

Denis Gomes Franco

Well-Known Member
Sep 3, 2018
45
7
8
Tupã, São Paulo, Brazil
cPanel Access Level
Root Administrator
I've had that problem in the past as well. When you send a message (either via SMTP/webmail or PHP) from one domain to that same domain, or another domain on the same server, the server considers this as a local delivery and so won't let the message "out on the internet" as it is completely unneeded.

In order to fix that you have to fire up WHM, go to Edit MX Entry, choose your domain and change the mail routing option to Remote Mail Exchanger. I think you can also use Automatically Detect Configuration but I haven't tested that. If this doesn't work, go with Remote Mail Exchanger and it will work just fine.
 

jazee

Well-Known Member
Jan 12, 2015
142
14
68
cPanel Access Level
Root Administrator
The question is though, in the current version of WHM (80), where specifically can you "change the mail routing option to Remote Mail Exchanger" ???

Also, when you do that, does it delete all the mail folders for the domain?
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
In WHM you can modify this by going to WHM>>DNS Functions>>Edit DNS Zones -> scroll to the bottom and select Remote Mail Exchanger.

In cPanel you can do this by going to cPanel>>Email>Email Routing -> Select Domain -> Remote Mail Exchanger

Making this modification has no effect on any files or folders associated with mail for the domain.