bayes: not available for scanning

Hello guys,

For a couple of months i've got a mailserver with spamassassin running. All works fine but lately i get more spam. When i do spamassinss -D i see this:
[3305] dbg: bayes: tie-ing to DB file R/O /var/amavis/.spamassassin/bayes_toks
[3305] dbg: bayes: tie-ing to DB file R/O /var/amavis/.spamassassin/bayes_seen
[3305] dbg: bayes: found bayes db version 3
[3305] dbg: bayes: DB journal sync: last sync: 0
[3305] dbg: bayes: not available for scanning, only 0 spam(s) in bayes DB < 50
[3305] dbg: bayes: untie-ing

I know the number off spam message must be greater then 50 to get bayes to work but the number of spams stays on 0. What can be the problem?

Hope you can help me out.
NetaffairsAsked:
Who is Participating?
 
NetaffairsConnect With a Mentor Author Commented:
Hi found the solution:
I couldn't find bayes_path  /var/amavis/.spamassassin/bayes so i created it and it all works.
0
 
ai_ja_naiCommented:
are there other filters running? or can just be that emails get downloaded and deleted from the server by users before the bayesian filter can start running?
0
 
NetaffairsAuthor Commented:
After the email is scanned with SA the mail is scanned with amavisd. This is all automatic and users can't interupt this process.
0
Worried about phishing attacks?

90% of attacks start with a phish. It’s critical that IT admins and MSSPs have the right security in place to protect their end users from these phishing attacks. Check out our latest feature brief for tips and tricks to keep your employees off a hackers line!

 
ai_ja_naiCommented:
but what if the critical quota of 50 can't be reached because the mailbox keeps getting empty?
0
 
NetaffairsAuthor Commented:
The scanning is done before the message gets to the mailbox. The system recieves the mail, SA (with bayes) and amavis scans the messages and if the message is no spam the message is dropped in the mailbox.
0
 
ai_ja_naiCommented:
then, it's spamassassin which is not blocking the spam emails; otherwise they would be dropped into the database and analyzed
0
 
NetaffairsAuthor Commented:
OK. What can i do to fix the problem?
0
 
ai_ja_naiCommented:
With the information I've got, I can't tell. Post configuration files
0
 
NetaffairsAuthor Commented:
Hi ai ja nai:

This is the top of my local.cf:
use_auto_whitelist 0
use_bayes 1
use_razor2 1
bayes_auto_learn 1
bayes_auto_learn_threshold_spam 8
bayes_min_spam_num 100
bayes_path  /var/amavis/.spamassassin/bayes

Do you need more conf files?

Thanks for the help.
0
 
ai_ja_naiCommented:
I need the spamassassin conf file
0
 
NetaffairsAuthor Commented:
This is the spamassassin conf file(local.cf):
use_auto_whitelist 0
use_bayes 1
use_razor2 1
bayes_auto_learn 1
bayes_auto_learn_threshold_spam 8
bayes_min_spam_num 100
bayes_path  /var/amavis/.spamassassin/bayes

#loadplugin Mail::SpamAssassin::Plugin::ocrtext /etc/mail/spamassassin/ocrtext.pm

#header RCVD_IN_SOBER            eval:check_rbl('sober', 'sober.bl.spamtraps.org.')
#describe RCVD_IN_SOBER          SOBER: sender is listed in SOBER.BL.SPAMTRAPS.ORG
#tflags RCVD_IN_SOBER            net
#score RCVD_IN_SOBER            2.0

#
# Quick ruleset to block the german (Sober) spamflood (C) Prolocation
# V0.2

