Re: [Exim] Sendmail mailertable functionality in Exim

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Tim Jackson
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [Exim] Sendmail mailertable functionality in Exim
On Fri, 9 May 2003 20:58:59 +0100 (BST) Kelv wrote:

> Part of my transition from Sendmail to Exim requires me to set up the
> Exim equivalent of mailertable.

<snip>
> example.com    other.server


1. This isn't directly relevant to the situation you described, but just
for info bear in mind that for a 'simple' backup MX server situation, you
do not need to do anything special with Exim. With the default (v4)
config, just put an entry in the relay_to_domains domain list on the
backup server. Unlike sendmail (well, at least one sendmail installation
I've seen - I don't profess to any deep knowledge of sendmail), it's not
necessary to add an explicit route just to be a backup server. (AIUI, if
you don't add the mailertable entry for sendmail, you effectively get a
mailing loop)


2. Assuming you need to do something different and route to arbitrary
servers, yes you can do it. Try something like this:

# First make a list of the domains you want to manually route (ala
#mailertable)

domainlist my_special_domains = some.domain : other.domain

# Make sure you accept these at RCPT ACL time!
# (config will vary)

# Now route them
# In the routers section, add:

mailertable_style_route:
driver = manualroute
domains = +my_special_domains
route_data = ${lookup{$domain}lsearch{/path/to/exim_mailertable}}
transport = remote_smtp
no_more


That should do the trick. In /path/to/exim_mailertable, just add:

some.domain: mx1.whatever
other.domain: mx2.whatever:mx9.blah

Needless to say, /path/to/exim_mailertable could easily become a DBM file
or whatever, as necessary.


Tim