Re: [exim] Whitelist for system_filter

Top Page
Delete this message
Reply to this message
Author: Magnus Holmgren
Date:  
To: exim-users
Subject: Re: [exim] Whitelist for system_filter
On Thursday 15 March 2007 19:07, Alvaro Marin wrote:
> I've some regular expressions to block some archive extensions with:
>
> system_filter = /etc/exim_filter
>
> Is there anyway to set a whitelist for some IPs (servers that have an
> antivirus installed) and prevent that the filter be executed?


The system filter always runs, but you can easily skip all of it by putting
something like this near the top:

if "${if match_ip{$sender_host_address}{10.1.0.0/16:192.168.37.0/24}}" is true
then
finish
endif

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)


"Exim is better at being younger, whereas sendmail is better for
Scrabble (50 point bonus for clearing your rack)" -- Dave Evans