[Exim] spam assassin: do not want to deliver X-Spam-Checked …

Página Inicial
Delete this message
Reply to this message
Autor: Wolfgang.Fuertbauer
Data:  
Para: exim-users
Assunto: [Exim] spam assassin: do not want to deliver X-Spam-Checked mails to user
Hi all,

I use Spam Assassin (spamd/spamc) and don't want to deliver X-Spam-Checked
mail to users;
instead it should be written to a "spam-box" (/var/spool/spam)

I tried to configure a router and transport for that - but it does'nt
work.
create a SPAM mail, SA recongizes SPAM, but spamsave_router is not used?
can one help me please?

thank`s in advance
wolfgang

(exim 4.02 -config:)

Routers section:

## this one works
spamcheck_router:
  condition = "${if and { {!def:h_X-Spam-Flag:} {!eq \
                {$received_protocol}{spam-scanned}}} {1}{0}}"
  driver = accept
  transport = spamcheck


## this not?
spamsave_router:
condition = "${if {def:h_X-Spam-Flag}{1}{0}}"
driver = accept
transport = spamsave

Transport section:

## this one works
spamcheck:
driver = pipe
command = /usr/exim/bin/exim -oMr spam-scanned -bS
transport_filter = /usr/bin/spamc -u exim -s 500000
home_directory = "/home/exim"
current_directory = "/home/exim"
# must use a privileged user to set $received_protocol on the way
# back in!
user = exim
group = exim
log_output = true
return_fail_output = true
use_bsmtp = true
return_path_add = false
message_prefix =
message_suffix =

## this not?
spamsave:
driver = appendfile
file = /var/spool/spam
delivery_date_add
envelope_to_add
return_path_add