Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    Member
    Join Date
    Apr 2007
    Posts
    37

    Default remote default MX and local/remote domains

    If I edit the DNS templates so the default MX record points to a remote host.. it works well. The problem is that /etc/localdomains and /etc/remotedomains aren't updated to reflect the remote MX record. I still have to go into WHM, Edit DNS Zone, and click save. Is there any way around this?

  2. #2
    Member
    Join Date
    May 2008
    Posts
    1,203

    Default

    Hi,

    Are you editing DNS Template for the domain only or the server wide?

    If you are changing the MX records to Remote MX for the domain only then you will have to remove that domain entry from /etc/localdomains list.

  3. #3
    Member
    Join Date
    Apr 2007
    Posts
    37

    Default

    Hey, I'm editing the root/server wide standard dns template. After doing that and creating an account, it is successfully created with the template (and the changes I've made). However, the domain is still put into /etc/localdomains rather than /etc/remotedomains. If I go into WHM and edit the zone and (not changing anything) click "save", the domain gets shifted into the correct /etc/remotedomains

  4. #4
    Member
    Join Date
    May 2008
    Posts
    1,203

    Default

    If you are using custom MX record then you will need to remove the domain MX entry from /etc/localdomains and need to add the domain on /etc/remotedomains.

  5. #5
    Member
    Join Date
    Apr 2007
    Posts
    37

    Default

    heh, yes! exactly

    I want to do it automatically.

    I could write something custom but I'm wondering if there's something within cPanel that I could use already, for example whatever runs after editing a DNS zone - it checks if the MX is local or remote and adjusts /etc/localdomains and /etc/remotedomains accordingly.

    To be honest though I kindof expected this behaviour by default, I was surprised to find the domain still listed in localdomains ..

  6. #6
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Is the following tweak setting enabled ( checked ) or disabled ( not checked ):

    Code:
    Automatically setup /etc/localdomains, /etc/remotedomains, /etc/secondarymx based on where the mx entry is pointed
    Kenneth
    Product Manager
    cPanel, Inc.

  7. #7
    Member
    Join Date
    Apr 2007
    Posts
    37

    Default

    It's enabled [checked]. Just doesn't seem to run on newly created accounts

  8. #8
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by TaneNZ View Post
    It's enabled [checked]. Just doesn't seem to run on newly created accounts
    What is your full cPanel/WHM version information? For example:

    cPanel 11.24.7-E37011 - WHM 11.24.4 - X 3.9
    CENTOS 5.3 i686 xen

  9. #9
    Member
    Join Date
    Apr 2007
    Posts
    37

    Default

    This server is currently running on the STABLE branch;

    cPanel 11.24.4-S36281 - WHM 11.24.2 - X 3.9
    CENTOS 4.8 i686 standard on server

  10. #10
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by TaneNZ View Post
    This server is currently running on the STABLE branch;

    cPanel 11.24.4-S36281 - WHM 11.24.2 - X 3.9
    CENTOS 4.8 i686 standard on server
    Try updating to the latest stable. If this issue persists, please contact our technical analysts: http://tickets.cPanel.net/submit

  11. #11
    Member
    Join Date
    May 2003
    Posts
    613

    Default Re: remote default MX and local/remote domains

    Where does that option reside? I can't see it in tweak settings. WHM: 11.28.87

  12. #12
    Member
    Join Date
    May 2003
    Posts
    613

    Default Re: remote default MX and local/remote domains

    Quote Originally Posted by cpanelkenneth View Post
    Is the following tweak setting enabled ( checked ) or disabled ( not checked ):

    Code:
    Automatically setup /etc/localdomains, /etc/remotedomains, /etc/secondarymx based on where the mx entry is pointed
    Where does that option reside? I can't see it in tweak settings. WHM: 11.28.87

  13. #13
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: remote default MX and local/remote domains

    That Tweak Setting was removed from the interface per case #33264 where it was determined to be unneeded due to adding the Email Routing options during account creation. Now, email routing can be set in account creation to automatically detect if the email is remote or local.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. local/remote mx
    By danmc in forum cPanel Developers
    Replies: 0
    Last Post: 06-02-2011, 01:36 PM
  2. local works, remote does not
    By ffeingol in forum E-mail Discussions
    Replies: 2
    Last Post: 07-14-2008, 08:30 PM
  3. Parking domains with remote & local DNS
    By JIKOmetrix in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-29-2007, 10:40 AM
  4. Local DNS, first mx remote and second mx local
    By Tagor in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-03-2006, 11:41 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube