Hello all, I'm having trouble getting spamassassin to work properly, and I hope someone can offer some advice. Here's my environment:
spamassassin 2.60 sendmail 8.12.10 cyrus IMAP 2.2.1-BETA Because I'm using cyrus IMAP, delivery of scanned messages isn't as easy as with other IMAP servers. I've worked around this by adding a sendmail alias as follows: username:"|/usr/local/bin/spamc -R -u cyrus -e /usr/cyrus/bin/deliver username" spamd is started with the following arguments: "-c -d -a -u cyrus" When I send a message to this account, I get the following logs: sendmail -------- Oct 14 10:41:41 www sendmail[25397]: NOQUEUE: connect from sourcehost.com [192.168.171.13] Oct 14 10:41:46 www sendmail[25397]: AUTH: available mech=GSSAPI DIGEST-MD5 CRAM-MD5, allowed mech=LOGIN PLAIN Oct 14 10:41:46 www sendmail[25397]: h9EEffCi025397: --- 220 www.host.ca ESMTP Sendmail 8.12.10/8.12.8; Tue, 14 Oct 2003 10:41:46 -0400 Oct 14 10:41:46 www sendmail[25397]: h9EEffCi025397: <-- EHLO mail.remotehost.ca Oct 14 10:41:46 www sendmail[25397]: h9EEffCi025397: --- 250-www.host.ca Hello sourcehost.com [192.168.171.13], pleased to meet you Oct 14 10:41:46 www sendmail[25397]: h9EEffCi025397: --- 250-ENHANCEDSTATUSCODES Oct 14 10:41:46 www sendmail[25397]: h9EEffCi025397: --- 250-PIPELINING Oct 14 10:41:46 www sendmail[25397]: h9EEffCi025397: --- 250-8BITMIME Oct 14 10:41:46 www sendmail[25397]: h9EEffCi025397: --- 250-SIZE Oct 14 10:41:46 www sendmail[25397]: h9EEffCi025397: --- 250-DSN Oct 14 10:41:46 www sendmail[25397]: h9EEffCi025397: --- 250-ETRN Oct 14 10:41:46 www sendmail[25397]: h9EEffCi025397: --- 250-STARTTLS Oct 14 10:41:46 www sendmail[25397]: h9EEffCi025397: --- 250-DELIVERBY Oct 14 10:41:46 www sendmail[25397]: h9EEffCi025397: --- 250 HELP Oct 14 10:41:46 www sendmail[25397]: h9EEffCi025397: <-- STARTTLS Oct 14 10:41:46 www sendmail[25397]: h9EEffCi025397: --- 220 2.0.0 Ready to start TLS Oct 14 10:41:46 www sendmail[25397]: STARTTLS=server, get_verify: 0 get_peer: 0x0 Oct 14 10:41:46 www sendmail[25397]: STARTTLS=server, relay=sourcehost.com [192.168.171.13], version=TLSv1/SSLv3, verify=NO, cipher=DHE-RSA-AES256-SHA, bits=256/256 Oct 14 10:41:46 www sendmail[25397]: STARTTLS=server, cert-subject=, cert-issuer= Oct 14 10:41:46 www sendmail[25397]: AUTH: available mech=GSSAPI PLAIN LOGIN DIGEST-MD5 CRAM-MD5, allowed mech=LOGIN PLAIN Oct 14 10:41:47 www sendmail[25397]: h9EEffCi025397: <-- EHLO mail.remotehost.ca Oct 14 10:41:47 www sendmail[25397]: h9EEffCj025397: --- 250-www.host.ca Hello sourcehost.com [192.168.171.13], pleased to meet you Oct 14 10:41:47 www sendmail[25397]: h9EEffCj025397: --- 250-ENHANCEDSTATUSCODES Oct 14 10:41:47 www sendmail[25397]: h9EEffCj025397: --- 250-PIPELINING Oct 14 10:41:47 www sendmail[25397]: h9EEffCj025397: --- 250-8BITMIME Oct 14 10:41:47 www sendmail[25397]: h9EEffCj025397: --- 250-SIZE Oct 14 10:41:47 www sendmail[25397]: h9EEffCj025397: --- 250-DSN Oct 14 10:41:47 www sendmail[25397]: h9EEffCj025397: --- 250-ETRN Oct 14 10:41:47 www sendmail[25397]: h9EEffCj025397: --- 250-AUTH LOGIN PLAIN Oct 14 10:41:47 www sendmail[25397]: h9EEffCj025397: --- 250-DELIVERBY Oct 14 10:41:47 www sendmail[25397]: h9EEffCj025397: --- 250 HELP Oct 14 10:41:47 www sendmail[25397]: h9EEffCj025397: <-- MAIL From:<[EMAIL PROTECTED]> SIZE=430 Oct 14 10:41:52 www sendmail[25397]: h9EEffCj025397: --- 250 2.1.0 <[EMAIL PROTECTED]>... Sender ok Oct 14 10:41:52 www sendmail[25397]: h9EEffCj025397: <-- RCPT To:<[EMAIL PROTECTED]> Oct 14 10:41:57 www sendmail[25397]: h9EEffCj025397: --- 250 2.1.5 <[EMAIL PROTECTED]>... Recipient ok Oct 14 10:41:57 www sendmail[25397]: h9EEffCj025397: <-- DATA Oct 14 10:41:57 www sendmail[25397]: h9EEffCj025397: --- 354 Enter mail, end with "." on a line by itself Oct 14 10:41:57 www sendmail[25397]: h9EEffCj025397: from=<[EMAIL PROTECTED]>, size=740, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, daemon=MTA, relay=sourcehost.com [192.168.171.13] Oct 14 10:41:57 www sendmail[25397]: h9EEffCj025397: --- 250 2.0.0 h9EEffCj025397 Message accepted for delivery Oct 14 10:41:57 www sendmail[25409]: h9EEffCj025397: alias <[EMAIL PROTECTED]> => "|/usr/local/bin/spamc -e /usr/cyrus/bin/deliver username" Oct 14 10:41:57 www sendmail[25397]: h9EEffCk025397: <-- QUIT Oct 14 10:41:57 www sendmail[25397]: h9EEffCk025397: --- 221 2.0.0 www.host.ca closing connection Oct 14 10:43:28 www sendmail[25409]: h9EEffCj025397: to="|/usr/local/bin/spamc -R -u cyrus -e /usr/cyrus/bin/deliver username", ctladdr=<[EMAIL PROTECTED]> (8/0), delay=00:01:31, xdelay=00:01:31, mailer=prog, pri=31014, dsn=5.6.0, stat=Data format error Oct 14 10:43:33 www sendmail[25409]: h9EEffCj025397: h9EEhXCi025409: DSN: Data format error Oct 14 10:43:43 www sendmail[25409]: h9EEhXCi025409: SMTP outgoing connect on www.host.ca Oct 14 10:43:44 www sendmail[25409]: h9EEhXCi025409: to=<[EMAIL PROTECTED]>, delay=00:00:11, xdelay=00:00:06, mailer=esmtp, pri=32038, relay=net.sourcehost.com. [64.172.179.22], dsn=2.0.0, stat=Sent (h9EDoeR0024602 Message accepted for delivery) Oct 14 10:43:44 www sendmail[25409]: h9EEhXCi025409: done; delay=00:00:11, ntries=1 Oct 14 10:43:44 www sendmail[25409]: h9EEffCj025397: done; delay=00:01:47, ntries=1 spamd ----- Oct 14 10:42:06 www spamd[25447]: connection from localhost [127.0.0.1] at port 44559 Oct 14 10:42:07 www spamd[25425]: info: setuid to cyrus succeeded Oct 14 10:42:13 www spamd[25425]: processing message <[EMAIL PROTECTED]> for mail:302. Oct 14 10:43:26 www spamd[25425]: clean message (0.0/5.0) for mail:302 in 81.4 seconds, 1066 bytes. cyrus IMAP ---------- Oct 14 10:43:28 www master[25520]: about to exec /usr/cyrus/bin/lmtpd Oct 14 10:43:28 www lmtpunix[25520]: executed Oct 14 10:43:28 www lmtpunix[25520]: accepted connection Oct 14 10:43:28 www lmtpunix[25520]: lmtp connection preauth'd as postman Oct 14 10:44:28 www master[12445]: process 25520 exited, status 0 The returned message (from sendmail) contains: ----- The following addresses had permanent fatal errors ----- "|/usr/local/bin/spamc -R -u cyrus -e /usr/cyrus/bin/deliver username" (reason: Data format error) (expanded from: <[EMAIL PROTECTED]>) ----- Transcript of session follows ----- username: Message contains invalid header 501 5.6.0 Data format error When I run "cat message|/usr/local/bin/spamc -R -u cyrus -e /usr/cyrus/bin/deliver username" on the command line it outputs the following message: username: Message contains invalid header My next step is to find out why this message is appearing. Any help would be appreciated, and I'd be glad to give more info or run more tests. Thanks in advance. ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk