Re: [Exim] Exim filter db lookups - full stop

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Tony Earnshaw
CC: Exim
Betreff: Re: [Exim] Exim filter db lookups - full stop
On Mon, 14 Feb 2000, Tony Earnshaw wrote:

> if ($message_headers contains "${lookup {$sender_host_address}
> [partial-}dbm[*] {/var/mail/blocked/spamlist.db}{$value}}"


What is in the spamlist.db database? The flat form would need to be like
this:

192.168.3.4: 192.168.3.4

for that to work. The partial and * is not going to help you - those
features are designed for hosts, where you chop things off the start. I
don't think entries like

*.168.3.4

are going to be very helpful, are they? Suggestion: have you thought of
something like this:

if $message_headers matches
  "${lookup {${mask:$sender_host_address/24}} dbm {/var/mail/blocked/nets}
    ${value}{nevernevernever}}"
then ...     


where the database contains entries like this:

192.168.3.0/24: \D192\.168\.3\.\d{1,3}\D




-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.