troubleshooting Question

Configure cPanel / WHM for email remote domains

Avatar of budchawla
budchawlaFlag for United Kingdom of Great Britain and Northern Ireland asked on
Web ServersServer HardwareWeb Services
2 Comments1 Solution1180 ViewsLast Modified:
Hi all,

We have a problem that I've done a fair bit of research on without success. We're on a shared web hosting server running cPanel / WHM. Some of our domains have email services running on the same server and some have their own email server.

We had an initial problem where mail would not flow between domains that had mail hosted on the server and those that hosted their own email. The solution to this problem was to remove each domain entry from /etc/localdomains and add it to /etc/remotedomains for the domains that hosted their own mail.

The above solution worked fine until someone made a DNS change to their domain - what happens in this case is that if you edit a DNS zone in WHM, the domain ends up back in etc/localdomains. We figured the way to fix this is to un-check the "accept mail locally" option on the Edit DNS zone page in WHM. Unfortunately this doesn't  work. Having also tried un-checking the same option on the cPanel/MX Entry maintenance page with no result it seems that our only option is to email our web hosts every time there is a DNS change and ask them to manually edit  etc/localdomains and etc/remotedomains.

Clearly, this option - although it works - is prone to all sorts of issues and a major pain in the a***.

Have any of you dealt with this issue before?
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros