[exim] configuring Spamassassin with Exim

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Robert Cates
Fecha:  
A: Exim, Users
Asunto: [exim] configuring Spamassassin with Exim
Hi,

I've just tried to integrade Spamassassin (3.0.4) with my Exim (4.43) server
on my Debian 3.0 machine, but I'm not sure I got it right.

I googled and ended up configuring going by what I found at:
www.win.tue.nl/~martijna/Debianstuff/.

My questions are:

1) Where should the "spamcheck_router:" go exactly? I have it at the end of
my routers. Below is my router/transporter section of my exim.conf.
2) Do any of you have a better setup/configuration?
3) This/my setup is using Maildir. Should I use the Maildir/.Inbox.Spam/
folder setup with a POP3 connection? I mean, will Outlook 2000 with a POP3
account retrieve my mail from a "Spam" folder under my Inbox?
4) How would I setup a filter in Outlook 2000 to send spam mail to it's own
folder, like Outlook XP/2003 does?

Thanks you for any/all help!
Robert

ROUTERS ===========

begin routers

dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more

system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/aliases}}
# user = exim
file_transport = address_file
pipe_transport = address_pipe

userforward:
driver = redirect
check_local_user
file = $home/.forward
no_verify
no_expn
check_ancestor
allow_filter
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply

localuser:
driver = accept
check_local_user
# transport = local_delivery
transport = maildir_delivery
cannot_route_message = Unknown user

spamcheck_router:
no_verify
check_local_user
# When to scan a message :
# - it isn't already flagged as spam
# - it isn't already scanned
condition = "${if and { {!def:h_X-Spam-Flag:} {!eq
{$received_protocol}{spam-scanned}}} {1}{0}}"
driver = accept
transport = spamcheck


TRANSPORTS ========

begin transports

...

spamcheck:
debug_print = "T: spamassassin_pipe for $local_part@$domain"
driver = pipe
command = /usr/sbin/exim4 -oMr spam-scanned -bS
use_bsmtp
transport_filter = /usr/bin/spamc -u $local_part
home_directory = "/tmp"
current_directory = "/tmp"
user = user
group = group
return_fail_output
message_prefix = ""
message_suffix = ""