Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

external mail server and php mail function

Discussion in 'E-mail Discussion' started by yoseman, May 4, 2012.

  1. yoseman

    yoseman Member

    Jun 10, 2007
    Likes Received:
    Trophy Points:

    I have a client that uses another server as mail server, He have no problem with this because he had done the changes on his own domain dns pool configuration adding subdomains point to another ip, and all works perfectly, he have a server to emails and my server for hosting pages...

    But the problem is i have a php script that want to send email notifications to a mail account on the same domain, but obviously the other server.

    I have set Remote Mail Exchanger and dns pool like this

    I have create a new A entrie called correo point to the ip of the mail server as show on the attachment.

    But when i run the php script that send an email notification to the mail server does not recevie anything...

    Thanks if someone can help me a little
    #1 yoseman, May 4, 2012
    Last edited: May 4, 2012
  2. mtindor

    mtindor Well-Known Member

    Sep 14, 2004
    Likes Received:
    Trophy Points:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    Make sure the domain in question is in /etc/remotedomains and is NOT in /etc/localdomains. should be in /etc/remotedomains should not be in /etc/localdomains

    Additionally, it is bad practice [and can break reliable email] to point your MX record to a hostname that is a CNAME.


    Code:    IN   MX    0   IN   CNAME
    Code:    IN   MX    0   IN   A
    OR    IN   MX    0    IN   A
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice