RE: [EXIM] Archiving and logging mail *from* a local user

Top Page
Delete this message
Reply to this message
Author: Ian Edwards
Date:  
To: Peter Lister
CC: exim-users
Subject: RE: [EXIM] Archiving and logging mail *from* a local user

On 22-Apr-99 Peter Lister wrote:
> I'm nervous about setting a system filter, given the dire warnings
> about significant deliveries, but I can see no other way to intercept
> outgoing emails (i.e. relayed from the local domain).


The keyword 'unseen' stops things being "significant deliveries".
I use this system filter to copy all incoming/outgoing mail, you can
adjust the conditions to meet your needs :-

    # Exim filter


    # Ignore error messages
    if error_message then finish endif


    # Don't copy internal mail
    if $header_to:   contains "xyz.com" and
            $header_from: contains "xyz.com"
    then
            finish
    endif


    # Copy elsewhere.
    unseen deliver copy@???



 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  E-mail: Ian Edwards <ian@???>
  Date:   23-Apr-99             Time:   14:45:21


  Early Music Record Labels    - http://www.concerto.demon.co.uk/
  The 'ups' debugger for C/C++ - http://www.concerto.demon.co.uk/UPS/
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


--
*** Exim information can be found at http://www.exim.org/ ***