# 01 Subject: Gegen das Vergessen
# 02 Subject: Verbrechen der deutschen Frau
# 03 Subject: Dresden Bombing Is To Be Regretted Enormously
# 04 Subject: Graeberschaendung auf bundesdeutsche Anordnung
# 05 Subject: Deutsche Buerger trauen sich nicht ...
# 06 Subject: S.O.S. Kiez! Polizei schlaegt Alarm
# 07 Subject: Schily ueber Deutschland
# 08 Subject: Massenhafter Steuerbetrug durch auslaendische Arbeitnehmer
# 09 Subject: The Whore Lived Like a German
# 10 Subject: Transparenz ist das Mindeste
# 11 Subject: Volk wird nur zum zahlen gebraucht!
# 12 Subject: Trotz Stellenabbau
# 13 Subject: Augen auf
# 14 Subject: Armenian Genocide Plagues Ankara 90 Years On
# 15 Subject: Du wirst ausspioniert ....!
# 16 Subject: Dresden 1945
# 17 Subject: Blutige Selbstjustiz
# 18 Subject: Turkish Tabloid Enrages Germany with Nazi Comparisons
# 19 Subject: Multi-Kulturell = Multi-Kriminell
# 20 Subject: 60 Jahre Befreiung: Wer feiert mit?
# 21 Subject: Vorbildliche Aktion
# 22 Subject: Auf Streife durch den Berliner Wedding
# 23 Subject: Tuerkei in die EU
# 24 Subject: Paranoider Deutschenmoerder kommt in Psychiatrie
# 25 Subject: Hier sind wir Lehrer die einzigen Auslaender
# 26 Subject: 4,8 Mill. Osteuropaeer durch Fischer-Volmer Erlass
# 27 Subject: Du wirst zum Sklaven gemacht!!!
# 28 Subject: Deutsche werden kuenftig beim Arzt abgezockt
# 29 Subject: Auslaenderpolitik
# 30 Subject: Auslaender bevorzugt

header PROLO_GSPAM01 Subject =~ /Gegen das Vergessen/i
header PROLO_GSPAM02 Subject =~ /Verbrechen der deutschen Frau/i
header PROLO_GSPAM03 Subject =~ /Dresden Bombing Is To Be Regretted Enormously/i
header PROLO_GSPAM04 Subject =~ /Graeberschaendung auf bundesdeutsche Anordnung/i
header PROLO_GSPAM05 Subject =~ /Deutsche Buerger trauen sich nicht \.\.\./i
header PROLO_GSPAM06 Subject =~ /S\.O\.S. Kiez\! Polizei schlaegt Alarm/i
header PROLO_GSPAM07 Subject =~ /Schily ueber Deutschland/i
header PROLO_GSPAM08 Subject =~ /Massenhafter Steuerbetrug durch auslaendische Arbeitnehmer/i
header PROLO_GSPAM09 Subject =~ /The Whore Lived Like a German/i
header PROLO_GSPAM10 Subject =~ /Transparenz ist das Mindeste/i
header PROLO_GSPAM11 Subject =~ /Volk wird nur zum zahlen gebraucht!/i
header PROLO_GSPAM12 Subject =~ /Trotz Stellenabbau/i
header PROLO_GSPAM13 Subject =~ /Augen auf/i
header PROLO_GSPAM14 Subject =~ /Armenian Genocide Plagues Ankara 90 Years On/i
header PROLO_GSPAM15 Subject =~ /Du wirst ausspioniert \.\.\.\.\!/i
header PROLO_GSPAM16 Subject =~ /Dresden 1945/i
header PROLO_GSPAM17 Subject =~ /Blutige Selbstjustiz/i
header PROLO_GSPAM18 Subject =~ /Turkish Tabloid Enrages Germany with Nazi Comparisons/i
header PROLO_GSPAM19 Subject =~ /Multi-Kulturell \= Multi-Kriminell/i
header PROLO_GSPAM20 Subject =~ /60 Jahre Befreiung: Wer feiert mit?/i
header PROLO_GSPAM21 Subject =~ /Vorbildliche Aktion/i
header PROLO_GSPAM22 Subject =~ /Auf Streife durch den Berliner Wedding/i
header PROLO_GSPAM23 Subject =~ /Tuerkei in die EU/i
header PROLO_GSPAM24 Subject =~ /Paranoider Deutschenmoerder kommt in Psychiatrie/i
header PROLO_GSPAM25 Subject =~ /Hier sind wir Lehrer die einzigen Auslaender/i
header PROLO_GSPAM26 Subject =~ /4\,8 Mill\. Osteuropaeer durch Fischer-Volmer Erlass/i
header PROLO_GSPAM27 Subject =~ /Du wirst zum Sklaven gemacht\!\!\!/i
header PROLO_GSPAM28 Subject =~ /Deutsche werden kuenftig beim Arzt abgezockt/i
header PROLO_GSPAM29 Subject =~ /Auslaenderpolitik/i
header PROLO_GSPAM30 Subject =~ /Auslaender bevorzugt/i

