This is a multi-part message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
Hi Folks,
I have a working spam assassin solution based on the one Nigel posted recently:
Director:
# Spam Assassin
# More of Nigel's fun-do stuff !!
# See http://www.exim.org/mailman/htdig/exim-users/Week-of-Mon-20020311/036302.html
# When to scan a message :
# - it isn't already flagged as spam
# - it isn't already scanned
# - it didn't originate locally (as long as I don't harbor spammers :-))
spamcheck_director:
condition = "${if and { {!def:h_X-Spam-Flag:} {!eq {$received_protocol}{spam-scanned}}} {1}{0}}"
driver = smartuser
transport = spamcheck
Transport:
### Lets use Nigel Metheringham's stuff ( He is more reliable I figures )
# Spam Assassin spamcheck module
spamcheck:
driver = pipe
command = /usr/local/exim/bin/exim -oMr spam-scanned -bS
transport_filter = /usr/bin/spamc -s 500000
home_directory = "/etc/spamassassin"
current_directory = "/etc/spamassassin"
# must use a privileged user to set $received_protocol on the way back in!
user = mail
group = mail
log_output = true
return_fail_output = true
prefix =
suffix =
bsmtp = all
return_path_add = false
I have a Maildir with the following box in there, .spam, with the usual sub directories, so that courier imap will pick it up so I wrote the following:
Transport:
spam_trap:
driver = appendfile
maildir_format = true
directory = HOME_DIR/Maildir/.spam
directory_mode = 0700
delivery_date_add
envelope_to_add
return_path_add
user = mail
group = mail
Director:
spam_delivery:
condition = "${if eq {h_X-Spam-Flag:}{YES} {yes}{no}}"
driver = smartuser
transport = spam_trap
But it seems to skip over the director when put before the spamcheck_director, am I missing something ? Am I doing something wrong ?
Cheers,
Aly.
--