1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

external mail server and php mail function

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

  1. yoseman

    yoseman New Member

    Joined:
    Jun 10, 2007
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    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 Active Member

    Joined:
    Sep 14, 2004
    Messages:
    1,182
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    inside a catfish
    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
     

Share This Page