PDA

View Full Version : SpamAssassin



existenz
03-10-2004, 12:33 AM
I can't get spamassassin to work.


This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

user@domain.com
local delivery failed

The following text was generated during the delivery attempt:

------ user@domain.com ------

An error was detected while processing a file of BSMTP input.
The error message was:

421 Lost incoming connection

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.
421 Lost incoming connection
Transaction started in line 0
Error detected in line 3


Anyone else able to replicate this problem? I have done everything right:

ran ./spam.sh from the da scripts folder
uncommented out spamassin stuff from /etc/exim.conf
started spamd

It rejects and give the message above. I don't see anything in the logs about it. I also tried upgrading and using SpamAssassin 2.63 same deal.

I am at a loss

DirectAdmin Support
03-10-2004, 10:15 AM
Not sure.. found this though:

http://www.exim.org/pipermail/exim-users/Week-of-Mon-20030106/048210.html

Maybe try and run the included tests:

cd /usr/local/directadmin/scripts/packages/Mail-SpamAssassin-2.55
spamassassin -t < sample-nonspam.txt > nonspam.out
spamassassin -t < sample-spam.txt > spam.out


John

existenz
03-10-2004, 11:09 PM
I read all though that maillist last night. I found that exact same post, I don't think that is my issue. He said it was permissions of the spamc and spamd if I remember correctly.

I am rebuilding the system to make sure it was not us.

existenz
03-12-2004, 09:48 AM
John found the problem last night, search the /etc/exim.conf for spamc. Replace this:

/usr/bin/spamc

to

/usr/local/bin/spamc

I also added this script to boot spamd on boot since it does not currently does this. You can drop this in /usr/local/etc/rc.d/

You can call it spamd.sh and chmod to 744.

#!/bin/sh
#
# Startup / shutdown script for SpamAssassin daemon

case "$1" in
start)
/usr/local/bin/spamd --auto-whitelist --daemonize --pidfile=/var/run/spamd.pid && echo -n ' spamd'
;;

stop)
/bin/kill `cat /var/run/spamd.pid` > /dev/null 2>&1 && echo -n ' spamd'
;;

*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac

exit 0

LyricTung
05-20-2004, 11:47 AM
This was driving me nuts! I made the mistake of not methodically looking at it; went straight for a more complex issue.

Thanks John!

BigWil
09-06-2004, 03:27 PM
This IS still an issue. But the change of /usr/bin/spamc to /usr/local/bin/spamc found in this post does resolve the issue.

Big Wil

Romka
09-28-2004, 11:41 PM
Help please. All I do under the instruction above mentioned but why that from addresses taking place in the Black list all the same reaches mail though it is necessary "Delete Spam" why ?

OS: FreBSD 5.2.1