Hat jemand eine Idee, weshalb Spamassassin sich nicht für die Blacklist aus Confixx interessiert? Für den Müll habe ich den Postfächern extra ein Spam-Verzeichnis angelegt. In diesem landet zwar auch Müll, teilweise werden aber Mails in die INBOX verfrachtet, die dort nach der Blacklist nix zusuchen haben.
Das steht in den Konfigurationsdateien:
1. /etc/default/spamassassin
2. /etc/spamassassin/local.cf
3. /etc/procmailrc
Das steht in den Konfigurationsdateien:
1. /etc/default/spamassassin
Code:
# /etc/default/spamassassin
# Duncan Findlay
# WARNING: please read README.spamd before using.
# There may be security risks.
# Change to one to enable spamd
ENABLED=1
# Options
# See man spamd for possible options. The -d option is automatically added.
# SpamAssassin uses a preforking model, so be careful! You need to
# make sure --max-children is not set to anything higher than 5,
# unless you know what you're doing.
OPTIONS="-u spamassassin --create-prefs --sql-config --nouser-config --local --daemonize --max-children 5 --helper-home-dir"
# Pid file
# Where should spamd write its PID to file? If you use the -u or
# --username option above, this needs to be writable by that user.
# Otherwise, the init script will not be able to shut spamd down.
PIDFILE="/var/run/spamd.pid"
# Set nice level of spamd
#NICE="--nicelevel 15"
# Cronjob
# Set to anything but 0 to enable the cron job to automatically update
# spamassassin's rules on a nightly basis
CRON=0
2. /etc/spamassassin/local.cf
Code:
################### CONFIXX SPAMASSASSIN CONFIG FILE #####################
# created at Thu Sep 11 23:12:20 2008
#
# !!! 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
use_bayes_rules 1
bayes_auto_learn 1
bayes_file_mode 777
auto_whitelist_file_mode 777
bayes_auto_expire 0
bayes_ignore_header X-Bogosity
bayes_ignore_header X-Spam-Flag
bayes_ignore_header X-Spam-Status
bayes_ignore_header Return-Path
bayes_ignore_header Received
bayes_ignore_header X-Spam-Level
bayes_ignore_header X-purgate
bayes_ignore_header X-purgate-ID
bayes_ignore_header X-purgate-Ad
bayes_ignore_header X-GMX-Antispam
bayes_ignore_header To
bayes_ignore_header X-WEBDE-FORWARD
bayes_ignore_header Resent-Date
bayes_ignore_header Resent-From
bayes_ignore_header Resent-Message-ID
bayes_ignore_header Resent-Subject
bayes_ignore_header Resent-To
bayes_path /home/spamassassin/.spamassassin/bayes
auto_whitelist_path /home/spamassassin/.spamassassin/auto-whitelist
# Enable or disable network checks
skip_rbl_checks 0
use_razor2 1
razor_config /etc/razor/razor-agent.conf
use_dcc 1
dcc_path /usr/local/bin/dccproc
add_header all DCC _DCCB_: _DCCR_
use_pyzor 1
# pyzor_add_header 1
pyzor_path /usr/bin/pyzor
add_header all DCC _DCCB_: _DCCR_
# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language.
# 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 all
dns_available yes
rbl_timeout 4
score DCC_CHECK 4.000
score SPF_FAIL 3.000
score SPF_HELO_FAIL 3.000
score RAZOR2_CHECK 2.500
score BAYES_80 3.500
# END OF CUSTOM INCLUSION
# START CONFIXX GENERATED SECTION
###
allow_user_rules 1
user_scores_dsn DBI:mysql:confixx:localhost;mysql_socket=/var/run/mysqld/mysqld.sock
user_scores_sql_username confixx
user_scores_sql_password RichtigesPasswort
user_scores_sql_custom_query SELECT preference, value FROM spampref WHERE (username = _USERNAME_ OR username = '@GLOBAL') AND server_id='91e590676c3bf6b6ca4016021bd4c182' ORDER BY username ASC
# END OF CONFIXX GENERATED SECTION
3. /etc/procmailrc
Code:
# Grundeinstellungen procmail
#============================
SHELL=/bin/sh
DEFAULT=$HOME/Maildir/
LOGFILE=/var/log/procmail.log
VERBOSE=no
# 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: /home/spamassassin/.spamassassin/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: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
$HOME/Maildir/.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
$HOME/Maildir/.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 H
* ! ^From[ ]
* ^rom[ ]
{
LOG="*** Dropped F off From_ header! Fixing up. "
:0 fhw
| sed -e 's/^rom /From /'
}
#:0e
#{
#EXITCODE=$?
#}
EOF