amavis & spamassassin problem

Post Reply
Message
Author
mailer-daemon

amavis & spamassassin problem

#1 Post by mailer-daemon »

Hallo,

ich habe ein Problem mit amavisd-new und spamassassin. Und zwar werden bei als Spam erkannten Mails nicht das Subjekt verändert.
Binde ich spamd "alleine", also über ein shell skript anstelle über amavis in postfix ein klappt alles, nur wenn ich amavisd-new als wrapper nehme, bekomme ich kein Subject umgeschrieben. Es scheint so, als ob amavis die /etc/mail/spamassassin/local.cf ignoriert, nun ist mir aber nicht ganz klar, was ich in der amavis.conf vergessen haben könnte.
Den Schwellwert habe ich mit 2 testweise recht niedrig gesetzt, das mail.log zeigt auch "scan_hits=4" an, also müßte die Testmail mit "*SPAM* ..." im Subjekt ankommen. Tut sie aber nicht.
Wie gesagt, ohne amavis klappt alles, aber mit nicht. Alles was ich möchte, ist, das entprechende Mails einen Eintrag ins Subject bekommen. Nicht mehr. Meine amavisd.conf:


use strict;
$MYHOME = '/var/amavis'; # (default is '/var/amavis')
$mydomain = 'privat.net'; # (no useful default)
$daemon_user = 'amavis'; # (no default; customary: vscan or amavis)
$daemon_group = 'amavis'; # (no default; customary: vscan or amavis)
$TEMPBASE = "$MYHOME/tmp"; # prefer to keep home dir /var/amavis clean?
$pid_file = "$MYHOME/amavisd.pid"; # (default is "$MYHOME/amavisd.pid")
$lock_file = "$MYHOME/amavisd.lock"; # (default is "$MYHOME/amavisd.lock")
$ENV{TMPDIR} = $TEMPBASE; # wise, but usually not necessary
$forward_method = 'smtp:127.0.0.1:10025'; # where to forward checked mail
$notify_method = $forward_method; # where to submit notifications
$max_servers = 2; # number of pre-forked children (default 2)
$max_requests = 8; # retire a child after that many accepts (default 10)
$child_timeout=5*60; # abort child if it does not complete each task in n sec
@bypass_virus_checks_acl = qw( . ); # uncomment to DISABLE anti-virus code
@local_domains_acl = ( ".$mydomain", '.pob.de', '.lhsysnet.de' ); # $mydomain and its subdomains
$inet_socket_port = 10024; # accept SMTP on this local TCP port
@inet_acl = qw( 127.0.0.1 ); # allow SMTP access only from localhost IP
$DO_SYSLOG = 1; # (defaults to false)
$SYSLOG_LEVEL = 'mail.info';
$LOGFILE = "$MYHOME/amavis.log"; # (defaults to empty, no log)
$log_level = 2; # (defaults to 0)
$hdr_encoding = 'iso-8859-15'; # (default: 'iso-8859-1')
$bdy_encoding = 'iso-8859-15'; # (default: 'iso-8859-1')
$final_virus_destiny = D_PASS; # (defaults to D_BOUNCE)
$final_banned_destiny = D_PASS; # (defaults to D_BOUNCE)
$final_spam_destiny = D_PASS; # (defaults to D_REJECT)
$final_bad_header_destiny = D_PASS; # (defaults to D_PASS), D_BOUNCE suggested
$virus_admin = "virusalert\@$mydomain";
$spam_admin = undef;
$mailfrom_notify_admin = "virusalert\@$mydomain";
$mailfrom_notify_recip = "virusalert\@$mydomain";
$mailfrom_notify_spamadmin = "spamwaechter\@$mydomain";
$hdrfrom_notify_sender = "amavisd-new <postmaster\@$mydomain>";
$hdrfrom_notify_admin = $mailfrom_notify_admin;
$mailfrom_to_quarantine = undef; # original sender if undef, or set explicitly
$QUARANTINEDIR = '/var/amavis/quarantine';
$virus_quarantine_to = 'virus-quarantine'; # traditional local quarantine
$spam_quarantine_to = undef;
$remove_existing_spam_headers = 0; # remove existing spam headers if
$sql_select_white_black_list = undef; # undef disables SQL white/blacklisting
$recipient_delimiter = undef; # (default is '+')
$localpart_is_case_sensitive = 0; # (default is false)
$MAXLEVELS = 4; # (default is undef, no limit)
$MAXFILES = 800; # (default is undef, no limit)
$MIN_EXPANSION_QUOTA = 100*1024; # bytes (default undef, not enforced)
$MAX_EXPANSION_QUOTA = 300*1024*1024; # bytes (default undef, not enforced)
$MIN_EXPANSION_FACTOR = 5; # times original mail size (must be specified)
$MAX_EXPANSION_FACTOR = 500; # times original mail size (must be specified)
$path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin';
$file = 'file'; # file(1) utility; use 3.41 or later to avoid vulnerability
$gzip = 'gzip';
$bzip2 = 'bzip2';
$lzop = 'lzop';
$uncompress = ['uncompress', 'gzip -d', 'zcat'];
$unfreeze = ['unfreeze', 'freeze -d', 'melt', 'fcat'];
$arc = ['nomarch', 'arc'];
$unarj = ['arj', 'unarj']; # both can extract, same options
$unrar = ['rar', 'unrar']; # both can extract, same options
$zoo = 'zoo';
$lha = 'lha';
$cpio = 'cpio'; # comment out if cpio does not support GNU options
$sa_local_tests_only = 1; # (default: false)
$sa_mail_body_size_limit = 150*1024; # don't waste time on SA if mail is larger
$sa_tag_level_deflt = 2.0; # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 3.3; # add 'spam detected' headers at that level
$sa_kill_level_deflt = 64; # triggers spam evasive actions
$sa_spam_modifies_subj = 1;
$sa_spam_subject_tag = '*SPAM* ';
1; # insure a defined return

chlor

Re: amavis & spamassassin problem

#2 Post by chlor »

du willst das aber unbedingt über amavis regeln, und nicht vielleicht über die .procmailrc?
mit der 2. version könnte ich die wohl weiterhelfen. weil du
> Wie gesagt, ohne amavis klappt alles, aber mit nicht.
geschrieben hast weiß ich aber nicht ob du das schon probiert hast.

mailer-daemon

Re: amavis & spamassassin problem

#3 Post by mailer-daemon »

procmail geht nicht, weil das ein mail relay ist und keine lokale Zustellung macht. Aber ich habe den Fehler gefunden, der "mydomain" eintrag war falsch, denn für privat.net werden keine mails weitergeleitet.
Habe den Zusammenhang noch nicht ganz raus, aber geht.

Danke für Deine Hilfe

Post Reply