Hi all,

Apologies for the long post but I really like being able to
filter spam and would like to get this fixed.

Exim 3.30
Spamassassin 2.20
Debian Linux 2.2r6

I hope someone may have an idea whats going wrong here.  I've
searched the Exim list archive and can find only one other person
who had a problem similar to this, and his fix won't work in
this case I feel.

Having given up on Razor as ineffective I thought I'd try out
Spamassassin to see if it is any better, and it is!
I have got SA up and running and it is currently catching
much more spam than Razor did, but I have an intermitent
problem.  Occasionally a mail fails when passing through the
following transport.

spamcheck:
  driver = pipe
  command = /usr/exim/bin/exim -oMr spam-scanned -bS -d9
  transport_filter = /usr/bin/spamc
  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 =
# Adding header, we will check for this header in the system filter.  If
# the header is set we will not copy the mail to archive, this stops
# duplicate copies of mails.  Otherwise the mail would be copied again on
# its return from being scanned by spamc.
  headers_add = "X-Spam-Checked: True"
  path = /usr/bin:/bin:/usr/lib

I've added the -d9 to the command to help in tracking down the problem.
When a mail fails I get an entry in the mainlog thus:

2002-07-11 00:00:05 17SQRJ-0004Rf-00 <= [EMAIL PROTECTED] H=(localhost)
[127.0.0.1] P=esmtp S=1470 [EMAIL PROTECTED] T="IPChains
details from 10.07.2002"
2002-07-11 00:00:05 17SQRJ-0004Rf-00 => archive <message filter> D=localuser
T=local_delivery
2002-07-11 00:05:05 17SQRJ-0004Rf-00 <[EMAIL PROTECTED]>: spamcheck
transport output: Exim version 3.30 debug level 9 uid=8 gid=8
2002-07-11 00:05:05 17SQRJ-0004Rf-00 ** [EMAIL PROTECTED]
D=spamcheck_director T=spamcheck: Child process of spamcheck transport
returned 2 from command: /usr/exim/bin/exim
2002-07-11 00:05:05 17SQRJ-0004Rf-00 Error message sent to [EMAIL PROTECTED]
2002-07-11 00:05:05 17SQRJ-0004Rf-00 Completed

2002-07-11 00:05:05 17SQW9-0004Sf-00 <= <> R=17SQRJ-0004Rf-00 U=exim P=local
S=3266 T="Mail delivery failed: returning message to sender"
2002-07-11 00:05:06 17SQW9-0004Sf-00 => [EMAIL PROTECTED] R=smarthost
T=remote_smtp H=mailhost.dircon.co.uk [194.112.32.65]
2002-07-11 00:05:06 17SQW9-0004Sf-00 Completed

The returned message includes the following debug info which doesn't
mean an awfull lot to me.  I can see that the is an EOF that is causing
the error but have no idea what may be causing it..

Exim version 3.30 debug level 9 uid=8 gid=8
Berkeley DB: Sleepycat Software: DB 2.4.14: (6/2/98)
Caller is an admin user
Caller is a trusted user
originator: uid=8 gid=8 login=mail name=mail
sender address = NULL
smtp_setup_msg entered
SMTP<< MAIL FROM:<[EMAIL PROTECTED]>
SMTP<< RCPT TO:<[EMAIL PROTECTED]>
SMTP<< DATA
search_tidyup called
LOG: 4 MAIN
  unexpected EOF while reading SMTP data (header) from mail
Handling error in batched SMTP input
An error was detected while processing a file of BSMTP input.
The error message was:

  554 Unexpected end of file

The SMTP transaction started in line 0.
The error was detected in line 3.
0 previous messages were successfully processed.
The rest of the batch was abandoned.
search_tidyup called
554 Unexpected end of file
Transaction started in line 0
Error detected in line 3


The mail server processes around 150-200 mails a day and I get a
problem with maybe 8-10 of them.
Could this be an Exim problem or a Spamassassin problem?  Any ideas
gratefully received.  If I can't fix this I may have to just put up
with spam and I don't really want that :-(

Simon Barr
Systems Engineer

Chelsing Assemblies Ltd
Tel: 01992 554-566
Fax: 01992 553-644
E-mail: [EMAIL PROTECTED]



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
PC Mods, Computing goodies, cases & more
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to