Re: [exim] local_scan expand_string

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Tony Finch
Date:  
À: Roland Roberts
CC: exim-users
Sujet: Re: [exim] local_scan expand_string
On Thu, 25 May 2006, Roland Roberts wrote:
>
> What I believe is happening is that $domain is not yet set when
> local_scan is being called.
>
> Which begs the question, can I really do what I've been asked to do?


$domain is a per-recipient variable, so it is not set when there are no
recipients (outside a mail transaction or in the MAIL ACL) or when
there are multiple recipients (in the pre or post DATA ACLs and in the
local_scan function and at transport time).

What you need is some way of turning the list of recipients into a local
user under which to run SpamAssassin. This is usually not easy. One way is
to add a check to your recipient ACL to defer later recipients that have
different filtering requirements from earlier recipients. I don't know
how safe this is in practice.

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}}