歡迎您光臨本站 註冊首頁

BSD 7.1下的postfix clamav和spamassassin不起作用!!!

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

BSD 7.1下的postfix clamav和spamassassin不起作用!!!

丟過來的無主題收 敏感字收  maillog無過濾紀錄:
Apr 12 19:57:39 bsd postfix/qmgr: AD1726D432: from=<cai_danfeng@sohu.com>, size=1902, nrcpt=1 (queue active)
Apr 12 19:57:39 bsd postfix/smtp: 9261E6D41A: to=<caidanfeng@wincs.vicp.net>, relay=localhost:10025, delay=0.12, delays=0.11/0/0/0.01, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as AD1726D432)
Apr 12 19:57:39 bsd postfix/qmgr: 9261E6D41A: removed
Apr 12 20:00:01 bsd postfix/bounce: 1637E6D432: sender non-delivery notification: 567676D443
Apr 12 20:00:01 bsd postfix/qmgr: 567676D443: from=<>, size=2661, nrcpt=1 (queue active)
Apr 12 20:00:01 bsd postfix/qmgr: 1637E6D432: removed
Apr 12 20:00:01 bsd postfix/pipe: 567676D443: to=<root@wincs.vicp.net>, relay=maildrop, delay=0.04, delays=0.01/0.02/0/0.02, dsn=5.1.1, status=bounced (user unknown. Command output: Invalid user specified. )
Apr 12 20:00:01 bsd postfix/qmgr: 567676D443: removed

郵件信頭:
Return-Path: <cai_danfeng@sohu.com>
Delivered-To: caidanfeng@wincs.vicp.net
Received: from bsd.wincs.vicp.net (localhost )
        by bsd.wincs.vicp.net (Postfix) with ESMTP id A96C86D432
        for <caidanfeng@wincs.vicp.net>; Sun, 12 Apr 2009 19:55:02 +0000 (UTC)
Received: from smtp.sohu.com (smtp.sohu.com )
        by bsd.wincs.vicp.net (Postfix) with ESMTP id 6D7506D41A
        for <caidanfeng@wincs.vicp.net>; Sun, 12 Apr 2009 19:55:02 +0000 (UTC)
Received: from caipc (unknown )
        by smtp.sohu.com (Postfix) with ESMTP id 884BE72D471
        for <caidanfeng@wincs.vicp.net>; Sun, 12 Apr 2009 19:54:57 +0800 (CST)
Message-ID: <5EB9AFABA4B0439ABA33E2FEE71F9FBE@caipc>
From: "caidanfeng" <cai_danfeng@sohu.com>
To: "caidanfeng" <caidanfeng@wincs.vicp.net>
Subject: sex
Date: Sun, 12 Apr 2009 19:57:56 +0800
MIME-Version: 1.0
Content-Type: multipart/alternative;
        boundary="----=_NextPart_000_006F_01C9BBA8.F8EBC2B0"
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Mailer: Microsoft Windows Live Mail 12.0.1606
X-MimeOLE: Produced By Microsoft MimeOLE V12.0.1606
X-EsetScannerBuild: 4747


服務都運行了:

