Re: [Exim] using $local_part in the acl for spam user

Pàgina inicial
Delete this message
Reply to this message
Autor: Dennis Skinner
Data:  
A: Marques Johansson
CC: exim-users
Assumpte: Re: [Exim] using $local_part in the acl for spam user
On Tue, 2004-01-13 at 10:47, Marques Johansson wrote:
> From: exiscan-acl-examples.txt.gz
>
>   /* ---------------
>   deny message = This message was classified as SPAM
>           spam = joe
>   ---------------- */

>
> On the right-hand side of the spam condition, you can put the
> username that SpamAssassin should scan for. That allows you to
> use per-domain or per-user antispam profiles. The right-hand
> side is expanded before being used, so you can put lookups or
> conditions there. When the right-hand side evaluates to "0" or
> "false", no scanning will be done and the condition will fail
> immediately.
>
> Why can't I use "spam = $local_part" ?
>


Because there may be multiple recipients, but only a single msg at this
point. Search the archive here and the exiscan list for further
explanation.

I believe there is a variable that contains the last recipient found and
another that contains the number of recipients. You could check to see
if the count = 1 and then use spam = $recipient (you will need to look
up the name of the variable). This would not scan any msgs with
multiple recips.

I believe the exiscan docs also contain a method of only accepting a
single recip and giving a 4xx temp error for the rest so they only come
in one at a time. This will slow down multiple recip msgs.

--
Dennis Skinner
Systems Administrator
BlueFrog Internet
http://www.bluefrog.com