RE: [Exim] Spamassassin , exim 4.10 on RH 8

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Thomas Kinghorn
Data:  
Para: 'Lejf Diecks'
CC: 'exim-users@exim.org'
Assunto: RE: [Exim] Spamassassin , exim 4.10 on RH 8
i'll try it out.

Many thanks

Regards,

Tom





-----Original Message-----
From: Lejf Diecks [mailto:ldiecks@knk.de]
Sent: 09 December 2002 04:15
To: Thomas Kinghorn
Cc: exim-users@???
Subject: AW: [Exim] Spamassassin , exim 4.10 on RH 8


>
> Does anyone know where to get documentation for setting up
> SpamAssasin using
> exim 4.10
> on Linux RH 8 ?
>
> Thanks
>
> Tom


Hi Tom,

I installed SA last friday. Here is a step-by-step setup guide:

(1) Modify the 'configure'-file as you need it (hostname, access lists etc.)
(2) Set up SpamAssassin
(3) In "ROUTERS CONFIGURATION" add the following after the
'system_aliases'-router:

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

(4) In "TRANSPORTS CONFIGURATION" add the following after "begin transports"
(order does not matter) - don't forget to change the paths + user (our Exim
runs on a FreeBSD-Box).

# Spam Assassin
spamcheck:
driver = pipe
command = /usr/local/sbin/exim -oMr spam-scanned -bS
use_bsmtp = true
transport_filter = /usr/bin/spamassassin -x -S
home_directory = "/tmp"
current_directory = "/tmp"
# must use a privileged user to set $received_protocol on the way back in!
user = mailnull
group = mail
log_output = true
return_fail_output = true
return_path_add = false
message_prefix =
message_suffix =

This works for me (tm)

Hope its helps a little bit ;o)

Regards
Lejf