On Fri, 6 Jan 2006 15:59:41 +0000
Tony Finch <[EMAIL PROTECTED]> wrote:

[deciding whether to route a recipient or not based on a text file with
a list of valid local parts for a domain]

> I'd go for something like
> reject_bad:
>   driver = redirect
>   domains = +userlist_domains
>   local_parts = ! lsearch;/etc/userlists/$domain
>   data = :fail: $local_part not known at $domain
>   allow_fail

Thanks, that's more readable than my version and avoids the dreaded
Gratuitous String Expansion :) I've applied it to my machines.

Tim

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

Reply via email to