Amavisd und Spamassassin

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
lorddarkmage
Posts: 36
Joined: 2006-10-26 05:57

Amavisd und Spamassassin

Post by lorddarkmage » 2006-10-26 06:03

Hallo Leute,

vor einiger Zeit habe ich mir einen Mailserver mit Virusscanner und Spamfilter installiert. Um die Software zu nennen... Sendmail, Amavisd und Spamassassin. Soweit scheint alles zu laufen bis auf die Tatsache, dass Spam in der Betreffzeile nicht als Spam markiert wird. Nach langem Stöbern in Google und Foren stellte sich heraus, dass wohl Amavis das Problem darstellt. Er lässt Spamassassin nicht den Header ändern und darum ist die Betreffzeile nciht geändert.

Hier meine amavisd.conf

Code: Select all

# NAI AntiVirus (uvscan)
$uvscan = "";

# H+BEDV AntiVir
$antivir = "";

# Sophos Anti Virus (sweep)
$sophos = "";
$sophos_ide_path = "";

# KasperskyLab AntiViral Toolkit Pro (AVP)
$avp = "";
$AVPDIR = dirname($avp);

# KasperskyLab AVPDaemon / AvpDaemonClient
#
# use AvpDaemon and AvpDaemonClient
# Note: AvpDaemon must be started before amavisd!
# AvpDaemon should be started at boot time as AvpDaemon -* /var/amavis
$avpdc = "";

# F-Secure Antivirus
$fsav = "";

# Trend Micro FileScanner
$vscan = "";

# CyberSoft VFind
$vfind = "";

# CAI InoculateIT
$inocucmd = "";

# GeCAD RAV Antivirus 8
$rav = "";

# ESET Software NOD32
$nod32 = "";

# ESET Software NOD32 (Client/Server Version)
$nod32cli = "";

# Command AntiVirus for Linux
$csav = "";

# VirusBuster (Daemon + Client)
$vbengcl = "";

# Symantec CarrierScan via Symantec Command Line Scannner
$cscmdline = "";
$scs_host = ""; # host/IP CarrierScan runs on
$scs_port = ""; # port CarrierScan listens on

# Sophie (Sophos SAVI)
$sophie_sockname = "";

# Trophie (Trend API)
$trophie_sockname = "";

# FRISK F-Prot
$fprot = "";

# FRISK F-Prot Daemon
$fprotd = "";

# Panda Antivirus for Linux
$panda = "";

# CentralCommand Vexira
$vexira = "";

# OpenAntiVirus ScannerDaemon
$oav = "";

# DrWeb Antivirus for Linux/FreeBSD/Solaris
$drweb = "";

# MkS_Vir for Linux (beta)
$mks = "";

# Norman Virus Control
$norman = "";

# Clam Antivirus
$clamscan = "/usr/local/bin/clamscan";

$clamd = "";

# Ikarus AntiVirus
$ikarus = "";

#
# Part II - Logging
#

# yes - syslog, no - file logging
$DO_SYSLOG = "yes";

# Directory to put log entries (if not using syslog)
$LOGDIR = "/var/lib/amavis";
$LOGFILE = "amavis.log";

# 0: default - startup/exit/failure messages
# 1: args passed from client
# 2: virus scanner output
# 3: server client
# 4: decompose parts
$log_level = 2;

#
# Part III - Virus stuff
#

# Notify admin/sender/recipient?
$warnadmin = "no";
$warnsender = "no";
$warnrecip = "yes";

# Notify off-site recipients?
$warn_offsite = "no";

# requeue if all virus scanners failed
$requeue_on_scanner_errors = "yes";

# List of local domains
# e.g. @local_domains = qw( dom.ain other.dom.ain );
@local_domains = qw();

# Location to put infected mail - empty for not quarantining
$QUARANTINEDIR = "/var/spool/amavis/virusmail";

# Add X-Virus-Scanned line to mail?
$X_HEADER_TAG = "X-Virus-Scanned";
# Leave empty to add no header
$X_HEADER_LINE = "by amavisd 0.1";

################################################## ##

#
# Part IV - External programs
# (perl modules do not exist for these yet)
#

$arc = "/usr/bin/arc";
$bunzip = "/usr/bin/bunzip2";
$file = "/usr/bin/file";
$lha = "/usr/bin/lha";
$unarj = "/usr/bin/unarj";
$uncompress = "/usr/bin/uncompress";
$unrar = "/usr/bin/unrar";
$zoo = "/usr/bin/zoo";

#
# Part V - MTA specific stuff
#

# Qmail-specific
$QMAILDIR = "/bin";

# postfix-specific
$smtp_port = "NOT_SET";
$localhost_name = "localhost";
$localhost_ip = "127.0.0.1";

# sendmail-specific
# Do we use amavis on a mail relay/gateway type setup?
$enable_relay = "yes";

#
$sendmail_cf_orig = "";

# What sendmail wrapper to use
$sendmail_wrapper = "/usr/lib/sendmail";
$sendmail_wrapper_args = "-i -t";

#
# Part VI - Misc
#

# The next three are resource limitations - exit with EX_TEMPFAIL if exceeded
# Maximum overall recursion level for extraction/decoding
# default: 20 - DO NOT SET THIS TO 0
$MAXLEVELS = 20;

# Maximum nesting level for compressing archive formats
# default: 3. If set to 0, feature is disabled
$MAX_ARCHIVE_NESTING = 3;

# Maximum number of extracted files
# default: 500. If set to 0, feature is disabled
$MAXFILES = 500;

# Magic number to detect DoS attacks
# default: 14. if set to 0, feature is disabled (change with care!)
$threshold = 14;

# Who reports are sent from
$mailfrom = 'amavis';

# Where to send virus reports
$mailto = 'amavis';

# Display AMaViS credits to users
$credits = "yes";


# Added by ....
$sa_spam_subject_tag = '***SPAM***';
$sa_spam_modifies_subj = 1;
$sa_mail_body_size_limit = 64*1024;
$sa_local_tests_only = 1;
$sa_tag_level_deflt = 3.0;
$sa_tag2_level_deflt = 5.0;
$sa_kill_level_deflt = $sa_tag2_level_deflt;
@local_domains_acl = { ".$mydomain", "localhost" };
@local_domain_maps = { ".$mydomain", "localhost" };
$mydomain = "meine-domain.de";
$final_spam_destiny = D_PASS;
Vielleicht seht ihr das Problem, denn ich bin da ziemlich am Ende.

Gruß und Dank
LordDarkmage

felixs
Posts: 119
Joined: 2003-06-01 20:57

Re: Amavisd und Spamassassin

Post by felixs » 2006-10-26 20:39

Mir kommt deine amavisd.conf sehr komisch vor. Welche Version hast du? Nicht ernsthaft »$X_HEADER_LINE = "by amavisd 0.1";«, oder? Was meinst du mit "vor einiger Zeit"?

Ich hoffe auch, du verwendest amavisd-new und nicht amavisd?

Zum anderen wäre interessant, ob du amavisd-milter einsetzt oder amavisd-new direkt.

fs