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

    Joined:
    Jun 10, 2007
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    151
    Hello,

    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
    [​IMG]

    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 someone@redesip.es 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

    Joined:
    Sep 14, 2004
    Messages:
    1,342
    Likes Received:
    58
    Trophy Points:
    178
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    Make sure the domain in question is in /etc/remotedomains and is NOT in /etc/localdomains.

    redesip.es should be in /etc/remotedomains
    redesip.es 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.

    NO:

    Code:
    redesip.es.    IN   MX    0   mail.redesip.es.
    mail.redesip.es.   IN   CNAME    correo.redesip.es.
    
    YES:
    Code:
    redesip.es.    IN   MX    0   mail.redesip.es
    mail.redesip.es.   IN   A     188.138.107.176
    
    OR
    
    redesip.es.    IN   MX    0   correo.redesip.es.
    correo.redesip.es.    IN   A    188.138.107.176
    
    Mike
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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