Re: [exim] Using domain regex filtering...

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Dave Evans
Datum:  
To: exim-users
Betreff: Re: [exim] Using domain regex filtering...
> > deny hosts = /path/to/file/containing/regexes

> > condition = ${lookup{$sender_host_name} nwildlsearch {/etc/exim/exim-dynamic-regex} {yes}{no}}
>
> Why on earth make it so complicated? Tony's simple example should work
> just fine.


Actually, neither works, I think. If the examples on
http://www.linuxmagic.com/opensource/anti_spam/dynamic_regex/generate_regex.php
are correct, then the (non-comment, non-blank) lines not beginning with "^"
will never match.

i.e. exim expects something like:  ^.*\.adsl\.skynet\.be$
                        not just:  \.adsl\.skynet\.be$


unless I'm missing something.

Of course if you were to just add "^.*" to the front of the patterns which don't
already start with "^", then both methods would work.

--
Dave Evans
http://djce.org.uk/
http://djce.org.uk/pgpkey