Re: [exim] for-loop inside an ACL

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Heiko Schlittermann
Data:  
Para: exim-users
Assunto: Re: [exim] for-loop inside an ACL
Hi,

Cyborg <cyborg2@???> (Mo 02 Jan 2012 15:37:43 CET):
> Hi guys,
>
> quick question ,
>
> this is inside the acl_smtp_data :
>
> ...
>   accept  condition  = ${if or{\
>                                { and{ {!def:spam_score_int}{
> eq{$authenticated_id}{} } }}\
>                                { match{ ${lookup mysql { .... SQL
> .... which uses ${domain:$recipients}   }} }{1} }\
>                               } {1}}
>           add_header = X-Spam-Note: SpamAssassin uebersprungen :
> domain=${domain:$h_to:} e=${domain:$recipients}
> ...


The acl_smtp_data is the wrong place here. You can use the RCPT-ACL to
track (in some acl variable) if you've at least one recipient who needs the scan.

The DATA-ACL then might check this acl variable set in the RCPT ACLs.

--
Heiko