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!

Domain with external DNS: external MX and local mail problem

Discussion in 'E-mail Discussion' started by vapetrov, Jan 14, 2011.

  1. vapetrov

    vapetrov Member

    Joined:
    May 24, 2002
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    301
    Hello!

    I have a user.
    He have hosting for domain.com on my CPanel server.
    One day he decided to move his mail to Yahoo.
    In the registrar control panel he set Yahoo DNS for server his domain. He have properly configured yahoo DNS, he created A-record to point www to my hosting. Mail of his domain served by Yahoo.
    All working fine.
    Except one thing: If I trying to send a message from my server to his mail address (on the yahoo) my server tried to deliver the message to local mailbox.

    I have removed line domain.com from /etc/localdomains and from all other files in /etc/. Also I have removed DNS zone domain.com from my DNS.
    But after some time I found domain.com in /etc/localdomains again!..

    What I need to do to prevent intercept messages for external mail domains which have webhosting on my server?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. garrettp

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    DataCenter Provider
    You need to move him to /etc/remotedomains instead. You can do this via the shell as you did before or edit his DNS zone in the WHM and at the bottom set the Mail Exchanger to 'Remote'.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. vapetrov

    vapetrov Member

    Joined:
    May 24, 2002
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    301
    Thanks a lot
     
    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