1 / 19

Postfix 邮件系统 基本配置与反垃圾

Postfix 邮件系统 基本配置与反垃圾. 杨廷勇 E-mail:jacky@thismail.org QQ:187159779 http://www.postfix.cn. Email 的概念. 什么是 MUA ? Outlook,foxmail,Thunderbird 等式 什么是 MTA ? Postfix,Sendmail,Qmail,Exim 等 什么是 MDA ? Maildrop,Prcmail 等. 相关协议简介. SMTP称为简单Mail传输协议(Simple Mail Transfer Protocal) 介绍 工作机制

gino
Download Presentation

Postfix 邮件系统 基本配置与反垃圾

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Postfix邮件系统基本配置与反垃圾 杨廷勇 E-mail:jacky@thismail.org QQ:187159779 http://www.postfix.cn

  2. Email的概念 • 什么是MUA? Outlook,foxmail,Thunderbird等式 • 什么是MTA? Postfix,Sendmail,Qmail,Exim等 • 什么是MDA? Maildrop,Prcmail等

  3. 相关协议简介 SMTP称为简单Mail传输协议(Simple Mail Transfer Protocal) 介绍 工作机制 • POP的全称是 Post Office Protocol ,即邮局协议 • IMAP是Internet Message Access Protocol的缩写

  4. SMTP会话 mail# telnet localhost 25 Connected to localhost.test.com. Escape character is '^]'. 220 postfix.cn ESMTP Postfix ehlo mail 250-postfix.cn 250 DSN auth login 334 VXNlcm5hbWU6 dGVzdEBwb3N0Zml4LmNu 334 UGFzc3dvcmQ6 MTIzNDU2 235 2.0.0 Authentication successful quit 221 2.0.0 Bye Connection closed by foreign host.

  5. POP会话 • mail# telnet localhost 110 • Connected to localhost.test.com. • Escape character is '^]'. • +OK Hello there. • user test@postfix.cn • +OK Password required. • pass 123456 • +OK logged in. • list • +OK POP3 clients that break here, they violate STD53. • 1 724 • . • quit • +OK Bye-bye. • Connection closed by foreign host.

  6. Postfix起源和理念  • Postfix起源 • Postfix设计理念 可靠性 安全性 效率 兼容性

  7. 基于Postfix邮件系统的设计 • Postfix负责邮件收发 • MySQL负责邮件账号信息存储 • Cyrus-sasl2负责邮件加密认证 • Courier-authlib负责邮件系统IMAP与POP3 • Lighttpd负责Webmail的运行 • Maildrop负责邮件本地投递 • Spamassassin基于内容的垃圾邮件识别 • Clamav提供病毒邮件过滤

  8. Postfix的安装 • 详见论坛(地址写上)

  9. Postfix配置文件 • /etc/postfix/master.cf 是postfix的master进程的配置文件,该文件中的每一行都是用来配置postfix的组件进程的运行方式。 • /etc/postfix/main.cf 是postfix主要的配置文件。

  10. main.cf配置格式 • postfix大约有300多个配置参数,这些参数都可以通过main.cf 指定。 • 格式是:用等号连接参数和参数的值。如:   myhostname = mail.mydomain.com • 也可以在参数的前面加上$来引用该参数,如:   myorigin = $myhostname • 一旦你更改了main.cf文件的内容,则必须运行postfix reload命令使其生效。

  11. Postfix命令说明 • postfix • postqueue • postsuper • postmap • postconf • postcat • postlog • postalias

  12. Postfix反垃圾邮件 • 垃圾邮件的概念 • 开放转发 • 垃圾邮件识别 • 反垃圾邮件的措施 • SMTP语法规范参数 • 内容检查

  13. 常见反垃圾邮件方法 • 关键词过滤 • 黑白名单 • HASH技术 • 基于规则的过滤 • Bayesian 贝叶斯算法 • DKIM(DomainKeys Identified Mail)技术 • SenderID技术 • RBL过滤

  14. SpamAssassin • SpamAssassin是一个具有运用大量文本分析机制来识别垃圾/间谍邮件的邮件过滤软件,贝叶斯过滤, DNS 过滤列表以及共享的垃圾邮件过滤数据库。

  15. SpamAssassin特点 •    领域广泛:SpamAssassin使用大量的本地与网络测试来识别垃圾邮件的特征。这些使得垃圾制造者再次发布其垃圾信息时有很大的困难。 •     易扩展:提供简单易懂的反垃圾邮件测试与配置的文档,能够很简单方便的配置、添加新规则。 •     灵活:SpamAssassin具有很好的逻辑设计,理想的API接口,因此它能够与大量邮件系统集成使用。包括procmail,Maildrop,sendmail,Postfix,qmail以及其他多种邮件系统。 •     配置简单:SpamAssassin只需要很少的配置;你不需要持续的更新详细的邮件帐户,邮件列表等。一旦被分类后,用户自定义的策略将会立即被应用。策略能够被邮件服务器与用户的客户端引擎所应用。

  16. DSPAM简介 • Dspam是一个开源的垃圾邮件过滤软件 • 作者:Jonathan A. Zdziarski • 《Ending Spam: Bayesian Content Filtering and the Art of Statistical Language Classification 》 • 目前版本:3.8.0 (2007.3) • 特点: • 高效 0.01s-0.07s/msg • 准确 99.5% - 99.95%

  17. DSPAM的其他一些特性 • 数据库支持 • Hash DB • Sqlite,Sqlite3 • Mysql • Pgsql • ClamAV集成 • WebUI • 自动白名单

  18. Dspam参考资料 • http://www.nuclearelephant.com/ • http://dspam.nuclearelephant.com/text/README-3.6.7.txt

  19. 完 结 欢迎大家与我交流 QQ:187159779 MSN:jacky@thismail.org

More Related