header PROLO_GSPAM31 Subject =~ /Nieuwsbrief Sanitair betreffende displaymogelijkheden Damixa./i

score PROLO_GSPAM01 8
score PROLO_GSPAM02 8
score PROLO_GSPAM03 8
score PROLO_GSPAM04 8
score PROLO_GSPAM05 8
score PROLO_GSPAM06 8
score PROLO_GSPAM07 8
score PROLO_GSPAM08 8
score PROLO_GSPAM09 8
score PROLO_GSPAM10 8
score PROLO_GSPAM11 8
score PROLO_GSPAM12 8
score PROLO_GSPAM13 8
score PROLO_GSPAM14 8
score PROLO_GSPAM15 8
score PROLO_GSPAM16 8
score PROLO_GSPAM17 8
score PROLO_GSPAM18 8
score PROLO_GSPAM19 8
score PROLO_GSPAM20 8
score PROLO_GSPAM21 8
score PROLO_GSPAM22 8
score PROLO_GSPAM23 8
score PROLO_GSPAM24 8
score PROLO_GSPAM25 8
score PROLO_GSPAM26 8
score PROLO_GSPAM27 8
score PROLO_GSPAM28 8
score PROLO_GSPAM29 8
score PROLO_GSPAM30 8
score PROLO_GSPAM31 8
describe PROLO_GSPAM30 Imbos mailing block

rawbody _GEOCITIES1 /how to make yourself and your woman happy\!/
score _GEOCITIES1 0.1
rawbody _GEOCITIES2 /http\:\/\/uk\.geocities\.com/
score _GEOCITIES2 0.1

meta GEOCITIES (_GEOCITIES1 && _GEOCITIES2)
score GEOCITIES 8

rawbody _SPAMTEST1 /Dit is een Intermax test SPAM mail/
score _SPAMTEST1 8

rawbody _KILLDOG1 /I am ready to kill myself and eat my dog/
score _KILLDOG1 10


rawbody _MEATCHICK1 /I\'ve meat cool chick yesterday/
score _MEATCHICK1 10

# Viagra type spammails (1)
rawbody _VIAGRA1 /gra \$3\.41/
score _VIAGRA1 0.1
rawbody _VIAGRA2 /\$3\.72/
score _VIAGRA2 0.1

meta _VIAGRA (_VIAGRA1 && _VIAGRA2)
score _VIAGRA 8


# Viagra type spammails (2)
rawbody _VIAGRA3 /Viagra \$3/
score _VIAGRA3 8

# TXHE / Texhoma Energy spam

rawbody _TXHE1 /Texhoma/
score _TXHE1 0.1
rawbody _TXHE2 /TXHE/
score _TXHE2 0.1

meta _TXHE (_TXHE1 && _TXHE2)
score _TXHE 10
0
 
ai_ja_naiCommented:
Have you got Razor (and its conf file)?
0
 
NetaffairsAuthor Commented:
Yes here it is:
debuglevel             = 3
identity               = identity
ignorelist             = 0
listfile_catalogue     = servers.catalogue.lst
listfile_discovery     = servers.discovery.lst
listfile_nomination    = servers.nomination.lst
logfile                = razor-agent.log
logic_method           = 4
min_cf                 = ac
razordiscovery         = discovery.spamnet.com
rediscovery_wait       = 172800
report_headers         = 1
turn_off_discovery     = 0
use_engines            = 4,8
whitelist              = razor-whitelist
0
 
ai_ja_naiCommented:
I can't see in any of those files where the spam is quarantined once it's recognized
0
 
ai_ja_naiCommented:
Happy to hear it!
Mark your last comment as solution
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.