Re: [exim] setup a backup MX

Top Page
Delete this message
Reply to this message
Author: Graeme Fowler
Date:  
To: exim-users
Subject: Re: [exim] setup a backup MX
On Fri, 2008-11-28 at 23:42 +0300, Rakotomandimby Mihamina wrote:
> - How to indicate Exim to try to deliver to the main server
> periodically? Does it retries himself, until death?


It will do this according to the retry rules you have.

> - How to indicate him the main server? Does it look up the MX priority
> to know whos the main?


Normally, yes. Or you could do the following:

# Put the backup MX domains in this file in this format:
# domain: remote_server_address1:remote_server_address2
domainlist backup_domains = lsearch;/etc/exim/backup_domains

...more config...
# Probably after some ACL checks over recipients and so on
# in the RCPT ACL:
deny domains = +filter_domains:+backup_domains
     !verify  =
recipient/callout=30s,defer_ok,no_cache,use_sender/no_details


accept domains = +backup_domains

...more config...

In the routers:

backup_domains:
driver = manualroute
domains = +backup_domains
transport = backup_domains_remote_smtp
route_list = $domain
${lookup{$domain}lsearch{/etc/exim/backup_domains}}
no_more

In the transports:

backup_domains_remote_smtp:
driver = smtp


Works for me!

Graeme