system wide message filtering

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Mark Willson
Fecha:  
A: exim-users
Asunto: system wide message filtering
I'm using Exim 1.61 and was wondering if it's possible to filter
outbound messages similar to the way inbounds are with
"system_filter:"? I'm willing to upgrade to the latest stable version
if needed.

I'm trying to keep an audit trail of all in/outbound mail for my domain.
(we handle a few others that I don't want).

I currently have:

   system_filter:
     no_verify,
     driver = forwardfile;
     no_check_local_user,
     filter,
     file = /usr/local/exim/filter,
     user = nobody


and a filter of:

   # Exim filter - this line is required
   if $header_to: contains "mydomain.com" or
      $header_from: contains "mydomain.com"
   then
           unseen pipe "/usr/local/lib/loadallmail"
   endif


Also, the above config does not capture mail to a user who has
an alias that contains a pipe. Both of the aliases work fine tho:

theguy: theguy,"|/usr/local/lib/loadguymail"


I've also tried the following with no success:

message_filter_user = nobody
message_filter_group = nobody
message_filter = /usr/local/exim/filter

It just complains that there is no user set for the pipe transport.

Any help would be appreciated.

--
* This is sent by the exim-users mailing list.  To unsubscribe send a
    mail with subject "unsubscribe" to exim-users-request@???
* Exim information can be found at http://www.exim.org/