Re: [Exim] verify recipient exception in ACL

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Andreas Metzler
Data:  
Para: exim-users
Asunto: Re: [Exim] verify recipient exception in ACL
On 2004-02-28 Mike Zanker <mike-sender-64e73a@???> wrote:
> I'd like to modify this ACL statement:


>  accept  domains       = +local_domains
>          endpass
>          verify        = recipient


> so that it verifies all recipients EXCEPT those with local_parts
> beginning "mike-". I've tried loads of different things but just end up
> either denying all recipients or accepting all recipients. I'm sure I'm
> missing something obvious so would be very grateful for any assistance.

[...]

Do you want a statement that accepts any mail to mike-*@+local_domains
and accepts any mail to +local_domains with verifyable recipient? -
Use two statements.

accept  domains       = +local_domains
        local_parts = \N^mike-\N


accept  domains       = +local_domains
        endpass
        verify        = recipient


Or do you want a statement that accepts any mail to +local_domains
with verifyable recipient except mike-*, which is not matched by the
statement but passed on the later ACLs?

accept  domains       = +local_domains
        local_parts = !\N^mike-\N
        endpass
        verify        = recipient


Or do you want a statement that accepts any mail to +local_domains
with verifyable recipient but _rejects_ mike-*?

accept  domains       = +local_domains
        endpass
        local_parts = !\N^mike-\N
        verify        = recipient


Untested.

BTW I think the whole problem could be handled cleaner, can you show
the respective router?

          cu andreas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"