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!

php mail() problem

Discussion in 'E-mail Discussion' started by simonlee, Apr 1, 2004.

  1. simonlee

    simonlee Active Member

    Joined:
    Jan 19, 2003
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    156
    One of our clients got such problem:
    His domain is hosted on server #1, but the MX record of the domain is pointed to server #2. and he is using his own name server.

    Now the client says:
    Whenever I write a script to send mail to an email account, I want it to be sent to our mail servers #2, not get directed to the email accounts created on your server #1. If I send an email, in php, it always seems to get directed to your mail server #1, which it shouldn't, since the MX entries should now be pointing to our mail server #2.

    Can anybody kindly help?
    I'v deleted DNS records on our name servers, but it looks doesn't help.
     
  2. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    168
    Is the domain listed in /etc/localdomains?

    If so, remove it and add it to /etc/remotedomains

    If you have no file called remotedomains, just create one, the format is the same as the localdomains file .
     
  3. simonlee

    simonlee Active Member

    Joined:
    Jan 19, 2003
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    156
    It works like a charm, thanks 007!
     
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