[exim] AntiSpam per user

Pàgina inicial
Delete this message
Reply to this message
Autor: Israel Cardenas
Data:  
A: exim-users
Assumpte: [exim] AntiSpam per user
Hi!

I want to use AntiSpam (SpamAssassin or Dspam) with bayes_rules and prefs
per user.
I have read that SA-Exim can't do it, but it's possible with Exiscan.

I've configured Exim to use Exiscan and SpamAssassin, and they work ok if I
use:

/etc/default/spamassassin:
--------------------------
OPTIONS="-m 10 -H -x --virtual-config-dir=/home/%u/spamassassin"

/etc/exim4/acl.conf:
--------------------
acl_check_data:
  warn    message = X-Spam-Score: $spam_score ($spam_bar)
          spam = any_user
  warn    message = X-Spam-Report: $spam_report
          spam = any_user
  warn    message = Subject: ***SPAM*** $h_Subject
          spam = any_user
          condition = ${if > {$spam_score_int}{2}{1}{0}}
  deny    message = Mensaje rechazado por obtener $spam_score_int puntos de
SPAM
          spam = any_user
          condition = ${if > {$spam_score_int}{30}{1}{0}}
  accept


But this configuration only work for user 'any_user', not for all my users.
I need that Exim sends to 'spamd' the user like the '$local_part' from
email.
I use an ACL like this:

/etc/exim4/acl.conf:
--------------------
acl_check_data:
  warn    message = X-Spam-Score: $spam_score ($spam_bar)
          spam = $local_part
  warn    message = X-Spam-Report: $spam_report
          spam = $local_part
  warn    message = Subject: ***SPAM*** $h_Subject
          spam = $local_part
          condition = ${if > {$spam_score_int}{2}{1}{0}}
  deny    message = Mensaje rechazado por obtener $spam_score_int puntos de
SPAM
          spam = $local_part
          condition = ${if > {$spam_score_int}{30}{1}{0}}
  accept


But Exim not expand the 'spam' condition. I have read that '$local_part' and
'$domain' variables are not set in DATA ACL, but I think this configuration
(bayes-rules per user) is not rare, and should be a solution.

How could I do this?

Thanks!

Israel Cardenas.