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!

Mail not being delivered

Discussion in 'E-mail Discussion' started by eter4, Jan 6, 2004.

  1. eter4

    eter4 Well-Known Member

    Joined:
    Feb 16, 2002
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    306
    I have 2 domains. DNS is pointed to the same box for both domains.
    Domain 1 is on the CPANEL server
    Domain 2 is on a windows server

    I modify the MX record in WHM to point to the Windows server.

    If I send e-mail from domain 1 to domain 2 it delivers it locally instead of going to the windows server,

    All other domains that are not hosted on this server can send mail to it fine.

    if I check the catchall for domain 2 all the messages I sent are there.

    Any ideas?
     
    #1 eter4, Jan 6, 2004
    Last edited: Jan 6, 2004
  2. Planet_Master

    Planet_Master Well-Known Member

    Joined:
    Apr 18, 2002
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    316
    Location:
    New Yorker
    Funny thing about the MX on Cpanel servers, in order to get it to point to and deliver mail to another server I had to remove the domains mail entries from /etc/localdomains and /etc/userdomains.

    For example:
    If the domain name was treats.com

    pico /etc/localdomains and remove the entry treat.com and any other entries containing this domain.

    pico /etc/userdomains and remove the entry treat.com and any other entries containing this domain.

    After doing this it worked great.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. eter4

    eter4 Well-Known Member

    Joined:
    Feb 16, 2002
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    306
    Holey Sheep SH*I Batman it worked.

    Thanks
     
  4. Planet_Master

    Planet_Master Well-Known Member

    Joined:
    Apr 18, 2002
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    316
    Location:
    New Yorker
    You're welcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    191
    Don't forget to add the domain to /etc/remotedomains or it will get put back.
     
  6. Planet_Master

    Planet_Master Well-Known Member

    Joined:
    Apr 18, 2002
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    316
    Location:
    New Yorker
    Good point.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. eter4

    eter4 Well-Known Member

    Joined:
    Feb 16, 2002
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    306
    There is nothing in the file
    All I need to do is put the domain name on a new line?
     
  8. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    318
    Just add the domain to /etc/remotedomains ( new line for each domain ) and run /scripts/mailperm

    The above will remove any local entries for your domain and allow mail to be delivered remotely.
     
    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