Spamassassin not working after 4.53
Adri Koppes
adrik at salesmanager.nl
Wed May 3 16:04:54 IST 2006
Julian,
One option might be to either have it commented out or leave the option
blank, so that it doesn't get used and people have to enable it
themselves when they start using sa-update and have verified they have
received the first update ok.
Another option could be to have MailScanner check on startup, if the
directory exists, is readable and actually contains some rules before
enabling the option.
Normal behaviour of sa-update is to download the new rules, run an
internal spamassassin --lint on them and if they pass, copy them to the
local_state_dir.
It looks like there is a small bug in SA, where it used the
local_state_dir, even when it is empty.
This would normally only happen, if there never was a successful
sa-update. As soon as sa-update has run successfully, it will never
delete the contents of the directory on a next unsuccessfull update.
Adri.
> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info
> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf
> Of Julian Field
> Sent: woensdag 3 mei 2006 16:48
> To: MailScanner discussion
> Subject: Re: Spamassassin not working after 4.53
>
> Should I urgently put out a new version with the SpamAssassin
> Local State Dir setting commented out in MailScanner.conf?
>
>
> On 3 May 2006, at 12:45, Roger Jochem wrote:
>
> > I'm with the same problem here...
> >
> > What's the problem with sa-update? I normally used my rules
> in /etc/
> > mail/spamassassin, and since this version 4.53.6-1, with this new
> > setting "SpamAssassin Local State Dir" I'm having problems...
> >
> > My sa-update command runned with debug didn't found any working
> > mirror... Any help?
> >
> > Regards
> >
> > Roger Jochem
> >
> > ----- Original Message ----- From: "Adri Koppes"
> > <adrik at salesmanager.nl>
> > To: "MailScanner discussion" <mailscanner at lists.mailscanner.info>
> > Sent: Wednesday, May 03, 2006 8:28 AM
> > Subject: RE: Spamassassin not working after 4.53
> >
> >
> >> I see you are using /var/lib/spamassassin/3.001001 as your sys and
> >> def rules dir.
> >> Probably these where created by running sa-update.
> >> Yet, there are NO rules from this location read!
> >> So all the default built-in rules don't exist as far as Sa is
> >> concerned.
> >> Are there any rules in /var/lib/spamassassin/3.001001 or
> underlying
> >> directories?
> >> Have you tried running sa-update again? Perhaps it's a failed sa-
> >> update, which deleted everything?
> >>
> >> Adri.
> >>
> >>
> >>> -----Original Message-----
> >>> From: mailscanner-bounces at lists.mailscanner.info
> >>> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of
> >>> Devon Harding
> >>> Sent: woensdag 3 mei 2006 13:17
> >>> To: MailScanner discussion
> >>> Subject: Spamassassin not working after 4.53
> >>>
> >>> After I upgraded to 4.53, I noticed that Mailscanner was letting
> >>> through ALOT more spam. I also noticed that spamassassin was
> >>> scoring messages very low. Can anyone tell me whats going on?
> >>> Here's a copy of my spamassassin --lint:
> >>>
> >>> [root at mars MailScanner]# spamassassin -x -D -p
> >>> /etc/MailScanner/spam.assassin.prefs.conf --lint [11642] dbg:
> >>> logger: adding facilities: all [11642] dbg: logger:
> logging level is
> >>> DBG [11642] dbg: generic: SpamAssassin version 3.1.1 [11642] dbg:
> >>> config: score set 0 chosen.
> >>> [11642] dbg: util: running in taint mode? yes [11642] dbg: util:
> >>> taint mode: deleting unsafe environment variables, resetting PATH
> >>> [11642] dbg: util: PATH included '/usr/kerberos/sbin', keeping
> >>> [11642] dbg: util: PATH included '/usr/kerberos/bin', keeping
> >>> [11642] dbg: util: PATH included '/usr/local/sbin',
> keeping [11642]
> >>> dbg: util: PATH included '/usr/local/bin', keeping [11642] dbg:
> >>> util: PATH included '/sbin', keeping [11642] dbg: util: PATH
> >>> included '/bin', keeping [11642] dbg: util: PATH included
> >>> '/usr/sbin', keeping [11642] dbg: util: PATH included '/usr/bin',
> >>> keeping [11642] dbg: util: PATH included '/root/bin', keeping
> >>> [11642] dbg: util: final PATH set to:
> >>> /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/loca
> >>> l/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
> >>> [11642] dbg: dns: is Net::DNS::Resolver available? yes
> [11642] dbg:
> >>> dns: Net::DNS version: 0.57 [11642] dbg: diag: perl platform:
> >>> 5.008008 linux [11642] dbg: diag: module installed: Digest::SHA1,
> >>> version 2.11 [11642] dbg: diag: module installed: HTML::Parser,
> >>> version 3.51 [11642] dbg: diag: module installed: MIME::Base64,
> >>> version 3.07 [11642] dbg: diag: module installed:
> DB_File, version
> >>> 1.814 [11642] dbg: diag: module installed: Net::DNS, version 0.57
> >>> [11642] dbg: diag: module installed: Net::SMTP, version
> 2.29 [11642]
> >>> dbg: diag: module installed: Mail::SPF::Query, version 1.999001
> >>> [11642] dbg: diag: module installed: IP::Country::Fast, version
> >>> 604.001 [11642] dbg: diag: module installed:
> Razor2::Client::Agent,
> >>> version 2.81 [11642] dbg: diag: module installed: Net::Ident,
> >>> version 1.20 [11642] dbg: diag: module not installed:
> >>> IO::Socket::INET6 ('require' failed) [11642] dbg: diag: module
> >>> installed: IO::Socket::SSL, version 0.97 [11642] dbg:
> diag: module
> >>> installed: Time::HiRes, version 1.86 [11642] dbg: diag: module
> >>> installed: DBI, version 1.50 [11642] dbg: diag: module installed:
> >>> Getopt::Long, version 2.35 [11642] dbg: diag: module installed:
> >>> LWP::UserAgent, version 2.033 [11642] dbg: diag: module
> installed:
> >>> HTTP::Date, version 1.47 [11642] dbg: diag: module installed:
> >>> Archive::Tar, version 1.29 [11642] dbg: diag: module installed:
> >>> IO::Zlib, version 1.04 [11642] dbg: ignore: using a test
> message to
> >>> lint rules [11642] dbg: config: using
> "/etc/mail/spamassassin" for
> >>> site rules pre files [11642] dbg: config: read file
> >>> /etc/mail/spamassassin/init.pre [11642] dbg: config: read file
> >>> /etc/mail/spamassassin/v310.pre [11642] dbg: config: using
> >>> "/var/lib/spamassassin/3.001001" for sys rules pre files [11642]
> >>> dbg: config: using "/var/lib/spamassassin/3.001001" for default
> >>> rules dir [11642] dbg: config: using "/etc/mail/spamassassin" for
> >>> site rules dir [11642] dbg: config: read file
> >>> /etc/mail/spamassassin/70_sare_bayes_poison_nxm.cf
> >>> [11642] dbg: config: read file
> >>> /etc/mail/spamassassin/70_sare_evilnum0.cf
> >>> [11642] dbg: config: read file
> >>> /etc/mail/spamassassin/70_sare_evilnum1.cf
> >>> [11642] dbg: config: read file
> >>> /etc/mail/spamassassin/70_sare_evilnum2.cf
> >>> [11642] dbg: config: read file /etc/mail/spamassassin/
> >>> 70_sare_html.cf [11642] dbg: config: read file
> >>> /etc/mail/spamassassin/ 70_sare_html4.cf [11642] dbg:
> config: read
> >>> file /etc/mail/spamassassin/70_sare_html_eng.cf
> >>> [11642] dbg: config: read file /etc/mail/spamassassin/
> >>> 70_sare_obfu.cf [11642] dbg: config: read file
> >>> /etc/mail/spamassassin/70_sare_random.cf
> >>> [11642] dbg: config: read file
> >>> /etc/mail/spamassassin/70_sare_specific.cf
> >>> [11642] dbg: config: read file
> /etc/mail/spamassassin/70_sare_uri.cf
> >>> [11642] dbg: config: read file
> >>> /etc/mail/spamassassin/70_sare_whitelist.cf
> >>> [11642] dbg: config: read file
> >>> /etc/mail/spamassassin/72_sare_redirect_post3.0.0.cf
> >>> [11642] dbg: config: read file /etc/mail/spamassassin/
> >>> 88_FVGT_body.cf [11642] dbg: config: read file
> >>> /etc/mail/spamassassin/88_FVGT_headers.cf
> >>> [11642] dbg: config: read file
> >>> /etc/mail/spamassassin/88_FVGT_rawbody.cf
> >>> [11642] dbg: config: read file
> >>> /etc/mail/spamassassin/88_FVGT_subject.cf
> >>> [11642] dbg: config: read file
> /etc/mail/spamassassin/88_FVGT_uri.cf
> >>> [11642] dbg: config: read file
> >>> /etc/mail/spamassassin/99_FVGT_Tripwire.cf
> >>> [11642] dbg: config: read file /etc/mail/spamassassin/antidrug.cf
> >>> [11642] dbg: config: read file /etc/mail/spamassassin/backhair.cf
> >>> [11642] dbg: config: read file
> /etc/mail/spamassassin/chickenpox.cf
> >>> [11642] dbg: config: read file /etc/mail/spamassassin/german.cf
> >>> [11642] dbg: config: read file /etc/mail/spamassassin/local.cf
> >>> [11642] dbg: config: read file
> /etc/mail/spamassassin/mailscanner.cf
> >>> [11642] dbg: config: read file /etc/mail/spamassassin/mangled.cf
> >>> [11642] dbg: config: read file
> >>> /etc/mail/spamassassin/random.current.cf
> >>> [11642] dbg: config: read file
> >>> /etc/mail/spamassassin/sa-blacklist.current.uri.cf
> >>> [11642] dbg: config: read file /etc/mail/spamassassin/tripwire.cf
> >>> [11642] dbg: config: read file /etc/mail/spamassassin/weeds.cf
> >>> [11642] dbg: config: using "/etc/MailScanner/
> >>> spam.assassin.prefs.conf"
> >>> for user prefs file
> >>> [11642] dbg: config: read file
> >>> /etc/MailScanner/spam.assassin.prefs.conf
> >>> [11642] dbg: plugin: loading Mail::SpamAssassin::Plugin::DCC from
> >>> @INC [11642] dbg: dcc: network tests on, registering DCC [11642]
> >>> dbg: plugin: registered
> >>> Mail::SpamAssassin::Plugin::DCC=HASH(0x9a6b8e0)
> >>> [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::Pyzor from @INC [11642] dbg: pyzor:
> >>> network tests on, attempting Pyzor [11642] dbg: plugin: registered
> >>> Mail::SpamAssassin::Plugin::Pyzor=HASH(0x9a5db2c)
> >>> [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::Razor2 from @INC [11642] dbg: razor2:
> >>> razor2 is available, version 2.81 [11642] dbg: plugin: registered
> >>> Mail::SpamAssassin::Plugin::Razor2=HASH(0x9b24050)
> >>> [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::SpamCop from @INC [11642]
> dbg: reporter:
> >>> network tests on, attempting SpamCop [11642] dbg: plugin:
> registered
> >>> Mail::SpamAssassin::Plugin::SpamCop=HASH(0x9b5b2a8)
> >>> [11642] dbg: plugin: loading Mail::SpamAssassin::Plugin::AWL from
> >>> @INC [11642] dbg: plugin: registered
> >>> Mail::SpamAssassin::Plugin::AWL=HASH(0x9ae90d4)
> >>> [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::AutoLearnThreshold from @INC [11642]
> >>> dbg: plugin: registered
> >>> Mail::SpamAssassin::Plugin::AutoLearnThreshold=HASH(0x9aea07c)
> >>> [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::WhiteListSubject from @INC
> [11642] dbg:
> >>> plugin: registered
> >>> Mail::SpamAssassin::Plugin::WhiteListSubject=HASH(0x9aeaaf0)
> >>> [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::MIMEHeader from @INC [11642] dbg:
> >>> plugin: registered
> >>> Mail::SpamAssassin::Plugin::MIMEHeader=HASH(0x9aeb7d4)
> >>> [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::ReplaceTags from @INC [11642] dbg:
> >>> plugin: registered
> >>> Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x9ba573c)
> >>> [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::RelayCountry from @INC [11642] dbg:
> >>> plugin: registered
> >>> Mail::SpamAssassin::Plugin::RelayCountry=HASH(0x9ba5fdc)
> >>> [11642] dbg: plugin: loading Mail::SpamAssassin::Plugin::SPF from
> >>> @INC [11642] dbg: plugin: registered
> >>> Mail::SpamAssassin::Plugin::SPF=HASH(0x9b64784)
> >>> [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::URIDNSBL from @INC [11642]
> dbg: plugin:
> >>> registered
> >>> Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x9bb3e54)
> >>> [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::Razor2 from @INC [11642] dbg: razor2:
> >>> razor2 is available, version 2.81 [11642] dbg: plugin: did not
> >>> register
> Mail::SpamAssassin::Plugin::Razor2=HASH(0x9bb3f14), already
> >>> registered [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::DCC from @INC [11642] dbg:
> dcc: network
> >>> tests on, registering DCC [11642] dbg: plugin: did not register
> >>> Mail::SpamAssassin::Plugin::DCC=HASH(0x9a85404), already
> registered
> >>> [11642] dbg: plugin: loading
> Mail::SpamAssassin::Plugin::Pyzor from
> >>> @INC [11642] dbg: pyzor: network tests on, attempting
> Pyzor [11642]
> >>> dbg: plugin: did not register
> >>> Mail::SpamAssassin::Plugin::Pyzor=HASH(0x9a85428), already
> >>> registered [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::Razor2 from @INC [11642] dbg: razor2:
> >>> razor2 is available, version 2.81 [11642] dbg: plugin: did not
> >>> register
> Mail::SpamAssassin::Plugin::Razor2=HASH(0x9a85440), already
> >>> registered [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::SpamCop from @INC [11642]
> dbg: reporter:
> >>> network tests on, attempting SpamCop [11642] dbg: plugin: did not
> >>> register Mail::SpamAssassin::Plugin::SpamCop=HASH(0x9a8550c),
> >>> already registered [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::AWL from @INC [11642] dbg:
> plugin: did
> >>> not register Mail::SpamAssassin::Plugin::AWL=HASH(0x9a854d0),
> >>> already registered [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::AutoLearnThreshold from @INC [11642]
> >>> dbg: plugin: did not register
> >>> Mail::SpamAssassin::Plugin::AutoLearnThreshold=HASH(0x9a855a8),
> >>> already registered
> >>> [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::WhiteListSubject from @INC
> [11642] dbg:
> >>> plugin: did not register
> >>> Mail::SpamAssassin::Plugin::WhiteListSubject=HASH(0x9a855a8),
> >>> already
> >>> registered
> >>> [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::MIMEHeader from @INC [11642] dbg:
> >>> plugin: did not register
> >>> Mail::SpamAssassin::Plugin::MIMEHeader=HASH(0x9a8568c), already
> >>> registered [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::ReplaceTags from @INC [11642] dbg:
> >>> plugin: did not register
> >>> Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x9a85704), already
> >>> registered [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::RelayCountry from @INC [11642] dbg:
> >>> plugin: did not register
> >>> Mail::SpamAssassin::Plugin::RelayCountry=HASH(0x9a8571c), already
> >>> registered [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::SPF from @INC [11642] dbg:
> plugin: did
> >>> not register Mail::SpamAssassin::Plugin::SPF=HASH(0x9a856b0),
> >>> already registered [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::URIDNSBL from @INC [11642]
> dbg: plugin:
> >>> did not register
> >>> Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x9a85710), already
> >>> registered [11642] dbg: plugin: loading
> >>> Mail::SpamAssassin::Plugin::Razor2 from @INC [11642] dbg: razor2:
> >>> razor2 is available, version 2.81 [11642] dbg: plugin: did not
> >>> register
> Mail::SpamAssassin::Plugin::Razor2=HASH(0x9a8577c), already
> >>> registered [11642] dbg: plugin:
> >>> Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x9ba573c)
> implements
> >>> 'finish_parsing_end'
> >>> [11642] dbg: replacetags: replacing tags [11642] dbg:
> replacetags:
> >>> done replacing tags [11642] dbg: bayes: using username:
> root [11642]
> >>> dbg: bayes: database connection established [11642] dbg: bayes:
> >>> found bayes db version 3 [11642] dbg: bayes: Using
> userid: 1 [11642]
> >>> dbg: config: score set 3 chosen.
> >>> [11642] dbg: message: ---- MIME PARSER START ---- [11642] dbg:
> >>> message: main message type: text/plain [11642] dbg:
> message: parsing
> >>> normal part [11642] dbg: message: added part, type: text/plain
> >>> [11642] dbg: message: ---- MIME PARSER END ---- [11642] dbg: dns:
> >>> name server: 192.168.0.10, family: 2, ipv6: 0 [11642] dbg: dns:
> >>> testing resolver nameservers: 192.168.0.10, 192.168.0.12,
> >>> 192.168.0.2 [11642] dbg: dns: trying (3) linux.org...
> >>> [11642] dbg: dns: looking up NS for 'linux.org'
> >>> [11642] dbg: dns: NS lookup of linux.org using
> 192.168.0.10 failed,
> >>> no results found [11642] dbg: dns: trying (2) akamai.com...
> >>> [11642] dbg: dns: looking up NS for 'akamai.com'
> >>> [11642] dbg: dns: NS lookup of akamai.com using
> 192.168.0.10 failed,
> >>> no results found [11642] dbg: dns: trying (1) intel.com...
> >>> [11642] dbg: dns: looking up NS for 'intel.com'
> >>> [11642] dbg: dns: NS lookup of intel.com using 192.168.0.10
> >>> succeeded => DNS available (set dns_available to
> override) [11642]
> >>> dbg: dns: is DNS available? 1 [11642] dbg: metadata:
> >>> X-Spam-Relays-Trusted:
> >>> [11642] dbg: metadata: X-Spam-Relays-Untrusted:
> >>> [11642] dbg: plugin:
> >>> Mail::SpamAssassin::Plugin::RelayCountry=HASH(0x9ba5fdc)
> implements
> >>> 'extract_metadata'
> >>> [11642] dbg: metadata: X-Relay-Countries:
> >>> [11642] dbg: message: no encoding detected [11642] dbg: plugin:
> >>> Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x9bb3e54) implements
> >>> 'parsed_metadata'
> >>> [11642] dbg: uridnsbl: domains to query:
> >>> [11642] dbg: check: running tests for priority: 0 [11642] dbg:
> >>> rules: running header regexp tests; score so far=0 [11642] dbg:
> >>> rules: running body-text per-line regexp tests; score so far=0
> >>> [11642] dbg: rules: ran body rule __SARE_HTML_HAS_MSG ======> got
> >>> hit: "I"
> >>> [11642] dbg: uri: running uri tests; score so far=0 [11642] dbg:
> >>> rules: running raw-body-text per-line regexp tests; score
> so far=0
> >>> [11642] dbg: rules: running full-text regexp tests; score
> so far=0
> >>> [11642] dbg: plugin:
> >>> Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x9bb3e54) implements
> >>> 'check_tick'
> >>> [11642] dbg: check: running tests for priority: 500 [11642] dbg:
> >>> plugin:
> >>> Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x9bb3e54) implements
> >>> 'check_post_dnsbl'
> >>> [11642] dbg: rules: running meta tests; score so far=0
> [11642] dbg:
> >>> rules: running header regexp tests; score so far=0 [11642] dbg:
> >>> rules: running body-text per-line regexp tests; score so far=0
> >>> [11642] dbg: uri: running uri tests; score so far=0 [11642] dbg:
> >>> rules: running raw-body-text per-line regexp tests; score
> so far=0
> >>> [11642] dbg: rules: running full-text regexp tests; score
> so far=0
> >>> [11642] dbg: check: is spam? score=0 required=5 [11642]
> dbg: check:
> >>> tests= [11642] dbg: check: subtests=__SARE_HTML_HAS_MSG
> >>> --
> >>> MailScanner mailing list
> >>> mailscanner at lists.mailscanner.info
> >>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
> >>>
> >>> Before posting, read http://wiki.mailscanner.info/posting
> >>>
> >>> Support MailScanner development - buy the book off the website!
> >>>
> >> --
> >> MailScanner mailing list
> >> mailscanner at lists.mailscanner.info
> >> http://lists.mailscanner.info/mailman/listinfo/mailscanner
> >>
> >> Before posting, read http://wiki.mailscanner.info/posting
> >>
> >> Support MailScanner development - buy the book off the website!
> >
> > --
> > MailScanner mailing list
> > mailscanner at lists.mailscanner.info
> > http://lists.mailscanner.info/mailman/listinfo/mailscanner
> >
> > Before posting, read http://wiki.mailscanner.info/posting
> >
> > Support MailScanner development - buy the book off the website!
>
> --
> Julian Field
> www.MailScanner.info
> Buy the MailScanner book at www.MailScanner.info/store PGP
> footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> MailScanner thanks transtec Computers for their support.
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
More information about the MailScanner
mailing list