The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MX records and urouted internal emails

Discussion in 'E-mail Discussions' started by Shezee, Mar 26, 2005.

  1. Shezee

    Shezee Registered

    Joined:
    Mar 24, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I set MX records for one of my site pointing to everyone.net and the site main account has been set to :fail:.
    Now the problem is with internal php or perl scripts sending out any email to anything@mydomain.com does not actually go to the server set in MX records but delivered to default local account. It is obvious that these local scripts can't see MX records and just deliver those emails to default account.

    Please any one to help me out to solve this problem to get these localy generated emails sent to the server in MX records.

    Regards.
     
    #1 Shezee, Mar 26, 2005
    Last edited: Mar 26, 2005
  2. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    As far as I know DNS checks on all domains listed in /etc/localdomains don't occur and so mail for all such domains would be routed internally.

    If you have a hosted domain for which you want the MX records to be checked, it would need to be removed from /etc/localdomains and added to /etc/remotedomains

    Before you do this, make sure you backup /etc/localdomains and /etc/remotedomains in case you make a mistake.

    As I always say, I might be wrong!
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You're not wrong, that's exactly what needs to be done :)
     
  4. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    Thanks Chirpy!

    It looks like I've learned a few useful things over the past two months.
     
  5. Shezee

    Shezee Registered

    Joined:
    Mar 24, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Thanks alot for such prompt reply and advice,
    I'll change the above mentioned files accordingly.

    Regards.
     
  6. Shezee

    Shezee Registered

    Joined:
    Mar 24, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Just wanted to confirm, a newbie question,
    will it affect other things to move a domain from /etc/localdomains to /etc/remotedomains or just email thing wd be affected.

    Thanks in advance.
    Regards.
     
  7. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Just local email for that domain.
     
  8. Shezee

    Shezee Registered

    Joined:
    Mar 24, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Thanks alot
    I changed the respective files and even created this new file /etc/remotedomains as it was not there, and the things seem to work fine for that domain name.

    Once again thank you for such help.

    Regards.
     
Loading...

Share This Page