HZPPZ 大哥 看看 现在DSPAM 不起作用了。
DSAM。CONF 如下:mail:/etc/dspam# grep -v "#" dspam.conf
Home /var/spool/dspam
StorageDriver /usr/lib/dspam/libmysql_drv.so
TrustedDeliveryAgent "/usr/sbin/sendmail"
DeliveryHost 127.0.0.1
DeliveryPort 10024
DeliveryIdent localhost
DeliveryProto SMTP
OnFail error
Trust root
Trust dspam
Trust vmail
TrainingMode teft
TestConditionalTraining on
Feature whitelist
Feature tb=3
Algorithm graham burton
PValue bcr
Tokenizer chain
SupressWebStats on
Preference "spamAction=tag"
Preference "showFactors=on"
Preference "spamSubject=[Spam]"
AllowOverride trainingMode
AllowOverride spamAction spamSubject
AllowOverride statisticalSedation
AllowOverride enableBNR
AllowOverride enableWhitelist
AllowOverride signatureLocation
AllowOverride showFactors
AllowOverride optIn optOut
AllowOverride whitelistThreshold
HashRecMax 98317
HashAutoExtend on
HashMaxExtents 0
HashExtentSize 49157
HashMaxSeek 100
HashConnectionCache 10
Notifications off
LocalMX 127.0.0.1
SystemLog on
UserLog on
Opt out
ParseToHeaders on
ChangeModeOnParse on
ChangeUserOnParse on
MaxMessageSize 20971520
ServerPort 10028
ServerQueueSize 32
ServerPID /var/run/dspam/dspam.pid
ServerMode auto
ServerPass.Relay1 "secret"
ServerParameters "--user=vmail --deliver=innocent,spam"
ServerIdent "localhost.localdomain"
ClientHost 127.0.0.1
ClientPort 10028
ClientIdent "secret@Relay1"
ProcessorBias on
ProcessorURLContext on
Include /etc/dspam/dspam.d/
mail:/etc/dspam# grep -v "#" default.prefs
trainingMode=TEFT
spamAction=tag
spamSubject=[SPAM]
enableBNR=on
enableWhitelist=on
statisticalSedation=5
signatureLocation=headers
whitelistThreshold=10
showFactors=on
mail:/etc/dspam/dspam.d# grep -v "#" mysql.conf
MySQLServer /var/run/mysqld/mysqld.sock
MySQLUser libdspam7-drv-my
MySQLPass 123456
MySQLDb libdspam7drvmysql
MySQLCompress true
MySQLConnectionCache 100
MySQLUIDInSignature on
maildroprc 如下:
# Global maildrop filter file
# Uncomment this line to make maildrop default to ~/Maildir for
# delivery- this is where courier-imap (amongst others) will look.
#DEFAULT="$HOME/Maildir"
logfile "/var/log/maildrop.log"
DECODER="/var/www/extsuite/extmail/tools/decode"
if ((/^(From|Sender|Return-Path):.*MAILER\-DAEMON/))
{
BADSENDER=1
}
#Global Filter
#
if (/^X-Spam-Flag:.*YES/)
{
exception {
to "$HOME/Maildir/.Junk/."
}
}
if (/^X-DSPAM-Result:.*Spam/)
{
exception {
to "$HOME/Maildir/.Junk/."
}
}
mail:/etc/postfix# grep -v "#" main.cf
mail_name = Postfix - by abc.com
smtpd_banner = Welcome To abc International ESMTP
biff = no
enable_original_recipient = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
myhostname = mail.abc.com
mydomain = abc.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail.abc.com, localhost.localdomain, localhost
smtp_helo_name = mail.abc.com
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_mailbox_base = /opt/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_error_sleep_time = 0s
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_transport = maildrop:
maildrop_destination_recipient_limit = 1
maildrop_destination_concurrency_limit = 2
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unauth_destination,
reject_unauth_pipelining,
reject_invalid_hostname,
check_policy_service inet:127.0.0.1:10030
smtpd_sender_restrictions =
permit_mynetworks,
reject_sender_login_mismatch,
reject_authenticated_sender_login_mismatch,
reject_unauthenticated_sender_login_mismatch
smtpd_sender_login_maps =
mysql:/etc/postfix/mysql_virtual_sender_maps.cf,
mysql:/etc/postfix/mysql_virtual_alias_maps.cf
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_security_options = noanonymous
header_checks=regexp:/etc/postfix/filter/header_checks
mime_checks=regexp:/etc/postfix/filter/mime_checks
smtpd_client_restrictions =check_client_access regexp:/etc/postfix/filter/blacklist,
check_client_access pcre:/etc/postfix/filter/dspam_filter_access
smtpd_helo_restrictions = check_helo_access regexp:/etc/postfix/filter/blacklist
smtpd_sender_restrictions = check_sender_access regexp:/etc/postfix/filter/blacklist
receive_override_options = no_address_mappings
message_size_limit = 20971520
show_user_unknown_table_name = no
dspam_filter_access 如下:
mail:/etc/postfix/filter# cat dspam_filter_access
/./ FILTER lmtp:[127.0.0.1]:10028
mail:/etc/postfix/filter# find / -name dspam.pm
/usr/share/perl5/Mail/SpamAssassin/Plugin/dspam.pm
DSPAM 模块是正常加载的
但是测试学习三次某邮件后 还是会把他丢到正常的邮件箱里去是怎么回事啊?
回复 1# hondasky 的帖子
Return-Path: <[email]excelhondasky_20@163.com[/email]>Delivered-To: [email]hondasky@prayaya.com[/email]
Received: from localhost (localhost.localdomain [127.0.0.1])
by mail.prayaya.com (Postfix - by prayaya.com) with ESMTP id 74969176021A
for <[email]hondasky@prayaya.com[/email]>; Thu, 29 Jul 2010 11:44:41 +0800 (CST)
X-Spam-Flag: NO
X-Spam-Score: 3.628
X-Spam-Level: ***
X-Spam-Status: No, score=3.628 tagged_above=2 required=5 tests=[AWL=0.285,
BAYES_99=3.5, CN_BODY_4=0.001, CN_BODY_98=0.001, CN_SUBJECT_72=0.351,
DSPAM_HAM_99=-3.23, HTML_MESSAGE=0.001, MIME_BASE64_TEXT=0.5,
TVD_SPACE_RATIO=2.219]
Received: from localhost ([127.0.0.1])
by localhost (mail.prayaya.com [127.0.0.1]) (amavisd-new, port 10024)
with SMTP id 0llT7kzjl-Pf for <[email]hondasky@prayaya.com[/email]>;
Thu, 29 Jul 2010 11:44:34 +0800 (CST)
Received: from m13-126.163.com (m13-126.163.com [220.181.13.126])
by mail.prayaya.com (Postfix - by prayaya.com) with ESMTP id 82B4A1760219
for <[email]hondasky@prayaya.com[/email]>; Thu, 29 Jul 2010 11:44:33 +0800 (CST)
Received: from excelhondasky_20 ( [113.64.217.24] ) by
ajax-webmail-wmsvr126 (Coremail) ; Thu, 29 Jul 2010 11:44:25 +0800 (CST)
Date: Thu, 29 Jul 2010 11:44:25 +0800 (CST)
From: sky <[email]excelhondasky_20@163.com[/email]>
To: hondasky <[email]hondasky@prayaya.com[/email]>
Message-ID: <[email]16daf44.3c2d.12a1c4d09ed.Coremail.excelhondasky_20@163.com[/email]>
Subject: =?gbk?B?Rnc6y7DO8bT6wO2jujI=?=
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_39688_23298351.1280375065063"
X-Originating-IP: [113.64.217.24]
X-Priority: 3
X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build
100525(10833.3107.3105) Copyright (c) 2002-2010 [url]www.mailtech.cn[/url] 163com
X-CM-CTRLDATA: 8WXahmZvb3Rlcl9odG09MzkyOjEyNg==
X-CM-TRANSID: fsGowLB7D8cZ+VBMYV8PAA--.16457W
X-CM-SenderInfo: ph0fvzxkrqvtpvn1sjqq6rljoofrz/1tbiJA0dFj-6VDZCRQAAsC
X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU==
X-DSPAM-Result: Innocent
X-DSPAM-Processed: Thu Jul 29 11:44:34 2010
X-DSPAM-Confidence: 1.0000
X-DSPAM-Probability: 0.0000
X-DSPAM-Signature: 2,4c50f922206431043616067
X-DSPAM-Factors: 27,
Content-Type*application/octet+stream, 0.33333,
2010+07, 0.33333,
Received*by+prayaya.com), 0.33333,
Received*webmail, 0.33333,
Content-Disposition*attachment+filename="Mqta_8111.JPG", 0.33333,
Received*), 0.33333,
From*163.com>, 0.33333,
X-Mailer*build, 0.33333,
From+"%bb%aa%c3%c0%b9%e3%b8%e6263, 0.33333,
Received*from+excelhondasky_20, 0.33333,
Received*excelhondasky_20+(, 0.33333,
Received*ESMTP, 0.33333,
Date, 0.33333,
Date+2010, 0.33333,
Received*(Postfix, 0.33333,
From*sky, 0.33333,
Date*Jul+2010, 0.33333,
Content-Type*stream, 0.33333,
Date*0800, 0.33333,
net+Subject, 0.33333,
Subject*Fw, 0.33333,
Received*m13+126.163.com, 0.33333,
messages+From, 0.33333,
Subject+%cb%b0%ce%f1%b4%fa%c0%ed%a3%ba2, 0.33333,
To*<hondasky+prayaya.com>, 0.33333,
Received*[220.181.13.126]), 0.33333,
26, 0.33333 :funk: :funk:
页:
[1]