Re: [Exim] Please check router for user verification

Pàgina inicial
Delete this message
Reply to this message
Autor: Peter Bowyer
Data:  
A: exim-users
Assumpte: Re: [Exim] Please check router for user verification
Rudolf Weeber,,, said:
> Hi,
>
> Could someone perhaps check if this router is roerrect.
>
> It is supposed to do the following:
> * Run only when verifying a recipient
> * if one of the prefixes or suffixes is present, cut it off the
> $local_part
> * Check if there is an ldap entry on localhost with uid=$local_part -
> and if there is not, fail teh verification
>
>
> verify_rcpt:
> verify_recipient
> driver = accept
> local_part_prefix_optional =true
> local_part_prefix = spam- : falsepos-
> local_part_prefix_optional =true
> local_part_suffix = -owner : -editor : -request : -unsubscribe :
> -subscribe
> condition = ${if ${lookup ldap
> ldap:///uid=${quote_ldap:$localpart}}{false}{yes}{no}}
> fail_verify


1. verify_recipient on its own won't stop the router being used for
deliveries - you need verify_only set for that.

2. You probably don't mean fail_verify - this negates the effect of the
verification and causes it to fail if the address is accepted - probably
not what you want. Leave it off or set it false.

I'm not sure if the local_part_prefix/suffix options maintain the stripped
localpart in $localpart for your condition - someone else will know,
though... you might have to code a local_parts option instead.

But you're definitely on the right lines...

Peter

Peter