Re: [exim] exim acl checks

Top Page
Delete this message
Reply to this message
Author: Sander Smeenk
Date:  
To: exim-users
Subject: Re: [exim] exim acl checks
Quoting Paulo Andre (pandre@???):

> >eg. +270113200000@??? to be delivered to
> >user@???
> I have set up a system wide filter
> if $h_to: contains "+27"
> then
> deliver user@???
> endif
> Now this would be valid for all domains, what would be the better way to
> limit this to one domain?


Even though there are 2 good solutions posted already, i'd like to add
that Exim filters are PCRE (Perl Compatible REgexp) capable so:

if $h_To: matches "^+27\d+@test\.darkstar\.nom\.za"

would probably work too ;)

--
| Scenery is here, wish you were beautiful.
| 1024D/08CEC94D - 34B3 3314 B146 E13C 70C8 9BDB D463 7E41 08CE C94D