bsd# ps -aux | grep "clam*"
vscan     780  0.0  0.2  4312  2076  ??  Is    6:54PM   0:00.24 /usr/local/bin/freshclam --daemon -p /var/run/cla
vscan    1350  0.0  7.4 81112 76228  ??  Is    7:30PM   0:00.00 /usr/local/sbin/clamd
bsd# ps -aux | grep "amavisd*"
vscan    1322  0.0  5.1 57964 52812  ??  Ss    7:30PM   0:01.05 amavisd (master) (perl5.8.8)
vscan    1323  0.0  5.1 58596 52812  ??  I     7:30PM   0:00.01 amavisd (virgin child) (perl5.8.8)
vscan    1324  0.0  5.1 58596 52812  ??  I     7:30PM   0:00.01 amavisd (virgin child) (perl5.8.8)
vscan    1325  0.0  5.1 58596 52812  ??  I     7:30PM   0:00.01 amavisd (virgin child) (perl5.8.8)
vscan    1326  0.0  5.1 58596 52812  ??  I     7:30PM   0:00.01 amavisd (virgin child) (perl5.8.8)
vscan    1327  0.0  5.1 58596 52812  ??  I     7:30PM   0:00.01 amavisd (virgin child) (perl5.8.8)
vscan    1328  0.0  5.1 58596 52812  ??  I     7:30PM   0:00.01 amavisd (virgin child) (perl5.8.8)
vscan    1329  0.0  5.1 58596 52812  ??  I     7:30PM   0:00.01 amavisd (virgin child) (perl5.8.8)
vscan    1330  0.0  5.1 58596 52812  ??  I     7:30PM   0:00.01 amavisd (virgin child) (perl5.8.8)
vscan    1331  0.0  5.1 58596 52812  ??  I     7:30PM   0:00.01 amavisd (virgin child) (perl5.8.8)
vscan    1332  0.0  5.1 58596 52812  ??  I     7:30PM   0:00.01 amavisd (virgin child) (perl5.8.8)
bsd# ps -aux | grep "spamd*"
root     1290  0.0  2.5 28628 26332  ??  Ss    7:28PM   0:01.38 /usr/local/bin/spamd -d (perl5.8.8)
root     1293  0.0  2.5 28628 26328  ??  I     7:28PM   0:00.00 spamd child (perl5.8.8)
root     1294  0.0  2.5 28628 26328  ??  I     7:28PM   0:00.00 spamd child (perl5.8.8)
root     1707  0.0  0.0   388   268  p0  R+    8:05PM   0:00.00 grep spamd*

postfix master.cf修改如下:
smtp-amavis  unix    -    -    n    -    4    smtp
        -o smtp_data_done_timeout=1200
        -o smtp_send_xforward_command=yes
        -o disable_dns_lookups=yes
127.0.0.1:10025 inet    n    -    n    -    -    smtpd
        -o content_filter=
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o smtpd_restriction_classes=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks=127.0.0.0/8
        -o strict_rfc821_envelopes=yes
        -o smtpd_error_sleep_time=0
        -o smtpd_soft_error_limit=1001
        -o smtpd_hard_error_limit=1000
        -o receive_override_options=

main.cf也添加了content_filter = smtp-amavis::10025

amvisd配置修改如下:
$max_servers = 10;
$sa_spam_subject_tag = ' ';
$mydomain = 'mail.ppabc.cn';
$myhostname = 'mail.ppabc.cn';
@local_domains_maps = qw(.);
$sa_tag_level_deflt  = undef;
$sa_tag2_level_deflt = 5.0;
$sa_kill_level_deflt = 5.0;
$final_virus_destiny      = D_DISCARD;
$final_banned_destiny     = D_DISCARD;
$final_spam_destiny       = D_DISCARD;
$virus_admin               = "postmaster\@$mydomain";
$mailfrom_notify_admin     = "postmaster\@$mydomain";
$mailfrom_notify_recip     = "postmaster\@$mydomain";
$mailfrom_notify_spamadmin = "postmaster\@$mydomain";
@whitelist_sender_maps = read_hash("$MYHOME/white.lst");
@blacklist_sender_maps = read_hash("$MYHOME/black.lst");
$spam_quarantine_to = "spam\@$mydomain";
$virus_quarantine_to = "virus\@$mydomain";
$banned_quarantine_to = "spam\@$mydomain";
$hdrfrom_notify_admin = "Content Filter ";
['ClamAV-clamd',
   \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd"],
   qr/\bOK$/, qr/\bFOUND$/,
   qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],

spamassassin的local.cf修改如下:
report_safe             1
use_bayes               0
auto_learn              0
bayes_auto_expire       1
skip_rbl_checks         1
use_razor2              0
use_dcc                 0
use_pyzor               0
dns_available           no
lock_method             flock
required_score 5.0


哪能不起作用的?????????
《解決方案》

自己頂一下 謝謝!!

謝謝!!!!!!!!!!11
《解決方案》

自己再頂一下 謝謝

謝謝

[火星人 ] BSD 7.1下的postfix clamav和spamassassin不起作用!!!已經有431次圍觀

http://coctec.com/docs/service/show-post-23185.html