[Postfixbuch-users] amavis/spamassassin langsam?

Erhard Gruber e.gruber at pi-linz.ac.at
Do Nov 23 10:48:36 CET 2006


Stefan G. Weichinger wrote:
> Sandy Drobic wrote:
> 
> 
>>>- Die Checkzeiten von amavis erreichen manchmal Werte von 10 - 13 sec, 
>>>wobei der Löwenanteil fast immer auf Spamassassin entfällt:
> 
> 
>>>Ich weiß leider nicht, wie man SA dazu kriegen kann mitzuloggen, wo er 
>>>soviel Zeit braucht. Meine Vermutung sind aber die div. Online-Checks 
>>>(Razor2, DCC, RBL). Gibts da eine Möglichkeit?
> 
> 
> Wie schon erwähnt, loglevel von amavisd hochdrehen.
> 
> Weiters ist schon recht sicher, daß seit SA 3.x die Bayes-DB
> irgendwelche Performance-Probleme hat. In der
> Maia-Mailguard-Mailingliste zB ist das schon ein bekanntes Thema, die
> SA-Jungs reagieren da aber nicht so drauf.
> 
> Besonders wenn die Bayes-DB in MySQL liegt, fällt das bald mal auf.
> Aber das dürfte bei Dir ja nicht der Fall sein.
> 

Bayes-DB liegt bei mir in /var/spool/amavis/.spamassassin, anscheinend 
verwendet SA das Perl-Modul DB_File.

> Es gibt da noch ein paar SA-spezifische Dinge, die man tun kann, dazu
> müsste man aber mehr über Dein Setup wissen (wo liegt die Bayes-DB etc.).
> 

hier meine SA-Config-Files:

; --------------

init.pre:

# This is the right place to customize your installation of SpamAssassin.
#
# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
# tweaked.
#
# This file contains plugin activation commands for plugins included
# in SpamAssassin 3.0.x releases.  It will not be installed if you
# already have a file in place called "init.pre".
#
###########################################################################

# RelayCountry - add metadata for Bayes learning, marking the countries
# a message was relayed through
#
# loadplugin Mail::SpamAssassin::Plugin::RelayCountry

# URIDNSBL - look up URLs found in the message against several DNS
# blocklists.
#
loadplugin Mail::SpamAssassin::Plugin::URIDNSBL

# Hashcash - perform hashcash verification.
#
loadplugin Mail::SpamAssassin::Plugin::Hashcash

# SPF - perform SPF verification.
#
loadplugin Mail::SpamAssassin::Plugin::SPF

; -------------------------
local.cf:

# SpamAssassin config file for version 3.x
# NOTE: NOT COMPATIBLE WITH VERSIONS 2.5 or 2.6
# See http://www.yrex.com/spam/spamconfig25.php for earlier versions
# Generated by http://www.yrex.com/spam/spamconfig.php (version 1.50)

# How many hits before a message is considered spam.
required_score           5.0

# Encapsulate spam in an attachment (0=no, 1=yes, 2=safe)
report_safe             1

# Enable the Bayes system
use_bayes               1

# Enable Bayes auto-learning
bayes_auto_learn              1

# Trusted Networks (no spam):
trusted_networks 10.18.190/24

# Enable or disable network checks
skip_rbl_checks         0
use_razor2              1
use_dcc                 1
use_pyzor               1

# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language.
# - english german
ok_languages            en de

# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales              en

	score DCC_CHECK 4.000
	score RAZOR2_CHECK 2.500
	score BAYES_99 4.300
	score BAYES_90 3.500
	score BAYES_80 3.000


#score	SUBJ_FREE_CAP	15


; -----------------

v310.pre:

# This is the right place to customize your installation of SpamAssassin.
#
# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
# tweaked.
#
# This file was installed during the installation of SpamAssassin 3.1.0,
# and contains plugin loading commands for the new plugins added in that
# release.  It will not be overwritten during future SpamAssassin installs,
# so you can modify it to enable some disabled-by-default plugins below,
# if you so wish.
#
###########################################################################

# DCC - perform DCC message checks.
#
# DCC is disabled here because it is not open source.  See the DCC
# license for more details.
# changed by EG:
loadplugin Mail::SpamAssassin::Plugin::DCC

# Pyzor - perform Pyzor message checks.
#
loadplugin Mail::SpamAssassin::Plugin::Pyzor

# Razor2 - perform Razor2 message checks.
#
# Razor2 is disabled here because it is not available for unlimited free
# use.  It is currently free for personal use, subject to capacity
# constraints.  See the Cloudmark SpamNet Service Policy for more details.
#
#
loadplugin Mail::SpamAssassin::Plugin::Razor2

# SpamCop - perform SpamCop message reporting
#
loadplugin Mail::SpamAssassin::Plugin::SpamCop

# AntiVirus - some simple anti-virus checks, this is not a replacement
# for an anti-virus filter like Clam AntiVirus
#
#loadplugin Mail::SpamAssassin::Plugin::AntiVirus

# AWL - do auto-whitelist checks
#
loadplugin Mail::SpamAssassin::Plugin::AWL

# AutoLearnThreshold - threshold-based discriminator for Bayes auto-learning
#
loadplugin Mail::SpamAssassin::Plugin::AutoLearnThreshold

# TextCat - language guesser
#
loadplugin Mail::SpamAssassin::Plugin::TextCat

# AccessDB - lookup from-addresses in access database
#
#loadplugin Mail::SpamAssassin::Plugin::AccessDB

# WhitelistSubject - Whitelist/Blacklist certain subject regular expressions
#
loadplugin Mail::SpamAssassin::Plugin::WhiteListSubject

###########################################################################
# experimental plugins

# DomainKeys - perform DomainKeys verification
#
# External modules required for use, see INSTALL for more information.
#
#loadplugin Mail::SpamAssassin::Plugin::DomainKeys

# MIMEHeader - apply regexp rules against MIME headers in the message
#
loadplugin Mail::SpamAssassin::Plugin::MIMEHeader

# ReplaceTags
#
loadplugin Mail::SpamAssassin::Plugin::ReplaceTags


# FuzzyOCR (EG)
#
loadplugin FuzzyOcr /etc/mail/spamassassin/FuzzyOcr.pm
loadplugin Mail::SpamAssassin::Timeout

; -----------------------------------



viele Grüße

Erhard Gruber


> 
>>PS: Support für Suse 9.1 ist seit einem Jahr abgelaufen.
> 
> 
> PS: Ich bin nur ca. eine Stunde von Linz entfernt ;-)
> 
> Stefan
> 
> 


-- 
; --------------------------------------------------------------------

D.I. Erhard Gruber                       phone: +43-732-7470/2210
Pädagogisches Institut Linz              email: eg at pi-linz.ac.at
Kaplanhofstr. 40                         www: http://www.pi-linz.ac.at
A-4020 LINZ
AUSTRIA



Mehr Informationen über die Mailingliste Postfixbuch-users