You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by maestro <wa...@gmx.net> on 2004/05/25 23:52:38 UTC
sa - exim integration
hi im not quite sure if this is the right place to ask this question if
you think i should reather direct it to the exim folks please let me
know.
here is my problem
i want my Debian GNU\Linux 3.0 aka woody to act as
fetchmail-exim-spamassassin-imap server
everything works fetchmail collects the mails from my isp's pop account
exim stores them in the ~/Maildir folder of the calling user and dovecot
provides the IMAP services for the clients in my network.
to integrate sa into this chain i did the following as stated in
(http://www.win.tue.nl/~martijna/Debianstuff/)
Change the file
/etc/exim4/conf.d/transport/30_exim4-config_mail_spool
to
mail_spool:
debug_print = "T: appendfile for $local_part@$domain"
driver = appendfile
#file = /var/mail/$local_part
delivery_date_add
envelope_to_add
return_path_add
group = mail
mode = 0660
directory = ${home}/Maildir
maildir_format
message_prefix = ""
create /etc/exim4/conf.d/transport/30_exim4-config_spamcheck
with the following contents
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
home_directory = "/tmp"
current_directory = "/tmp"
user = Debian-exim
group = Debian-exim
return_fail_output
message_prefix =
message_suffix =
create /etc/exim4/conf.d/router/850_exim4-config_spamcheck_router
with the following contents
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
doning
# /etc/init.d/exim4 reload
# /etc/init.d/spamassassin restart
and everytime when fetchmail polls a mail /var/log/exim4/mainlog states:
2004-05-25 23:14:16 1BSjFY-0007Ug-F2 <= waggawagga@gmx.net H=localhost [127.0.0.1] U=
manuel P=esmtp S=1451 id=1085519677.1114.40.camel@gondor
2004-05-25 23:14:16 SMTP connection from Debian-exim lost while reading message
data (header)
2004-05-25 23:14:16 1BSjFY-0007Ug-F2 ** manuel@localhost R=spamcheck_router T=sp
amcheck: Child process of spamcheck transport returned 2 from command: /usr/sbin
/exim4
2004-05-25 23:14:17 1BSjFZ-0007Uw-1x <= <> R=1BSjFY-0007Ug-F2 U=Debian-exim P=lo
cal S=2716
2004-05-25 23:14:17 1BSjFY-0007Ug-F2 Completed
2004-05-25 23:14:24 1BSjFZ-0007Uw-1x => waggawagga@gmx.net R=smarthost T=remote_smtp
H=mr.tuwien.ac.at [128.130.2.10]
2004-05-25 23:14:24 1BSjFZ-0007Uw-1x Completed
can anybody help me with this i suppose the Child process of spamcheck transport returned 2 from command.... to be the error but i didnt find anything on the web
here the version details
OS Debian GNU/Linux 3.0 woody
ii fetchmail 6.2.5-6.backpo SSL enabled POP3, APOP, IMAP mail gatherer/f
ii exim4-base 4.33-0.amwoody EXperimental Internal Mailer -- a Mail Trans
ii exim4-config 4.33-0.amwoody Debian configuration for exim4
ii exim4-daemon-l 4.33-0.amwoody Lightweight version of the Exim (v4) MTA
SpamAssassin version 2.63
thank you very much for your help
so long
maestro