Hi,
ich habe da mal wieder ein Problem.
Ich habe einen neuen Server mit
openSUSE 10.2 (X86-64)
Confixx 3.2.1
Perl 5.8.8
Postfix 2.3.2
Procmail 3.22
Spamassassin 3.1.6
MySQL 5.0.26
Leider scheint mein Anbieter nicht übermäßig viel Ahnung von Confixx zu haben und hat mir zwar Confixx installiert, jedoch viele Serverdienste nicht mit- oder unkonfiguriert installiert. Teilweise nicht mal die Zusammenarbeit mit Confixx konfiguriert.
Heute beschäftige ich mich mit dem Spamfilter. Leider bekomme ich es nicht auf die Reihe, das Spamassassin die richtigen Spamassassin-Einstellungen aus der Confixx-Datenbank (Tabelle: spampref) läd.
Spamassassin markiert Spammails immer nur mit den Standardeinstellungen aus der local.cf
Spamassassin - /etc/mail/spamassassin/local.cf
Spamassassin ist über Procmail eingebunden.
Procmail - /etc/procmailrc:
Ich weiß mir leider keinen Rat. Zumal in den Logdateien keinerlei Fehler oder ähnliches auftreten. In den Logs ist auch keine Information enthalten, das Einstellungen aus der Datenbank geladen werden.
Kann mir jemand da helfen?
MfG taz
ich habe da mal wieder ein Problem.
Ich habe einen neuen Server mit
openSUSE 10.2 (X86-64)
Confixx 3.2.1
Perl 5.8.8
Postfix 2.3.2
Procmail 3.22
Spamassassin 3.1.6
MySQL 5.0.26
Leider scheint mein Anbieter nicht übermäßig viel Ahnung von Confixx zu haben und hat mir zwar Confixx installiert, jedoch viele Serverdienste nicht mit- oder unkonfiguriert installiert. Teilweise nicht mal die Zusammenarbeit mit Confixx konfiguriert.
Heute beschäftige ich mich mit dem Spamfilter. Leider bekomme ich es nicht auf die Reihe, das Spamassassin die richtigen Spamassassin-Einstellungen aus der Confixx-Datenbank (Tabelle: spampref) läd.
Spamassassin markiert Spammails immer nur mit den Standardeinstellungen aus der local.cf
Spamassassin - /etc/mail/spamassassin/local.cf
Code:
################### CONFIXX SPAMASSASSIN CONFIG FILE #####################
# created at Tue Apr 17 15:00:53 2007
#
# !!! Do not make any changes in this file !!!
# All your changes will be lost after the file is auto updated next time.
#
# If you want to add here any custom directive, you should include it
# to '/root/confixx/safe/spamassassin.inc' file. Its content will be automatically
# included during the file is autoupdated.
##########################################################################
# START CUSTOM INCLUSION (see /root/confixx/safe/spamassassin.inc)
# SpamAssassin config file for version 3.x
# How many hits before a message is considered spam.
required_score 5.0
# Whether to change the subject of suspected spam
rewrite_header subject ****SPAM****
# Encapsulate spam in an attachment
report_safe 1
# Add report into headers
add_header spam Report _REPORT_
# 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
# END OF CUSTOM INCLUSION
# START CONFIXX GENERATED SECTION
###
allow_user_rules 1
user_scores_dsn DBI:mysql:confixx:localhost;mysql_socket=/var/lib/mysql/mysql.sock
user_scores_sql_username confixx
user_scores_sql_password xxx
user_scores_sql_custom_query SELECT preference, value FROM spampref WHERE (username = _USERNAME_ OR username = '@GLOBAL') AND server_id='xxx' ORDER BY username ASC
# END OF CONFIXX GENERATED SECTION
Spamassassin ist über Procmail eingebunden.
Procmail - /etc/procmailrc:
Code:
# SpamAssassin sample procmailrc
# ==============================
# The following line is only used if you use a system-wide /etc/procmailrc.
# See procmailrc(5) for infos on what it exactly does, the short version:
# * It ensures that the correct user is passed to spamd if spamc is used
# * The folders the mail is filed to later on is owned by the user, not
# root.
DROPPRIVS=yes
# Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc'
# if you use the spamc/spamd combination)
#
# The condition line ensures that only messages smaller than 250 kB
# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
# isn't bigger than a few k and working with big messages can bring
# SpamAssassin to its knees.
#
# The lock file ensures that only 1 spamassassin invocation happens
# at 1 time, to keep the load down.
#
:0fw: spamassassin.lock
* < 256000
|/usr/bin/spamc -f
# Mails with a score of 15 or higher are almost certainly spam (with 0.05%
# false positives according to rules/STATISTICS.txt). Let's put them in a
# different mbox. (This one is optional.)
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
almost-certainly-spam
# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to "probably-spam".
:0:
* ^X-Spam-Status: Yes
probably-spam
# Work around procmail bug: any output on stderr will cause the "F" in "From"
# to be dropped. This will re-add it.
# NOTE: This is probably NOT needed in recent versions of procmail
:0
* ^^rom[ ]
{
LOG="*** Dropped F off From_ header! Fixing up. "
:0 fhw
| sed -e '1s/^/F/'
}
Ich weiß mir leider keinen Rat. Zumal in den Logdateien keinerlei Fehler oder ähnliches auftreten. In den Logs ist auch keine Information enthalten, das Einstellungen aus der Datenbank geladen werden.
Kann mir jemand da helfen?
MfG taz