> -----Original Message-----
> From: exim-users-bounces@??? [mailto:exim-users-bounces@exim.org] On
> Behalf Of Philip Hazel
> Sent: 13 April 2006 16:44
> To: exim-users@???
> Subject: Re: [exim] Adding headers for mail tap
>
> On Thu, 13 Apr 2006, Marc Sherman wrote:
>
> > Philip, I've long wished for something that behaved like a router, but
> > was applied like a system filter -- once per message, before the routers
> > are run on the individual recipients. Basically, so we can implement
> > system filter type tasks using the more-familiar router constructs in
> > the config file. Could that go on the wishlist?
>
> Well, it could, but I don't see how it could work. Many of the
> "more-familiar router contructs" would not be possible. Consider
>
> local_parts = ...
> domains = ...
>
> for example. With more than one recipient, they can't work. The whole
> ethos of a router is that it works on one address, so I'm kind of
> confused as to exactly what kind of thing you want.
>
>
> --
> Philip Hazel University of Cambridge Computing Service
> Get the Exim 4 book: http://www.uit.co.uk/exim-book
Unless you use the split into individual recipients method (getting exim to
call itself using the incestuous routine Philip mentioned in July 2004....
You can do this with an "incestuous" call to exim. Make this your first
router:
split:
driver = accept
domains = the.domains.you.want.to.do.this.for
condition = ${if eq {$received_protocol}{split}{no}{yes}}
transport = send_to_self
no_verify
Add this transport:
send_to_self:
driver = pipe
batch_max = 1
use_bsmtp
command = /usr/sbin/exim -oMr split -bS
user = exim
--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote confirms that this email message has been swept
for the presence of computer viruses and is believed to be clean.
**********************************************************************