[Postfixbuch-users] X-Spam-Status fehlt (sa_tag_level_deflt = -100.0)

Al Bogner postfix at ml061.pinguin.uni.cc
Do Jan 26 15:57:03 CET 2006


Was muss ich tun, um einen Eintrag dieser Art im Mail-Header zu erhalten:
X-Spam-Status: No, hits=-5.895 tagged_above=-20 required=5 tests=ALL_TRUSTED,
(stammt aus einem anderen System). Unten sieht man, dass die Schwelle auf -100 
gesetzt wurde. Aus Spamgründen wurde die tatsächliche Domain durch FQDN 
ersetzt.


From root at client4.local.FQDN  Thu Jan 26 15:48:51 2006
Return-Path: root at client4.local.FQDN
X-Original-To: ab at client4.local.FQDN
Delivered-To: ab at client4.local.FQDN
Received: from localhost (localhost.localdomain [127.0.0.1])
        by client4.local.FQDN (Postfix) with ESMTP id 621E57359
        for <ab at client4.local.FQDN>; Thu, 26 Jan 2006 15:48:51 +0100 (CET)
Received: from client4.local.FQDN ([127.0.0.1])
        by localhost (client4.local.FQDN [127.0.0.1]) (amavisd-new, port 
10024)
        with ESMTP id 03668-01 for <ab at client4.local.FQDN>;
        Thu, 26 Jan 2006 15:48:49 +0100 (CET)
Received: by client4.local.FQDN (Postfix, from userid 0)
        id 30C397357; Thu, 26 Jan 2006 15:48:49 +0100 (CET)
Date: Thu, 26 Jan 2006 15:48:49 +0100
To: ab at client4.local.FQDN
Subject: Test
User-Agent: nail 11.25 7/29/05
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20060126144849.30C397357 at client4.local.FQDN>
From: root <root at client4.local.FQDN>
X-Virus-Scanned: Debian amavisd-new at client4.local.FQDN

Jan 26 15:48:49 client4 postfix/pickup[4727]: 30C397357: uid=0 from=<root>
Jan 26 15:48:49 client4 postfix/cleanup[6041]: 30C397357: 
message-id=<20060126144849.30C397357 at client4.local.FQDN>
Jan 26 15:48:49 client4 postfix/qmgr[4728]: 30C397357: 
from=<root at client4.local.FQDN>, size=451, nrcpt=1 (queue active)
Jan 26 15:48:51 client4 postfix/smtpd[6050]: connect from 
localhost.localdomain[127.0.0.1]
Jan 26 15:48:51 client4 postfix/smtpd[6050]: 621E57359: 
client=localhost.localdomain[127.0.0.1]
Jan 26 15:48:51 client4 postfix/cleanup[6041]: 621E57359: 
message-id=<20060126144849.30C397357 at client4.local.FQDN>
Jan 26 15:48:51 client4 postfix/qmgr[4728]: 621E57359: 
from=<root at client4.local.FQDN>, size=952, nrcpt=1 (queue active)
Jan 26 15:48:51 client4 postfix/smtpd[6050]: disconnect from 
localhost.localdomain[127.0.0.1]
Jan 26 15:48:51 client4 amavis[3668]: (03668-01) Passed CLEAN, 
<root at client4.local.FQDN> -> <ab at client4.local.FQDN>, Message-ID: 
<20060126144849.30C397357 at client4.local.FQDN>, mail_id: SmG+YV9el+WD, Hits: 
0.015, 2238 ms
Jan 26 15:48:51 client4 postfix/smtp[6043]: 30C397357: 
to=<ab at client4.local.FQDN>, orig_to=<ab>, relay=127.0.0.1[127.0.0.1], 
delay=2, status=sent (250 2.6.0 Ok, id=03668-01, from MTA([127.0.0.1]:10025): 
250 Ok: queued as 621E57359)
Jan 26 15:48:51 client4 postfix/qmgr[4728]: 30C397357: removed
Jan 26 15:48:51 client4 postfix/local[6052]: 621E57359: 
to=<ab at client4.local.FQDN>, relay=local, delay=0, status=sent (delivered to 
command: procmail -a "$EXTENSION")
Jan 26 15:48:51 client4 postfix/qmgr[4728]: 621E57359: removed


/etc/amavis/conf.d/50-user
use strict;
$mydomain = '';
$sa_tag_level_deflt  = -100.0;  # add spam info headers if at, or above that 
level
1;  # insure a defined return


grep -r tag_level_deflt /etc/amavis/conf.d/
/etc/amavis/conf.d/20-debian_defaults:#$sa_tag_level_deflt  = 2.0;  # add spam 
info headers if at, or above that level
/etc/amavis/conf.d/20-debian_defaults:$sa_tag_level_deflt  = -100.0;
/etc/amavis/conf.d/50-user:$sa_tag_level_deflt  = -100.0;  # add spam info 
headers if at, or above that level

Es wurde als an beiden möglichen Stellen -100 als Schwelle für den Eintrag 
gewählt.

/etc/default/spamassassin
ENABLED=1
OPTIONS="--create-prefs --max-children 5 --helper-home-dir"
PIDFILE="/var/run/spamd.pid"


