Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Aug 2001
    Posts
    132

    Default Lowest numbered MX record points to local host

    I've searched high and low here and elsewhere and cannot find a solution which works for my problem.

    Accounts on CPanel Server 1 cannot send email to accounts on CPanel Server 2. The error shown by Exim on CPanel Server 1 when trying to send is:

    Lowest numbered MX record points to local host

    I've checked that the domains for the accounts on CPanel Server 2 are in /etc/localdomains -- they are.

    I can send mail from other (non-CPanel) servers to accounts on CPanel Server 2 with no problem.

    I've restarted Exim on both servers, I've rebooted CPanel Server 2, no change.

    This seems to have become an issue recently (last few months?), as the same procedures requiring these emails to be sent have been in place for a long time.

    Any ideas at all?

  2. #2
    Member
    Join Date
    May 2008
    Posts
    21

    Default Re: Lowest numbered MX record points to local host

    Quote Originally Posted by Wallaby View Post

    I've checked that the domains for the accounts on CPanel Server 2 are in /etc/localdomains -- they are.
    Make sure a duplicate entry is not present in /etc/remotedomains

  3. #3
    Registered User
    Join Date
    Jan 2010
    Posts
    3

    Default Re: Lowest numbered MX record points to local host

    Quote Originally Posted by usman43 View Post
    Make sure a duplicate entry is not present in /etc/remotedomains
    Also the solution if you get this error: just go to your WHM, then "Edit DNS Zone". You will want to select the domain you want to fix by clicking "Edit" and then in "Save". That's all. Clicking "Save", will automatically put the entry in the localdomains.

  4. #4
    Member
    Join Date
    Aug 2001
    Posts
    132

    Default Re: Lowest numbered MX record points to local host

    Both /etc/localdomains and /etc/remotedomains are correct -- this is *not* the issue.

    Anyone else?

  5. #5
    Member
    Join Date
    Aug 2001
    Posts
    132

    Default Re: Lowest numbered MX record points to local host

    OK, just for anyone else who comes across this issue, I found the problem.

    Let's say Server 1 was trying to send mail to domain.com on Server 2. The MX record for domain.com was, let's say, server2mx.company.com.

    The A record for server2mx.company.com in the DNS (a CPanel DNS only cluster) was incorrect -- it was pointing to the IP for server 1.

    So Exim on Server 1 was giving me the correct error message; it was really saying "The mx for domain.com says I handle mail for domain.com, but I've checked and I don't!".

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2004
    Posts
    313
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default Re: Lowest numbered MX record points to local host

    Always always always double check your MX record settings first when having a mail problem.
    NDCHost (ProVPS): Xen VPS / Dedicated / Co-Location
    Contact us for your cPanel Licensing needs! We price match, provide better support, and take care of our customers!

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2006
    Posts
    59

    Default Re: Lowest numbered MX record points to local host

    awk -F ':' '{ print $1 }' /etc/userdomains >> /etc/localdomains

    That was a real quick and dirty fix I used for this problem
    Hostigation.com - High Resource Hosting
    WHM/cPanel Servers for Hosting and Dedicated Needs
    SolusVM VPS Hosting - cPanel/DirectAdmin

Similar Threads & Tags
Similar threads

  1. 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
  2. Lowest numbered MX record points to local host
    By Heritz in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 05-07-2009, 12:18 AM
  3. lowest numbered MX record points to local host
    By sexy_guy in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 08-21-2003, 10:27 PM
  4. lowest numbered MX record points to local host:
    By kosmo in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-16-2003, 03:56 AM
  5. lowest numbered MX record points to local host
    By joana in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-06-2002, 10:02 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube