Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    193

    Default Local DNS, first mx remote and second mx local

    Hi,

    I have a server 1 running DNS and secondary MX. Server 2 runs the first MX. I added two MX records to my DNS (MX 10 ip.ad.re.ss / MX 20 ip.ad.re.ss).

    If server 2 goes down all mail stays in the queue for some time. But I would like server 1 to deliver the mail locally if server 2 goes down.

    I put the domains in /etc/secondaymx and /etc/remotedomains.

    Any idea how to fix this?

  2. #2
    Member
    Join Date
    Aug 2005
    Posts
    49

    Default

    Currently, your mail is held up because the MTA must try the next highest MX. To short circuit this behaviour, you need to set some kind of transport map on the server. Ie. "When I get email for <somedomain.foo> I should deliver it directly to <some server>, bypassing the default mechanism." You'd need to do this for all domains that this needs to happen for. This way, you can still use your MX records to control where email comes into your network (ie. server 1 & 2 may be in different locations from each other), but you can still deliver the mail once you have it regardless of the state of the other mail servers (ie. you get fault tolerance).

    Sorry, I don't know how to do this in exim as I use a pair of postfix servers as my mail gateways. In postfix you'd add something like "foobar.com smtp:[ip.of.cpanel.box]" to /etc/postfix/transports.
    --Matt ;^]

    More /scripts/pre* and /scripts/post* hooks would be useful. Please vote.
    http://bugzilla.cpanel.net/show_bug.cgi?id=4022

Similar Threads & Tags
Similar threads

  1. remote default MX and local/remote domains
    By TaneNZ in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 04-19-2011, 04:45 PM
  2. Remote Website, local Email help with DNS Zones needed
    By fintan in forum E-mail Discussions
    Replies: 1
    Last Post: 03-24-2011, 08:20 PM
  3. Replies: 3
    Last Post: 12-12-2007, 05:55 AM
  4. Parking domains with remote & local DNS
    By JIKOmetrix in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-29-2007, 11:40 AM
  5. Local->Local->Forward to Remote: Forward doesn't work
    By payne in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-26-2003, 11:14 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube