qsed-abuse01@hzqbbc.com
发新话题
打印

[原创] Dspam+Amavis-new+SA+Clamav for EMOS (震撼推出)

本主题由 hzqbbc 于 2009-11-5 11:55 解除高亮

回复 70# hondasky 的帖子

  哈哈 终于搞明白  

# Trusted Users: Only the users specified below will be allowed to perform
# administrative functions in DSPAM such as setting the active user and
# accessing tools. All other users attempting to run DSPAM will be restricted;
# their uids will be forced to match the active username and they will not be
# able to specify delivery agent privileges or use tools.
#
Trust root
Trust dspam
Trust vmail
#Trust mailnull
#Trust smmsp
#Trust daemon
#Trust nobody
#Trust majordomo

这个账户是用来做什么了的  他是用配合EXTMAIL 那个垃圾邮件举报而实现把垃圾邮件和正常邮件目录自由切换的账户  如果上面的账户没有权限操作 邮件存储目录的话就会报这个错误
Apr 24 11:02:19 mail dspam[8365]: Option --user requires special privileges when user does not match current user, e.g.. root or Trusted User [uid=5000(}狅?]

希望给大家一点提示  经过我的测试得出来的结果

另外这里
Trust root
Trust dspam
Trust vmail  《--- 这个就是MAILDROP运行账户一定要这个账户存在
#Trust mailnull
#Trust smmsp
#Trust daemon
#Trust nobody

只需要保留能够操作邮件存储目录的账户即可

TOP

回复 71# hondasky 的帖子

现在遇到一个新问题  举报功能 好像不起作用哦  我把一份邮件举报为垃圾邮件下次他会收到正常收件箱里去哦 是怎么会事? MAILDROP 我已经配置好了

TOP

引用:
原帖由 hondasky 于 2009-4-24 11:12 发表
  哈哈 终于搞明白  

# Trusted Users: Only the users specified below will be allowed to perform
# administrative functions in DSPAM such as setting the active user and
# accessing tools. All other ...
另外下面也要改成你的Vmail,EMOS要改成vuser,这样我的Dspam-web里还有邮件头信息才显示正常。
ServerPID               /var/spool/dspam/dspamd.pid
ServerMode              auto
ServerPass.Relay1       "secret"
ServerParameters        "--user extmail --deliver=innocent,spam"

TOP

引用:
原帖由 hondasky 于 2009-4-24 11:55 发表
现在遇到一个新问题  举报功能 好像不起作用哦  我把一份邮件举报为垃圾邮件下次他会收到正常收件箱里去哦 是怎么会事? MAILDROP 我已经配置好了
要学习五次才会自动转到垃圾邮件箱
ExtMail邮件开发网
liushaobo@extmail.org
探索高性能的Anti-Spam组合

TOP

回复 72# hondasky 的帖子

我的MAILDROP 配置

# Global maildrop filter file

# Uncomment this line to make maildrop default to ~/Maildir for
# delivery- this is where courier-imap (amongst others) will look.

DECODER="/var/www/extsuite/extmail/tools/decode"
if ((/^(From|Sender|Return-Path):.*MAILER\-DAEMON/))
{
    BADSENDER=1
     }

logfile "/var/log/maildrop.log"

#Global Filter
#
import DEFAULT
if (/^X-Spam-Flag:.*YES/)
{
    exception {
            to "$HOME/Maildir/.Junk/."
                }
                }
if (/^X-DSPAM-Result:.*Spam/)
                {
exception {
   to "$HOME/Maildir/.Junk/."
                 }
                 }

TOP

引用:
原帖由 hondasky 于 2009-4-24 11:55 发表
现在遇到一个新问题  举报功能 好像不起作用哦  我把一份邮件举报为垃圾邮件下次他会收到正常收件箱里去哦 是怎么会事? MAILDROP 我已经配置好了
我刚才试了一下好像也这样哎,再多试几次看看,
5次以后就可以了,这个次数可以改不?

[ 本帖最后由 jgh2008 于 2009-4-24 12:21 编辑 ]

TOP

这个是在垃圾邮件箱里的邮件信头

Return-Path: <honda@prayaya.com>
Delivered-To: prayaya.ya@prayaya.com
Received: from localhost (localhost [127.0.0.1])
        by mail.prayaya.com (Qmail - by prayaya.com) with SMTP id 91A149001123
        for <prayaya.ya@prayaya.com>; Fri, 24 Apr 2009 11:47:51 +0800 (CST)
Received: from localhost.localdomain (localhost [127.0.0.1])
        by mail.prayaya.com (Qmail - by prayaya.com) with ESMTP id 0F8239001122
        for <prayaya.ya@prayaya.com>; Fri, 24 Apr 2009 11:47:51 +0800 (CST)
From: "=?GB2312?B?aG9uZGE=?=" <honda@prayaya.com>
To: "=?GB2312?B?cHJheWF5YS55YQ==?=" <prayaya.ya@prayaya.com>
Subject: =?GB2312?B?suLK1NPKvP4=?=
Date: Fri, 24 Apr 2009 11:47:50 +0800
Mime-version: 1.0
X-Originating-Ip: [58.254.150.170]
X-Mailer: ExtMail 1.0.9
Content-Type: text/html; charset="GB2312"
Content-Transfer-Encoding: base64
Message-Id: <20090424034751.0F8239001122@mail.prayaya.com>
X-DSPAM-Result: Innocent   〈----- 这里还没有修改SPAM哦 是怎么回事?
X-DSPAM-Processed: Fri Apr 24 11:47:51 2009
X-DSPAM-Confidence: 0.9899
X-DSPAM-Probability: 0.0000
X-DSPAM-Signature: 49f1366785463285824817
X-DSPAM-Factors: 27,  -〈----- 这里也没有修改啊  是怎么回事?
        Date*Apr, 0.01000,
        To*"prayaya.ya, 0.01000,
        Received*ESMTP, 0.01000,
        Date*0800, 0.01000,
        mail, 0.01000,
        mail, 0.01000,
        Mime-version*1.0, 0.01000,
        Received*localhost.localdomain, 0.01000,
        Received*<prayaya.ya, 0.01000,
        Received*(localhost, 0.01000,
        Received*with, 0.01000,
        Received*id, 0.01000,
        X-Mailer*1.0.9, 0.01000,
        From*<honda, 0.01000,
        X-Mailer*ExtMail, 0.01000,
        Received*prayaya.com), 0.01000,
        Date*2009, 0.01000,
        From*nda@prayaya.com>, 0.01000,
        Message-Id*mail.prayaya.com>, 0.01000,
        From*", 0.01000,
        Received*from, 0.01000,
        Received*Apr, 0.01000,
        Content-Transfer-Encoding*base64, 0.01000,
        From*prayaya.com>, 0.01000,
        Received*by, 0.01000,
        Received*by, 0.01000,
        Received*[127.0.0.1]), 0.01000

TOP

老大 能不能给个正确的DSPAM。CF配置文件啊

另外各个 目录的权限 都提供过来 我们这些小帝 一堆问题哦 一个接一个过来啊

TOP

dspam的配置本帖就已经贴了啊。和和,权限就是rpm默认安装的。
请引用或摘抄本站文章信息的朋友,保留本站链接及作者信息,保护版权,谢谢。

构建高性能大容量开源邮件系统- ExtMail

Postfix在中国官方网站

TOP

这个我发一封邮件的新头 好像他不会修改头哦

Return-Path: <honda@prayaya.com>
Delivered-To: prayaya.ya@prayaya.com
Received: from localhost (localhost [127.0.0.1])
        by mail.prayaya.com (Qmail - by prayaya.com) with SMTP id 8249E9001123
        for <prayaya.ya@prayaya.com>; Fri, 24 Apr 2009 13:04:56 +0800 (CST)
Received: from localhost.localdomain (localhost [127.0.0.1])
        by mail.prayaya.com (Qmail - by prayaya.com) with ESMTP id 460459001122
        for <prayaya.ya@prayaya.com>; Fri, 24 Apr 2009 13:04:56 +0800 (CST)
From: "=?GB2312?B?aG9uZGE=?=" <honda@prayaya.com>
To: "=?GB2312?B?cHJheWF5YS55YQ==?=" <prayaya.ya@prayaya.com>
Subject: =?GB2312?B?1tC5+tPKvP4=?=
Date: Fri, 24 Apr 2009 13:04:56 +0800
Mime-version: 1.0
X-Originating-Ip: [58.254.150.170]
X-Mailer: ExtMail 1.0.9
Content-Type: text/html; charset="GB2312"
Content-Transfer-Encoding: base64
Message-Id: <20090424050456.460459001122@mail.prayaya.com>
X-DSPAM-Result: Whitelisted
X-DSPAM-Processed: Fri Apr 24 13:04:56 2009
X-DSPAM-Confidence: 0.9899
X-DSPAM-Improbability: 1 in 9809 chance of being spam
X-DSPAM-Probability: 0.0000
X-DSPAM-Signature: 49f1487888871639889817
X-DSPAM-Factors: 27,
        Choose, 0.01000,
        Date*Apr, 0.01000,
        To*"prayaya.ya, 0.01000,
        Received*ESMTP, 0.01000,
        Date*Fri, 0.01000,
        Date*0800, 0.01000,
        Mime-version*1.0, 0.01000,
        Received*localhost.localdomain, 0.01000,
        Received*<prayaya.ya, 0.01000,
        Received*(localhost, 0.01000,
        Received*with, 0.01000,
        Received*id, 0.01000,
        X-Mailer*1.0.9, 0.01000,
        From*<honda, 0.01000,
        X-Mailer*ExtMail, 0.01000,
        Received*prayaya.com), 0.01000,
        Date*2009, 0.01000,
        Date*24, 0.01000,
        From*nda@prayaya.com>, 0.01000,
        to, 0.01000,
        Message-Id*mail.prayaya.com>, 0.01000,
        From*", 0.01000,
        Received*24, 0.01000,
        Received*from, 0.01000,
        Received*Apr, 0.01000,
        Date*13, 0.01000,
        Content-Transfer-Encoding*base64, 0.01000

TOP

回复 79# hzqbbc 的帖子

说明一下 我是用POSTFIX +DSPAM +MAILDORPR 没有采用AMAVISD +CLAMAD+DSPAM+SPAMASSASSION方式 我只需要一个反垃圾邮件功能 就可以了  上面的DSPAM。CF 配置文件是完全按照 大哥的配置的 只不过我的系统是DEBIAN 配置文件路径不同而已

TOP

引用:
原帖由 hondasky 于 2009-4-24 13:08 发表
说明一下 我是用POSTFIX +DSPAM +MAILDORPR 没有采用AMAVISD +CLAMAD+DSPAM+SPAMASSASSION方式 我只需要一个反垃圾邮件功能 就可以了  上面的DSPAM。CF 配置文件是完全按照 大哥的配置的 只不过我的系统是DEBIAN 配 ...
如果只用 dspam 和 clamav,请参考精华区 疯狂老头的dspam配置文件,我这里是用amavisd和sa做标记和打分,dspam只是做过滤用。没有起用标记功能
ExtMail邮件开发网
liushaobo@extmail.org
探索高性能的Anti-Spam组合

TOP

回复 82# liushaobo 的帖子

#
# ImprobabilityDrive: Calculate odds-ratios for ham/spam, and add to
# X-DSPAM-Improbability headers
ImprobabilityDrive on

这个打开有问题吗?

TOP

回复 82# liushaobo 的帖子

原帖由 hondasky 于 2009-4-24 13:08 发表
    说明一下 我是用POSTFIX +DSPAM +MAILDORPR 没有采用AMAVISD +CLAMAD+DSPAM+SPAMASSASSION方式 我只需要一个反垃圾邮件功能 就可以了  上面的DSPAM。CF 配置文件是完全按照大哥的配置的 只不过我的系统是DEBIAN 配 ...

如果只用 dspam 和 clamav,请参考精华区 疯狂老头的dspam配置文件,我这里是用amavisd和sa做标记和打分,dspam只是做过滤用。没有起用标记功能

我是参考了 HZQQC的老大的 配置 就改了断口就开始用了  结果有些地方不起作用


另外还有个地方 由于系统是DEBIAN 的 默认的是EXIM 我已经写栽干净了

TrustedDeliveryAgent "/usr/bin/maildrop"

所以就用这个

[ 本帖最后由 hondasky 于 2009-4-24 14:30 编辑 ]

TOP

发新话题