aptitude search postfix | cut -c-30
p   bld-postfix
p   gforge-mta-postfix
i   postfix
p   postfix-dev
p   postfix-doc
p   postfix-gld
p   postfix-ldap
p   postfix-mysql
p   postfix-pcre
p   postfix-pgsql
p   postfix-policyd
p   postfix-smtpguard
v   postfix-tls
i   webmin-postfix


aptitude search amavis | cut -c-30
v   amavis
p   amavis-ng
p   amavis-ng-milter-helper
p   amavis-stats
i   amavisd-new
p   amavisd-new-milter


aptitude search spam | cut -c-30
v   libmail-spamassassin-perl
p   spamass-milter
i A spamassassin
p   spambayes
i   spamc
p   spamoracle
p   spamoracle-byte
p   spampd
p   spamprobe
p   sylpheed-claws-gtk2-spamas
p   sylpheed-claws-spamassassi
p   usermin-spamassassin
i   webmin-spamassassin


apt-cache policy postfix
postfix:
  Installiert:2.2.4-1.0.1
  Mögliche Pakete:2.2.4-1.0.1
  Versions-Tabelle:
     2.2.8-7 0
        500 ftp://ftp.at.debian.org sid/main Packages
        500 ftp://ftp.freenet.de sid/main Packages
 *** 2.2.4-1.0.1 0
        900 ftp://ftp.at.debian.org etch/main Packages
        900 ftp://ftp.freenet.de etch/main Packages
        100 /var/lib/dpkg/status


apt-cache policy amavisd-new
amavisd-new:
  Installiert:1:2.3.3-2
  Mögliche Pakete:1:2.3.3-2
  Versions-Tabelle:
     1:2.3.3-4 0
        500 ftp://ftp.at.debian.org sid/main Packages
        500 ftp://ftp.freenet.de sid/main Packages
 *** 1:2.3.3-2 0
        900 ftp://ftp.at.debian.org etch/main Packages
        900 ftp://ftp.freenet.de etch/main Packages
        100 /var/lib/dpkg/status


apt-cache policy spamassassin
spamassassin:
  Installiert:3.1.0a-2
  Mögliche Pakete:3.1.0a-2
  Versions-Tabelle:
 *** 3.1.0a-2 0
        900 ftp://ftp.at.debian.org etch/main Packages
        500 ftp://ftp.at.debian.org sid/main Packages
        900 ftp://ftp.freenet.de etch/main Packages
        500 ftp://ftp.freenet.de sid/main Packages
        100 /var/lib/dpkg/status



Das stammt aus /var/log/mail.log nach dem Hochfahren:

AM.PDP prot  code  NOT loaded
 SMTP-in prot code  loaded
 ANTI-VIRUS code    loaded
 ANTI-SPAM  code    loaded
 Unpackers  code    loaded
 Found $file            at /usr/bin/file
 No $dspam,             not using it
 Internal decoder for .mail
 Internal decoder for .asc
 Internal decoder for .uue
 Internal decoder for .hqx
 Internal decoder for .ync
 No decoder for       .F    tried
 Found decoder for    .Z    at /bin/uncompress
 Internal decoder for .gz
 Found decoder for    .bz2  at /usr/bin/bzip2 -d
 Found decoder for    .lzo  at /usr/bin/lzop -d
 Found decoder for    .rpm  at /usr/bin/rpm2cpio
 Found decoder for    .cpio at /usr/bin/pax
 Found decoder for    .tar  at /usr/bin/pax
 Found decoder for    .deb  at /usr/bin/ar
 Internal decoder for .zip
 Found decoder for    .rar  at /usr/bin/rar
 Found decoder for    .arj  at /usr/bin/arj
 Found decoder for    .arc  at /usr/bin/nomarch
 Found decoder for    .zoo  at /usr/bin/zoo
 Found decoder for    .lha  at /usr/bin/lha
 No decoder for       .doc  tried
 Found decoder for    .cab  at /usr/bin/cabextract
 No decoder for       .tnef
 Internal decoder for .tnef
 Found decoder for    .exe  at /usr/bin/rar; /usr/bin/lha; /usr/bin/arj
 Using internal av scanner code for (primary) ClamAV-clamd
 Found primary av scanner H+BEDV AntiVir or CentralCommand Vexira Antivirus 
at /usr/bin/antivir
 Found primary av scanner BitDefender at /usr/bin/bdc
 Using internal av scanner code for (primary) check-jpeg
 Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
 Found secondary av scanner FRISK F-Prot Antivirus at /usr/bin/f-prot
 Creating db in /var/lib/amavis/db/; BerkeleyDB 0.27, libdb 4.3




postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
content_filter = smtp:[127.0.0.1]:10024
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = client4.local.FQDN, localhost.local.FQDN, localhost
myhostname = client4.local.FQDN
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)


/etc/postfix/master.cf
smtp      inet  n       -       -       -       -       smtpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       -       300     1       qmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail 
($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender 
$recipient
scalemail-backend unix  -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store 
${nexthop} ${user} ${extension}
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
scache    unix  -       -       -       -       1       scache
discard   unix  -       -       -       -       -       discard
localhost:10025 inet    n       -       n       -       -       smtpd -o 
content_filter=




Al



Mehr Informationen über die Mailingliste Postfixbuch-users