SpamAssassin doesn't start

modem

Verified User
Joined
Apr 7, 2004
Messages
364
I followed the directions on the email forum as outlined by the DirectAdmin support for installing and starting SpamAssassin, but after I do so SpamAssassin doesn't start or isn't shown in the process list. Here is what I did:

# cd /usr/local/directadmin/scripts
# ./spam.sh

* <back up exim.conf>

# nano /etc/exim.conf

* make changes according tot he other thread by uncommenting the spam assassin area.

# service exim restart

I then send sample emails and the headers do not show any spamassassin scanning and that is proven when I check the process/service list and nothing is shown about spam assassin.

Here is my output for when installing spam assassin.

[root@stargatesg1 scripts]# ./spam.sh
Writing Makefile for Mail::SpamAssassin
cp spamd/spamc blib/script/spamc
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/spamc
cp sa-learn blib/script/sa-learn
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/sa-learn
cp spamassassin blib/script/spamassassin
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/spamassassin
cp spamd/spamd blib/script/spamd
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/spamd
Manifying blib/man3/Mail::SpamAssassin::AutoWhitelist.3pm
Manifying blib/man1/sa-learn.1
Manifying blib/man3/Mail::SpamAssassin::PersistentAddrList.3pm
Manifying blib/man3/Mail::SpamAssassin.3pm
Manifying blib/man1/spamassassin.1
Manifying blib/man3/Mail::SpamAssassin::ConfSourceSQL.3pm
Manifying blib/man1/spamd.1
Manifying blib/man3/Mail::SpamAssassin::Bayes.3pm
Manifying blib/man3/Mail::SpamAssassin::Conf.3pm
Manifying blib/man3/Mail::SpamAssassin::PerMsgStatus.3pm
Manifying blib/man1/spamc.1
Manifying blib/man3/Mail::SpamAssassin::PerMsgLearner.3pm
Writing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Mail/SpamAssassin/.packlist
Appending installation info to /usr/lib/perl5/5.8.0/i386-linux-thread-multi/perllocal.pod
/usr/bin/perl "-MExtUtils::Command" -e mkpath /usr/share/spamassassin
rm -rf /usr/share/spamassassin/*
/usr/bin/perl build/preprocessor -Mvars -DVERSION="2.55" -DPREFIX="/usr" -DDEF_RULES_DIR="/usr/share/spamassassin" -DLOCAL_RULES_DIR="/etc/mail/spamassassin" -DINSTALLSITELIB="/usr/lib/perl5/site_perl/5.8.0" -Irules -O/usr/share/spamassassin 10_misc.cf 20_anti_ratware.cf 20_body_tests.cf 20_compensate.cf 20_head_tests.cf 20_html_tests.cf 20_meta_tests.cf 20_phrases.cf 20_porn.cf 20_ratware.cf 20_uri_tests.cf 23_bayes.cf 25_body_tests_es.cf 25_body_tests_pl.cf 25_head_tests_es.cf 25_head_tests_pl.cf 30_text_de.cf 30_text_es.cf 30_text_fr.cf 30_text_it.cf 30_text_pl.cf 50_scores.cf 60_whitelist.cf user_prefs.template triplets.txt languages
chmod 755 /usr/share/spamassassin
#


Am I doing something wrong? Help!

Brad
 
Thanks!

I did that and spamd is now showing as running in the process list. I did however restart exim, make sure the conf file was setup as:

-----------
# Spam Assassin
spamcheck_director:
driver = accept
condition = "${if and { {!def:h_X-Spam-Flag:} {!eq {$received_protocol}{spam-scanned}} {!eq {$received_protocol}{local}} } $
retry_use_local_part
transport = spamcheck
no_verify
-----------

After that I did a:

-----------
# service exim restart
-----------

Then I sent myself a test message and checked the headers. There wasn't any X-Spam: in the headers and I think that is because the specific domain isn't setup for that. Where do I go to begin setting up files for specific domains to allow/disallow access to spam assassin and it's configuration?

Also, does the spamd -d command make spamassassin start up upon the OS boot? Or do I have to manually modify the init.rd to make /usr/bin/spamd start on boot time?
 
Hello,

The spam only checks incoming email, so if you send yourself a message locally it won't be scanned : {$received_protocol}{local}

John
 
I figured that the first time around, then I went to my ISP's DSL account and sent myself messages and checked their headers. Still nothing in it about spamassassin checking the incoming mail. I also checked all of my incoming messages fromother isp's and none of them had a header like X-SPAM: etc.

Any ideas?
 
Here is a snippet of the 30 most recent lines of my mainlog:

2004-06-17 12:59:04 1Bb0Dz-0006q7-Qi Completed
2004-06-17 13:00:11 Start queue run: pid=26322
2004-06-17 13:00:11 1BageA-0003OZ-JH Message is frozen
2004-06-17 13:00:11 1BaeBv-000317-Jm Message is frozen
2004-06-17 13:00:11 End queue run: pid=26322
2004-06-17 13:00:57 1Bb0G1-0006qf-4V <= [email protected] H=(omta08.mta.everyone.net) [216.200.145.37] P=esmtp S=2045 [email protected]
2004-06-17 13:01:09 1Bb0G1-0006qi-8H <= [email protected] U=mail P=spam-scanned S=2204 [email protected]
2004-06-17 13:01:09 1Bb0G1-0006qi-8H => bawalker <[email protected]> R=virtual_user T=virtual_localdelivery
2004-06-17 13:01:09 1Bb0G1-0006qi-8H Completed
2004-06-17 13:01:09 1Bb0G1-0006qf-4V => bawalker <[email protected]> R=spamcheck_director T=spamcheck
2004-06-17 13:01:09 1Bb0G1-0006qf-4V Completed
2004-06-17 13:11:05 H=(ns2.etsmtl.ca) [142.137.251.16] F=<> rejected RCPT <[email protected]>: authentication required
2004-06-17 13:13:41 1Bb0SL-0006sB-Pq <= [email protected] H=(omta08.mta.everyone.net) [216.200.145.37] P=esmtp S=2045 [email protected]
2004-06-17 13:13:53 1Bb0SL-0006sF-T6 <= [email protected] U=mail P=spam-scanned S=2204 [email protected]
2004-06-17 13:13:53 1Bb0SL-0006sF-T6 => bawalker <[email protected]> R=virtual_user T=virtual_localdelivery
2004-06-17 13:13:53 1Bb0SL-0006sF-T6 Completed
2004-06-17 13:13:54 1Bb0SL-0006sB-Pq => bawalker <[email protected]> R=spamcheck_director T=spamcheck
2004-06-17 13:13:54 1Bb0SL-0006sB-Pq Completed
2004-06-17 13:14:00 H=(jupiter.dukcorp.com) [199.68.13.2] F=<> rejected RCPT <[email protected]>: authentication required
2004-06-17 13:14:18 H=(hvp1.heavy39pretzy.com) [206.51.224.206] F=<[email protected]> rejected RCPT <[email protected]>: authentication required
2004-06-17 13:15:11 Start queue run: pid=26455
2004-06-17 13:15:11 1BageA-0003OZ-JH Message is frozen
2004-06-17 13:15:11 1BaeBv-000317-Jm Message is frozen
2004-06-17 13:15:11 End queue run: pid=26455
2004-06-17 13:20:24 H=(omacws01.west.com) [199.38.51.225] F=<> rejected RCPT <[email protected]>: authentication required
2004-06-17 13:26:56 H=(jupiter.dukcorp.com) [199.68.13.2] F=<> rejected RCPT <[email protected]>: authentication required
2004-06-17 13:30:11 Start queue run: pid=26660
2004-06-17 13:30:11 1BageA-0003OZ-JH Message is frozen
2004-06-17 13:30:11 1BaeBv-000317-Jm Message is frozen
2004-06-17 13:30:11 End queue run: pid=26660
 
Back
Top