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.

Mail not being delivered

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

  1. eter4

    eter4 Well-Known Member

    Joined:
    Feb 16, 2002
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    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:
    16
    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.
     
  3. eter4

    eter4 Well-Known Member

    Joined:
    Feb 16, 2002
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    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:
    16
    Location:
    New Yorker
    You're welcome.
     
  5. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    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:
    16
    Location:
    New Yorker
    Good point.
     
  7. eter4

    eter4 Well-Known Member

    Joined:
    Feb 16, 2002
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    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:
    38
    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.
     
Loading...

Share This Page