> >  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

Attachment: signature.asc
Description: Digital signature

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to