Hi all (sorry, this is kinda long), Having a weee bit of a problem I hope everyone can help with. New SpamAssassin installation, the setup is as follows:
RedHat 6.2 Exim 3.36 perl-5.00503-12 SpamAssassin 2.20 Mail-Audit-2.1 MailTools-1.44 Net-DNS-0.12 Time-HiRes-01.20 razor-agents-1.19 Digest-SHA1-2.01 IO-stringy-2.108 MIME-Base64-2.12 MIME-tools-5.411 Exim delivers to Maildir formats, the user/group "mail" is trusted. What's happening is that occasionally an errorcode 2 is returned from the pipe back in command of exim, indicating a malformed header (??) of some sort I think. It's talking to spamc/spamd with the safety flag enabled as well. Here's how everything looks: /etc/mail/spamassassin/local.cf: whitelist_from *@fluid.com *.fluid.com skip_rbl_checks 1 The daemon is then started with "spamd -d -F 0 -D" as required. Then, inside my exim.conf I have the two required setups: # Spam Assassin # http://dman.ddts.net/~dman/config_docs/exim3_spamassassin.html spamcheck: driver = pipe command = /opt/exim/bin/exim -d1 -df -oMr spam-scanned -bS transport_filter = /usr/bin/spamc -f bsmtp = all home_directory = "/tmp" current_directory = "/tmp" user = mail group = mail return_path_add = false log_output = true return_fail_output = true prefix = suffix = # Spam Assassin # http://dman.ddts.net/~dman/config_docs/exim3_spamassassin.html spamcheck_director: no_verify condition = "${if and { {!def:h_X-Spam-Flag:} {!eq {$received_protocol}{spam-scanned}} {!eq {$received_protocol}{local}} } {1}{0}}" driver = smartuser transport = spamcheck So far so good -- many emails go through the loop (as I watch all the logs), and good mail is passed and Spam is caught, etc. But then, after a while of running, it *seems* only _local_ messages start to get errors like this: == snip == 2002-05-03 08:28:23 unexpected EOF while reading SMTP data (header) from mail 2002-05-03 08:28:23 173eu3-0005eX-00 <[EMAIL PROTECTED]>: spamcheck transport output: Exim version 3.36 debug level 1 uid=8 gid=12 2002-05-03 08:28:23 173eu3-0005eX-00 ** [EMAIL PROTECTED] D=spamcheck_director T=spamcheck: Child process of spamcheck transport returned 2 from command: /opt/exim/bin/exim 2002-05-03 08:28:23 173eyt-0005fU-00 <= <> R=173eu3-0005eX-00 U=mail P=local S=2410 2002-05-03 08:28:23 173eu3-0005eX-00 Error message sent to [EMAIL PROTECTED] 2002-05-03 08:28:23 173eu3-0005eX-00 Completed == snip == Now, the further problem is that the STDERR logfile doesn't even list this message as being tried to process (my exim is compiled to use /var/log/mail/exim_stderr.log). So, I'm trying to figure out what the heck this error is indicating -- is spamc feeding bad input data to exim? That's sure what it looks like, but I can't seem to trap the condition in realtime to make it happen to debug it.... If *anyone* has any ideas, please holler! Thanks. Is there any way to just tell Exim to not even bother with the SpamAssassin director/transport for local users? (I know, more of an exim mailing list question, but...) -te -- Troy Engel, Systems Engineer Hockey. Kinda like Figure Skating in a War Zone. _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk