Re: [Exim] Copy every incomming Mail to a backup server

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Michael J. Tubby B.Sc (Hons) G8TIC
CC: exim-users, Oliver Egginger
Subject: Re: [Exim] Copy every incomming Mail to a backup server
On Wed, 23 Jan 2002, Michael J. Tubby B.Sc (Hons) G8TIC wrote:

> Couldn't you catch all mail messages passing through an exim system
> with a system filter in, say PERL, work out the direction (inbound/outbound)
> and then re-mail a copy of all inbound ones to the shadow server.


Yes, but only if you remail the message with a different envelope
address. If you don't mind messages to xxx@domain being forwarded to
both xxx@??? and xxx@??? the problem is trivially solved
by aliasing.

Come to think of it, that's probably the simplest way to do this.

. On the incoming server, redirect to multiple different domains.

. On the several servers that receive the mail, rewrite these domains
back to the original domain.

You run the risk of incoming mail from outside being addressed to
xxx@???. Unlikely, because you don't put one.domain into the DNS.
But just in case, you can rewrite on the server too if you want, as long
as you remember to put no_rewrite on the driver that does the
redirection.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.