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!

/etc/localdomains and external mx records problems -> use /etc/remotedomains

Discussion in 'General Discussion' started by desario, Jan 6, 2004.

  1. desario

    desario Member

    Oct 30, 2002
    Likes Received:
    Trophy Points:
    Is there a reason why when you change the MX record for a domain from within WHM to a host outside of the local server that it _doesn't_ add the domain to the /etc/remotedomains file??

    This has caused me some headache today. The problem was that mail send through the server SMTP service to a domain hosted on the local machine with an external mail server was delivered to the local mailbox and not to the remote mailbox/mailserver as it should have been.

    I determined a fix to be to remove the domain with an external mail server from /etc/localdomains, however it would be re-added by /scripts/mailperm, which is run in a cron. The mailperm script excludes domains from /etc/localdomains that are in /etc/remotedomains, so that seems to be the permanent fix.

    Is this the correct solution?

    Why isn't CPanel doing this automatically?

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