Re: [exim] Monitoring sent emails of a user

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Jason Meers
CC: exim-users, Dean Brooks
Subject: Re: [exim] Monitoring sent emails of a user
On Sun, 19 Feb 2006, Jason Meers wrote:

> Then make it filter:
> by a specified domain
> by a specified list of domains (read from a file)
> by existing domainlist (such as +relay_domains)
> by a specified address
> by a specified list of addresses (read from file)
> by existing accounts (such as local mailbox users)


You might like to include the example I use in my course, which is,
having filtered, to save the messages in a file whose name contains
today's date. The result is that your archive is nicely sorted by date.
The example is:

if first_delivery and
  ${mask:$sender_host_address/24}
  is 192.168.34.0/24                        
then                                            
  noerror unseen save
    /var/mail/archive/${substr_0_10:$tod_log}
endif     


As you can see, it saves only "outgoing" mail, assuming your LAN is
192.168.34.0/24. Of course, with a system filter like this, you also
need to set system_filter_file_transport, and system_filter_user to the
user required for the save, unless the transport sets a user.

-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book