Using new Spamassassin User-Interface with Spamassassin version 3.0

Re: spam assassin stopped working after exiscan installation

albatroz said:
I installed exiscan after having SA 3.0 working with the DA panel.

However, now, although exiscan works detecting virus (with clamav), spamd is not longer detected by DA, and I can´t see any traces of SA in email headers... what should I do now?

Exiscan is PATCHED into the latest Exim. So you can't install it, it is just there! if you have one of the latest exim.

DA only checks if a process called spamd is running or perl spamd. Nothing more or less.

If still not working:

Install the latest exim version described in the forum section "Version Updates" After that get Spamblocker Exim.conf or the files.directadmin.com/services/exim4.conf

After you have got this working properly follow instructions in the control panel about spamassassin.

That working ? Then follow instruction in the thread Exim+clamav about installing clamav (if you have) and edditing the exim.conf for the virusscanner.

Done.

Make sure you have Spamd otherwise the panel won't see it. and offcourse for virusscanning make sure clamd runs.
 
i have a small problem:
when i check headers from mails send through SA, i see
Code:
Received: from mail by server01.x-x.nl with spam-scanned (Exim 4.43)
X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on 
	server01.x-x.nl
X-Spam-Level: *
X-Spam-Status: No, hits=2.0 required=5.0 tests=BIZ_TLD,FORGED_OUTLOOK_TAGS,
	HTML_MESSAGE,HTML_TAG_EXISTS_TBODY autolearn=no version=2.64

but when theres an attachment, i see this:
Code:
Received: from mail by server01.x-x.nl with spam-scanned (Exim 4.43)
X-Mailer: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409

so no x-spam-status
why do mails with attachment not get scanned

is that a wrong config?
 
Anyone have SA 3, latest Clan and exiscan working properly on a RHE server?
 
error (SOLVED)

Well Here's what I've got:


[root@www Mail-SpamAssassin-3.0.1]# perl Makefile.PL
What email address or URL should be used in the suspected-spam report
text for users who want more information on your filter installation?
(In particular, ISPs should change this to a local Postmaster contact)
default text: [the administrator of that system] [email protected]

Check network rules during 'make test' (test scripts may fail due to
network problems)? (y/n) [n] y

Run SQL-based Auto-whitelist tests during 'make test' (additional
information required) (y/n) [n]

Run Bayes SQL storage tests during 'make test' (additional
information required)? (y/n) [n]

Warning: prerequisite Digest::SHA1 0 not found.
Writing Makefile for Mail::SpamAssassin
Makefile written by ExtUtils::MakeMaker 6.05


[root@www Mail-SpamAssassin-3.0.1]# make
cp spamc/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::Plugin::Hashcash.3pm
Manifying blib/man3/Mail::SpamAssassin::Plugin.3pm
Manifying blib/man3/Mail::SpamAssassin::AutoWhitelist.3pm
Manifying blib/man1/sa-learn.1
Manifying blib/man3/Mail::SpamAssassin.3pm
Manifying blib/man3/Mail::SpamAssassin::BayesStore::SQL.3pm
Manifying blib/man3/Mail::SpamAssassin::Message::Metadata.3pm
Manifying blib/man3/Mail::SpamAssassin::BayesStore.3pm
Manifying blib/man1/spamc.1
Manifying blib/man1/spamd.1
Manifying blib/man3/Mail::SpamAssassin::Plugin::SPF.3pm
Manifying blib/man3/Mail::SpamAssassin::Message::Node.3pm
Manifying blib/man3/Mail::SpamAssassin::PluginHandler.3pm
Manifying blib/man3/Mail::SpamAssassin::Conf::SQL.3pm
Manifying blib/man3/Mail::SpamAssassin::PerMsgStatus.3pm
Manifying blib/man3/Mail::SpamAssassin::Conf.3pm
Manifying blib/man3/Mail::SpamAssassin::Message.3pm
Manifying blib/man3/Mail::SpamAssassin::ArchiveIterator.3pm
Manifying blib/man3/Mail::SpamAssassin::PerMsgLearner.3pm
Manifying blib/man3/Mail::SpamAssassin::Conf::Parser.3pm
Manifying blib/man3/Mail::SpamAssassin::SQLBasedAddrList.3pm
Manifying blib/man3/Mail::SpamAssassin::Plugin::URIDNSBL.3pm
Manifying blib/man3/Mail::SpamAssassin::PersistentAddrList.3pm
Manifying blib/man3/Mail::SpamAssassin::Conf::LDAP.3pm
Manifying blib/man1/spamassassin.1
Manifying blib/man3/Mail::SpamAssassin::Bayes.3pm
Manifying blib/man3/Mail::SpamAssassin::Plugin::RelayCountry.3pm
[root@www Mail-SpamAssassin-3.0.1]# make install
Writing /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/auto/Mail/SpamAssassin/.packlist
Appending installation info to /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/perllocal.pod
/usr/bin/perl "-MExtUtils::Command" -e mkpath /etc/mail/spamassassin
/usr/bin/perl -MFile::Spec -MFile::Copy \
-e "copy(q{rules/local.cf}, q{/etc/mail/spamassassin/local.cf}) unless -f q{/etc/mail/spamassassin/local.cf};"
/usr/bin/perl -MFile::Spec -MFile::Copy \
-e "copy(q{rules/init.pre}, q{/etc/mail/spamassassin/init.pre}) unless -f q{/etc/mail/spamassassin/init.pre};"
/usr/bin/perl "-MExtUtils::Command" -e mkpath /usr/share/spamassassin
/usr/bin/perl -e "map unlink, </usr/share/spamassassin/*>"
/usr/bin/perl build/preprocessor -Mvars -DVERSION="3.000001" -DPREFIX="/usr" -DDEF_RULES_DIR="/usr/share/spamassassin" -DLOCAL_RULES_DIR="/etc/mail/spamassassin" -DINSTALLSITELIB="/usr/lib/perl5/site_perl/5.8.3" -DCONTACT_ADDRESS="[email protected]" -m644 -Irules -O/usr/share/spamassassin 10_misc.cf 20_anti_ratware.cf 20_body_tests.cf 20_compensate.cf 20_dnsbl_tests.cf 20_drugs.cf 20_fake_helo_tests.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_hashcash.cf 25_spf.cf 25_uribl.cf 30_text_de.cf 30_text_fr.cf 30_text_nl.cf 30_text_pl.cf 50_scores.cf 60_whitelist.cf user_prefs.template triplets.txt languages
chmod 755 /usr/share/spamassassin

