Email not delivering to a domain name | cPanel server
One of our client was facing an email issue for domains hosted on their cPanel servers to one domain whose Email was set to gsuite., when ever emails sending to this domain , its getting bounced with error saying no such user on the server, exact message is as below
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
On further debugging , we came to a resolution:
- the destination domain was hosted on the same server , even the MX records pointing to Google Servers
- No emails was configured locally against that domain name
What was happening ?
When sending an email, Exim will check if the domain exists in /etc/localdomains in order to determine if it should handle the email delivery locally. Since domain name exists in /etc/localdomains Exim assumed delivery would be handled locally.
Resolution, Route to Remote Mail Server
API function for cpapi2 via SSH:, use your SSH client or Terminal
]# cpapi2 –user=wwwtechsyspos Email setmxcheck domain=<domainname> mxcheck=remote
December 11, 2019
December 10, 2019
December 6, 2019