• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Spamassasim error

Status
Für weitere Antworten geschlossen.
Hallo,
ich bräuchte Eure Hilfe. Immer wenn ich den Befehl sa-learn --spam -L pfad/zu/spammails ausführe, kommt folgender Fehler:

Argument "RBL" isn't numeric in addition (+) at
/usr/lib/perl5/vendor_perl/5.8.6/Mail/SpamAssassin/Conf.pm line 244.
Argument "RBL" isn't numeric in addition (+) at
/usr/lib/perl5/vendor_perl/5.8.6/Mail/SpamAssassin/Conf.pm line 244.
Argument "RBL" isn't numeric in addition (+) at
/usr/lib/perl5/vendor_perl/5.8.6/Mail/SpamAssassin/Conf.pm line 244.
Argument "RBL" isn't numeric in addition (+) at
/usr/lib/perl5/vendor_perl/5.8.6/Mail/SpamAssassin/Conf.pm line 244.
Learned from 0 message(s) (2 message(s) examined).

kann mir jemand was dazu sagen?

Im Header steht als Virusscanner: "X-Virus-Scanned: amavisd-new..."

ich habe noch gemerkt, dass die einstellungen in local.cf nicht ganz funktionieren(obwohl richtig sind). Z.b. whitelist_from geht, aber rewrite_header_ subject nicht. Es wird irgendwie vom amavis überschrieben. Vielleicht hat es einen Zusammenhang?
Die Version 3.0.2

Danke

Margarita
 
welche Module hast du in der Datei /etc/mail/spamasssassin/v3xx.cf geladen? Bei der Version 3.x musst du für einige Funktionen Module laden, poste mal deine local.cf (OHNE Kommentare), das hatte ich dir im chat auch gesagt, das ich ohne die Datei wenig sagen kann.
 
Hallo stka,

leider kann ich die von dir angegebene Datei nicht finden. Im Ordner ist nur local.cf mit folgendem Inhalt:
# 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 3.0

# Change the subject of suspected spam
rewrite_header subject ****SPAM(_SCORE_)****
add_header spam Report _REPORT_

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

# Enable the Bayes system
use_bayes 1

# Enable Bayes auto-learning
bayes_auto_learn 1

# 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.
ok_languages all

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


vg
Margarita
 
du brauchst die Datei /etc/mail/spmassassin/v312.pre hier meine die sollte ei dir auch gehen, in der Datei werden die benötigten Module geladen:
Code:
# 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.2,
# 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.
#
###########################################################################

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

# DKIM - perform DKIM verification
#
# Mail::DKIM module required for use, see INSTALL for more information.
#
#loadplugin Mail::SpamAssassin::Plugin::DKIM

loadplugin     Mail::SpamAssassin::Plugin::DCC
loadplugin     Mail::SpamAssassin::Plugin::Pyzor
loadplugin     Mail::SpamAssassin::Plugin::Razor2
loadplugin     Mail::SpamAssassin::Plugin::TextCat

Dann den spamd neustarten
 
danke stka für deine Mühe. leider geht es nicht. Ich habe bei mir in etc/mail/spamas.... die datei init.pre gefunden, mit dem folgenden Inhalt:

# 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 will be loaded before *all other* configuration files, including
# the system configuration. As such, it's a good place to set things that
# will affect how those files are parsed, like which plugins are loaded
# etc.
#
###########################################################################

# 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




die datei von dir habe ich ebenfalls erstellt und in diesen Ordner kopiert, hat aber keine Wirkung. Wenn ich spamd stoppe, werden die Mails trotzdem auf Spam geprüft! Das verstehe ich nicht ganz... Ich habe mir eine testmail geschickt nachdem spamd gestoppt wurde, und diese email hat folgendes im Header stehen:

X-Virus-Scanned: amavisd-new at meine-domäne
X-Spam-Status: No, hits=-98.986 tagged_above=-9987 required=1.8 tests=AWL,
FORGED_RCVD_HELO, FROM_ENDS_IN_NUMS, HTML_90_100, HTML_MESSAGE,
MIME_HTML_MOSTLY, USER_IN_WHITELIST


vielleicht ist es der Schlussel warum das Ganze nicht funktioniert?

Margarita
 
Status
Für weitere Antworten geschlossen.
Oben