Results 1 to 8 of 8

Thread: Lowest numbered MX record points to local host

  1. #1
    Member
    Join Date
    Feb 2012
    Posts
    8
    cPanel/WHM Access Level

    Root Administrator

    Default Lowest numbered MX record points to local host

    Just a FYI if you get the error message

    Lowest numbered MX record points to local host

    After making a DNS change, go back into the zone editor and change your serial. For some reason cPanel does not play nice with the serial and you have to manually increment it to not cause an issue. For instance tonight it was still using a serial from may 31st.

  2. #2
    Member
    Join Date
    May 2012
    Location
    India
    Posts
    96
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Lowest numbered MX record points to local host

    @FRCorey Thanks for the share.

    I have had this issue when entry for domain was missing in /etc/localdomains. Added it manually & that fixed it.

  3. #3
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Lowest numbered MX record points to local host

    Manually adding an entry to /etc/localdomains likely won't stick long-term. Typically, it isn't in /etc/localdomains because it is in /etc/remotedomains and has the MX set to remote in /var/cpanel/users/username file where username is the cPanel username. This means the domain should be removed from /etc/remotedomains file, /var/cpanel/users/username file changed to point it to local rather than remote, and these two scripts run:

    Code:
    /usr/local/cpanel/scripts/updateuserdomains
    /usr/local/cpanel/scripts/mailperm
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  4. #4
    Member
    Join Date
    Jun 2007
    Posts
    211
    cPanel/WHM Access Level

    DataCenter Provider

    Default Re: Lowest numbered MX record points to local host

    Tristan,

    Thanks. This is great information. I've been battling this every once in a while and did the same thing the poster above did.. added it manually. It will work for a few weeks/months and then remove it again. Hopefully this solution will make this work permanently.

    I do have one question though... You mention that in the /var/cpanel/users/username file, it has the MX set to remote and it should be set to local. I just looked at a customers /var/cpanel/users/username file and it has nothing about MX records or the word remote or local anywhere in there...

    Is this still the case for this situation??


    Quote Originally Posted by cPanelTristan View Post
    Manually adding an entry to /etc/localdomains likely won't stick long-term. Typically, it isn't in /etc/localdomains because it is in /etc/remotedomains and has the MX set to remote in /var/cpanel/users/username file where username is the cPanel username. This means the domain should be removed from /etc/remotedomains file, /var/cpanel/users/username file changed to point it to local rather than remote, and these two scripts run:

    Code:
    /usr/local/cpanel/scripts/updateuserdomains
    /usr/local/cpanel/scripts/mailperm

  5. #5
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Lowest numbered MX record points to local host

    It is typically the case, yes. If you aren't seeing that in /var/cpanel/users/username file for any MX at all:

    Code:
    grep -i mx /var/cpanel/users/username
    Then you might want to add the entry instead in the file somewhere toward the bottom. It should look like the following:

    MXCHECK-domain.com=0

    Here replace domain.com with the domain name.

    Thanks!
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  6. #6
    Member
    Join Date
    Jun 2007
    Posts
    211
    cPanel/WHM Access Level

    DataCenter Provider

    Default Re: Lowest numbered MX record points to local host

    So then, is MXCHECK-domain.com=0
    local, and =1 remote ??

    Or does it simply mean =0 (do not do any MXCHECK?)

    Thanks again


    Quote Originally Posted by cPanelTristan View Post
    Then you might want to add the entry instead in the file somewhere toward the bottom. It should look like the following:

    MXCHECK-domain.com=0

    Here replace domain.com with the domain name.

    Thanks!

  7. #7
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Lowest numbered MX record points to local host

    =0 means local in this instance. =remote is for remote. You can toggle the setting in WHM > DNS Functions > Edit a DNS zone area for the mail settings at the bottom to see it change in /var/cpanel/users/username file to see what does what for settings for that field.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  8. #8
    Member
    Join Date
    Jun 2007
    Posts
    211
    cPanel/WHM Access Level

    DataCenter Provider

    Default Re: Lowest numbered MX record points to local host

    Tristan,

    So, final question... Is this MXCHECK line a requirement in the /var/cpanel/users/username file?? Because I wrote a small script to check to see if this line is present and I'm finding that almost all of my customers don't have this line (either for local or remote). I can modify my script to add it, if missing but is that going to do more harm then good? Or is that going to make sure I don't run into problems if a user changes MX record data in their DNS?

Similar Threads

  1. Lowest numbered MX record points to local host
    By Wallaby in forum E-mail Discussions
    Replies: 6
    Last Post: 04-25-2011, 09:04 PM
  2. lowest numbered MX record points to local host
    By capoinfra in forum E-mail Discussions
    Replies: 2
    Last Post: 08-16-2009, 02:04 PM
  3. Lowest numbered MX record points to local host
    By Heritz in forum cPanel & WHM Discussions
    Replies: 10
    Last Post: 05-07-2009, 12:18 AM
  4. lowest numbered MX record points to local host
    By sexy_guy in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 08-21-2003, 10:27 PM
  5. lowest numbered MX record points to local host
    By joana in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 11-06-2002, 10:02 PM