Re: [Exim] Fowarding email to/from a particular user

Top Page
Delete this message
Reply to this message
Author: Ray Jackson
Date:  
To: exim-users
Subject: Re: [Exim] Fowarding email to/from a particular user
Thanks for all the feedback.. Exim is a great MTA and the feedback on this
mailing list is always first class (I did receive some off-list answers too).

Anyway to answer your question: No, I don't mind putting individual addresses
in our filter file and no I don't care about logging etc. We are an ISP and
the user would never have access to these things anyway. A simple copy is
perfect for our requirements. Can you just check over my changes and confirm
I'm not going to break anything ;)

I added the line:

system_filter = /etc/exim/system_filter

to the main config section in exim.conf

and then I created a simple filter in /etc/exim/system_filter as follows:

if first_delivery and
   ($h_to: is "user@domain" or $h_from: is "user@domain")
     then
   unseen deliver police@domain errors_to postmaster@ourdomain
endif




I'm assuming I can put multiple filters in this file and that I don't need to
use 'contains' or 'lc' to convert from/to addresses to lower case?

Cheers,
Ray

--
Philip Hazel wrote:
> On Fri, 24 Oct 2003, Ray Jackson wrote:
>
>
>>I am trying to find a simple way in Exim where we can send a copy of emails
>>coming to/from a user to another email address. This has to be without the
>>user's knowledge, so they continue to send and receive emails as normal but
>>any mail activity to/from their address is CC'd to another email address
>>for monitoring.
>>
>>I'm not trying to do anything dodgy here - just assist the police in investing
>>one of our users who is involved in dubious practices! Can I do this using
>>Exim rules?
>
>
> There are some features in Exim that were put there especially to help
> with this kind of requirement.
>
> Simple copying can be done using a system filter and an "unseen deliver"
> command. The complication is in how serious you are about "without the
> user's knowledge". Are you prepared to put that user's address in the
> condition in the filter? Does the fact that the extra delivery will be
> logged like any other cause you problems? There are ways round both of
> these problems, but they involve some extra work to set up.
>