Re: [exim] exim acl checks

Top Page
Delete this message
Reply to this message
Author: Marc Sherman
Date:  
To: Sander Smeenk
CC: exim-users
Subject: Re: [exim] exim acl checks
Sander Smeenk wrote:
>
>
> 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 ;)


I think you want to go the router route, rather than a system filter,
because I'm pretty sure that the filter given here will fail for
messages BCC'd to the +27 address. As well, if the message is sent to
"+27xxx@???, anotheruser@???", then it will
only get delivered to the +27 user, but not to anotheruser. You'd also
need a "foranyaddress" in there, to handle multiple addresses in h_To.

All told, the router seems much simpler to get right.

- Marc