Re: [exim] Filtering incoming mail.

Góra strony
Delete this message
Reply to this message
Autor: Tony Finch
Data:  
Dla: Tim Jackson
CC: exim-users
Temat: Re: [exim] Filtering incoming mail.
On Fri, 6 Jan 2006, Tim Jackson wrote:
>
> Anyway, the above is OK but Tony: I think you're assuming that there is a
> single router that has the same "domains" precondition as the
> userlist_domains router. At least for me, that's not the case. It may be
> in simple cases, but in other cases (like mine) you may need to have a way
> of generically rejecting bad recipients for domains that do, optionally,
> have a userlist, without knowing what end router is ultimately going to
> route that 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

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}