[root@www Mail-SpamAssassin-3.0.1]# /usr/bin/spamd -d -a -c -m 5
Can't locate Digest/SHA1.pm in @INC (@INC contains: ../lib /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/5.8.3/i386-linux-thread-multi /usr/lib/perl5/5.8.3 /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl) at /usr/lib/perl5/site_perl/5.8.3/Mail/SpamAssassin/EvalTests.pm line 33.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.3/Mail/SpamAssassin/EvalTests.pm line 33.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.3/Mail/SpamAssassin/PerMsgStatus.pm line 56.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.3/Mail/SpamAssassin/PerMsgStatus.pm line 56.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.3/Mail/SpamAssassin.pm line 74.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.3/Mail/SpamAssassin.pm line 74.
Compilation failed in require at /usr/bin/spamd line 42.
BEGIN failed--compilation aborted at /usr/bin/spamd line 42.
[root@ws01 Mail-SpamAssassin-3.0.1]#


SOLVED:
You have to install Digest::SHA1

I've done this by:

perl -MCPAN -e shell
get Digest::SHA1
test get Digest::SHA1
install get Digest::SHA1
quit

btw I'm running FC1.

After that, start spamd by: /usr/bin/spamd -d -c -m 5

;) :D
 
Last edited:
done the upgrade on my test box, be advised 3.0.1 is out now.

and you dont need -a.

The -a option has been removed. Please look at the use_auto_whitelist config option instead.
 
Anyone have SA 3, latest Clan and exiscan working properly on a RHE server?
 
mailwatch won't work

After upgrading to SA 3.01 my mailwatch doesn't update his webpage anymore. How can I fix this?
 
John included this in an email to me yesterday..

"SA 3.0 can be done fairly quickly. I can make a few changes to the spam.sh script for the next release."

Which looks encouraging!

Rob
 
"The -a option has been removed. Please look at the use_auto_whitelist config option instead."

I was going to investigate this but have been too busy, but could someone tell me if my assumptions are right.

I think in 2.x -a enables a function called auto_whitelist and in 3.x to enable this function instead you need a config option and so it is actually disabled.
 
Chrysalis said:
"The -a option has been removed. Please look at the use_auto_whitelist config option instead."

I was going to investigate this but have been too busy, but could someone tell me if my assumptions are right.

I think in 2.x -a enables a function called auto_whitelist and in 3.x to enable this function instead you need a config option and so it is actually disabled.

Standard it's enabled
 
It's worthy to note that SpamAssassin 3.0 does SPF checking itself. This mean it may be canning some email. Have a look at /etc/mail/spamassassin/init.pre:

Code:
# SPF - perform SPF verification.
loadplugin Mail::SpamAssassin::Plugin::SPF
I just found out about SPF and don't want it doing SPF checking, so I commented it out. It also seems SPF checking will place a higher load on the server.

Note that SA 3.0 also enables HashCash checking by default. If you don't want it doing that either, you can comment out:

Code:
loadplugin Mail::SpamAssassin::Plugin::Hashcash

Brian
 
thanks I kept the hashcash enabled looks a useful feature but disabled the spf checking.
 
I've installed the latest Spam Assassin and have DA seeing spamd. I've left the default settings, but it appears that the emails I'm receiving are being scanned. In the header section of the emails there is no mention on spam assassin. All i get is a message about four line into the header.

Received: from mail by online.mydomain.com with spam-scanned (Exim 4.43)

I've checked the exim.conf file and made sure that the spamassassin section is uncommented. I also restarted Exim.

Do this just mean that the default settings are too high for my mail server to pick up spam, or is it something more specific that I haven't done properly. Just wondering if there was something I missed.
 
Actually, the problem looks like it might eb that spamd stopped running for some reason. Is there a log file I can look at to check when spamd stopped running. Also, if the server has to reboot at some point, will spamd restart by default or does ithave to be manually restarted.
 
It is now working, just not sure why the spamd stopped running. If it's been installed and the exim.conf file has been setup correctly, should it start up automatically if the server has to be rebooted or do I have to update some config file to make sure this happens.
 
Re: error (SOLVED)

SOLVED:
You have to install Digest::SHA1

I've done this by:

perl -MCPAN -e shell
get Digest::SHA1
test get Digest::SHA1
install get Digest::SHA1
quit
[/B]

???

I get the following:
[root@server Mail-SpamAssassin-3.0.1]# perl -MCPAN -e
shell Can't locate CPAN.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .).
BEGIN failed--compilation aborted.

I got the same error after the perl Makefile.PL command:

Checking if your kit is complete... Looks good
Warning: prerequisite Digest::SHA1 0 not found.

Warning: I could not locate your pod2man program. Please make sure, your pod2man program is in your PATH before you execute 'make'

What do I do? What's pod2man and what's SHA1, and how do I finalize my SpamAssassin 3.0.1 with these errors?
 
What is MCPAN and why don't I have it?

I obviously need it to install SA 3.0.1

--running RH9, with default DA install from july 2004
 
Back
Top