gable wrote:
> 
> Hiya
> 
> Has anyone come across error like these before - spamassassin was working
> perfect - but a couple of days ago - we got flooded with spam. Checking
> the logs ... errors like the one below come up 25,000 times :-) ... The
> only solution i've found to work is to keep restarting spamd on a crond
> ... a temporary fix .. 
> 
> Sun Mar 11 15:46:15 2007 [26282] info: spamd: connection from
> mxr1duk.xxxxx.com [127.0.0.1] at port 36877
> Sun Mar 11 15:46:15 2007 [26282] warn: spamd: bad protocol: header error:
> (closed before headers) at /usr/bin/spamd line 1671.
> Sun Mar 11 15:46:15 2007 [26280] info: prefork: child states: II
> Sun Mar 11 15:46:20 2007 [26282] info: spamd: connection from
> mxr1duk.xxxxx.com [127.0.0.1] at port 36878
> Sun Mar 11 15:46:20 2007 [26282] warn: spamd: bad protocol: header error:
> (closed before headers) at /usr/bin/spamd line 1671.
> Sun Mar 11 15:46:20 2007 [26280] info: prefork: child states: II
> Sun Mar 11 15:46:25 2007 [26282] info: spamd: connection from
> mxr1duk.xxxxx.com [127.0.0.1] at port 36879
> Sun Mar 11 15:46:25 2007 [26282] warn: spamd: bad protocol: header error:
> (closed before headers) at /usr/bin/spamd line 1671.
> Sun Mar 11 15:46:25 2007 [26280] info: prefork: child states: II
> Sun Mar 11 15:46:31 2007 [26282] info: spamd: connection from
> mxr1duk.xxxxx.com [127.0.0.1] at port 36880
> Sun Mar 11 15:46:31 2007 [26282] warn: spamd: bad protocol: header error:
> (closed before headers) at /usr/bin/spamd line 1671.
> Sun Mar 11 15:46:31 2007 [26280] info: prefork: child states: II
> 
> 
> any assistance would be much appreciated
> 
> Cheers ...
> 
> 

A little more information .. apologizes ... I'm running postfix ..
spamassassin 3.1.8-2.fc6 ... the spamd daemon is called from postfix via the
follow script 

#!/bin/sh
SENDMAIL="/usr/lib/sendmail.postfix -i"
SPAMASSASSIN=/usr/bin/spamc

# Exit codes from <sysexits.h>
EX_TEMPFAIL=75
EX_UNAVAILABLE=69

umask 077

OUTPUT="`mktemp /tmp/mailfilter.XXXXXXXXXX`"
if [ "$?" != 0 ]; then
    /usr/bin/logger -s -p mail.warning -t filter \
        "Unable to create temporary file."
    exit $EX_TEMPFAIL
fi

# Clean up when done or when aborting.
trap "rm -f $OUTPUT" EXIT SIGTERM

$SPAMASSASSIN -x > $OUTPUT
return="$?"
if [ "$return" == 1 ]; then
    echo "Message content rejected"
    exit $EX_UNAVAILABLE
elif [ "$return" != 0 ]; then
    /usr/bin/logger -s -p mail.warning -t filter \
        "Temporary SpamAssassin failure (spamc return $return)"
    exit $EX_TEMPFAIL
fi

$SENDMAIL "$@" < $OUTPUT
exit $?

I'm pretty sure its something i've done wrong ... the same error started on
both relays ... a minute apart from one another - no manual/automatic
installl's happened (yum.log) ... and the configs and exactly as they were
before ... nothing has really be changed .. *rolling eyes* :) .. 




-- 
View this message in context: 
http://www.nabble.com/protocol-error-in-spamassassin-tf3386186.html#a9425778
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Reply via email to