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:

  1. the destination domain was hosted on the same server ,  even the MX records pointing to Google Servers
  2. 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


Interoons aim at providing electronically intelligent and comprehensive range of digital marketing solutions that exceed customer expectations. We implement revolutionary digital marketing ideas to achieve a common as well as the aggregate growth of the organization. Long-term customer relations and extended support are maintained.


  1. Asking questions are really fastidious thing if you are not
    understanding anything completely, but this post offers nice understanding even.

Leave a Reply

Your email address will not be published. Required fields are marked *