Re: [Exim] wishlist: discard message = to log

Top Page
Delete this message
Reply to this message
Author: Kevin W. Reed - Mail List Account
Date:  
To: exim-users
Subject: Re: [Exim] wishlist: discard message = to log
Jonathan Vanasco said:
> Right now, exim logs a discard in the ACL like such
>
> Lets say this is in my acl_check_data (actually, it is):
>    discard           message = contains sobig
>                          regex   = sobig_pattern_here

>
> Exim logs this as such:
> 2003-09-05 07:08:26 19vHGB-0001tk-7t => blackhole (DATA ACL discarded
> recipients)
>
> It would be SUPER nice if exim logged the 'contains sobig' or 'contains
> $found_extension file (This file extention is blacklisted, as it is
> likely to be a virus ).' -- as i have several discards in there, and
> there doesn't seem to be any method of telling why 1 item was discarded
> from another.


        # If the messae contains SCR or PIF we want to Log this
        warn    log_message = DISCARD: ATTACHMENT ($found_extension)
                demime = scr:pif


        # and then discard it
        discard demime = scr:pif


If you do a warn first, you can get the results you want.

I agree, it would be nice for discard to use log_message though, it would
save a lot of double entries like above.

--
Kevin W. Reed - TNET Services, Inc.
Mailing List Account
URL: http://www.tnet.com Support Forums: http://www.tnet.com/forum