Re: [Exim] Exim + mailscanner + spamassassin

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Wolfgang.Fuertbauer
Dátum:  
Címzett: exim-users
CC: exim
Tárgy: Re: [Exim] Exim + mailscanner + spamassassin
Hi,

I use the following configuration: don't deliver spam to user
but to file /var/spool spam


#########
#ROUTERS#
#########

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


spam_local:
driver = accept
condition = "${if def:h_X-Spam-Flag:{$h_X-Spam-Flag:} }"
transport = spam_local

#############
# TRANSPORT #
#############

spam_local:
driver = appendfile
envelope_to_add
directory = /var/spool/spam
return_path_add
group = exim
user = exim
mode = 0660

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 =

>Dear all,
>
>I installed Exim with Mailscanner and spamassassin.
>I arrive to activate spamassasin to hace SPAM ? in the subject but how
>can I move these emails to another mailboxes ?
>
>Thanks for your help
>
>
>lionel