Συντάκτης: Nico Erfurth Ημερομηνία: Προς: Robin Meijboom Υ/ο: exim-users@exim.org Αντικείμενο: Re: [Exim] altering outgoing mail
On Mon, 23 Dec 2002, Robin Meijboom wrote:
> Hello Exim-users,
>
> I want my smtpserver (exim...) to filter messages before they are being sent
> away. I do it with a system-wide filter, but it doesn't seem to work very
> well.
>
> My settings are:
> --exim.conf--
> system_filter = /etc/exim.filter
> system_filter_user = exim
> system_filter_pipe_transport = address_pipe
>
> --exim.filter--
> # Exim filter
> if $message_body_end: contains "beer"
> then pipe "/usr/bin/sed 's/beer/water/'"
> endif
>
> Messages without beer do arrive, but messages with 'beer' don't.
sed does not pipe back the message to exim, and what you really want is a
transport_filter, check spec.txt for more infos.