Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Custom MX records and sending email from VPS

Category: Control panels, cPanel, Mail servers, OS related issues


If domain.com is hosted on a VPS.net with Cpanel and has custom MX records (for example, using Google Apps), then emails sent by PHP scripts or emails sent by VPS itself to @domain.com will not be delivered.
This happens because domain.com exists in /etc/localdomains.

In order to fix the issue and make Exim resolve real MX records, you can dop the following:

♦ Remove domain.com from

 

/etc/localdomains

 

and
♦ Add domain.com to

 

/etc/remotedomains

 

in your cPanel/WHM server.

Save this article

...