PDA

View Full Version : Having problems with Spamassassin - can you help?


hostpc.com
11-10-2003, 08:35 PM
I ran the spam assassin setup scripts, no errors.

Scenario:
RH9
export LANG=C
./spam.sh

the perl HTML::file is installed.

Problem: Users are reporting mail is NOT being stopped/caught by Spamassassin.

I've looked at some of the headers, and they're correct - there is no indication of SA running.


Resolution? / Questions
There is no spamd daemon, should there be?
Is there a specific way to test spam assassin?
Any suggestions?

Thanks guys, as always, I appreciate your help.

Joe

DirectAdmin Support
11-10-2003, 11:49 PM
Hello,

Did you uncomment the spamassasin part of the /etc/exim.conf file and restart exim?

John

hostpc.com
11-11-2003, 04:37 AM
# Spam Assassin
spamcheck_director:
driver = accept
condition = "${if and { {!def:h_X-Spam-Flag:} {!eq {$received_protocol}{spam-scanned}} {!eq {$received_protocol}{local}} } {1}{0}}"
retry_use_local_part
transport = spamcheck
no_verify


Yep... (sorry, forgot to mention that step before)

hostpc.com
11-11-2003, 04:39 AM
In this mornings logs, there's :

Nov 11 06:38:20 www9 spamc[13215]: connect() to spamd at 127.0.0.1 failed, retrying (1/3): Connection refused
Nov 11 06:38:21 www9 spamc[13222]: connect() to spamd at 127.0.0.1 failed, retrying (1/3): Connection refused
Nov 11 06:38:21 www9 spamc[13215]: connect() to spamd at 127.0.0.1 failed, retrying (2/3): Connection refused
Nov 11 06:38:22 www9 spamc[13222]: connect() to spamd at 127.0.0.1 failed, retrying (2/3): Connection refused
Nov 11 06:38:22 www9 spamc[13215]: connect() to spamd at 127.0.0.1 failed, retrying (3/3): Connection refused
Nov 11 06:38:23 www9 spamc[13222]: connect() to spamd at 127.0.0.1 failed, retrying (3/3): Connection refused

a million or so times....

jamesthoms
11-11-2003, 09:09 PM
I'm getting the same problem:
ov 12 00:05:56 web spamc[15826]: connection attempt to spamd aborted after 3 retries
Nov 12 00:06:01 web spamc[15840]: connect() to spamd at 127.0.0.1 failed, retrying (1/3): Connection refused
Nov 12 00:06:02 web spamc[15840]: connect() to spamd at 127.0.0.1 failed, retrying (2/3): Connection refused
Nov 12 00:06:03 web spamc[15840]: connect() to spamd at 127.0.0.1 failed, retrying (3/3): Connection refused

Was there a solution to this problem ?

-James

jamesthoms
11-11-2003, 10:00 PM
Just realized spamd wasn't running....
I did a /usr/bin/spamd -d and it solved the problem...

Thanks,

-James

interfasys
11-30-2003, 11:51 AM
Where should we add a command to automatically start spammassassin at boot time?

ProWebUK
11-30-2003, 12:15 PM
Add it to the end of /etc/rc.local

Chris

interfasys
11-30-2003, 12:25 PM
Thx!

FarCry
11-30-2003, 02:23 PM
Does spam assasin come with redhat? lol i havent thought of using it before...

ProWebUK
11-30-2003, 02:47 PM
Not that i know of.

Chris

FarCry
11-30-2003, 02:58 PM
Yep, no RPM for it, i'll have to download manualy :)

interfasys
11-30-2003, 03:07 PM
But why don't you install the DA version? (spam.sh)

FarCry
11-30-2003, 03:17 PM
didnt know there was a da version....

interfasys
11-30-2003, 03:24 PM
Look in the DA folder which has all the setup scripts.

FarCry
11-30-2003, 03:29 PM
/usr/local/directadmin/scripts/spam.sh
Bingo, thanks man ;)