8月 152013
 

很多使用企业的邮箱服务器朋友反应无法发送到sina.com,hotmail.com,yahoo.com.cn 的邮箱。

其实为了防止垃圾邮件,很多邮件服务器都采用了垃圾邮件识别阻拦技术+IP反向解析验证技术以更好的阻拦垃圾邮件。如 sina.com,hotmail.com,yahoo.com.cn 这些邮件服务器都是这样的。

解决办法:首先要有公网IP、域名,例如example.net的域名,在域名管理后台添加一A记录,将mx.example.net指向SMTP的公网出口IP,如 221.215.89.6,接着与您的固定IP所在ISP服务提供商(一般是电信或网通)联系要求为您的IP反向解析至mx.example.net,完成后将您的SMTP服务器的HELO域名改为mx.example.net,这样才行。 Continue reading »

9月 062011
 

config in main.cf (postfix > 2.3)

smtpd_client_restrictions=
permit_sasl_authenticated
reject_unknown_client_hostname
reject_rbl_client cblless.anti-spam.org.cn
reject_rbl_client zen.spamhaus.org
reject_rbl_client bl.spamcop.net

##Note: specify “smtpd_helo_required = yes” to fully enforce this restriction (without “smtpd_helo_required = yes”, a client can simply skip smtpd_helo_restrictions by not sending HELO or EHLO).##
smtpd_helo_required = yes Continue reading »

9月 062011
 

Is my DNS a Mess? Probably!!

We don’t have time and space here to fix all those problems, but I’d like to concentrate now on:

How to Keep Your DNS from Blocking Mail Delivery from your and your Clients’ Mail Servers

Short, snappy headlines rule, OK!

IPv6, when widely implemented (you do have a plan, don’t you?) will fix a ton of Internet security problems. Until Nirvana arrives, we’ll have to do the best we can with the (DNS) technology in hand, which is a lot better than than mess we’ve got now.

Since I’ve become involved with postfix, a wonderful Mail Tranfser Agent (MTA) by Wietse Venema and IBM, used as the basis of my IMGate project (see link in left column), I’ve learned a lot about how advanced MTA’s such as postfix, qmail, and the latest version of sendmail can be setup to triangulate and validate any other mail servers who want to send them mail.

Using postfix as as example, just take a look at this page: Continue reading »

8月 262010
 

目前RBL服务器一般采用DNS查询或DNS区域传输的方法.国内的RBL服务器比较少,而且数据库比较小.国外的RBL服务器维护的数据库比较大,但使用起来由于国际网络原因经常有超时现象发生.企业应该根据自己收到的垃圾邮件的种类来选择合适的RBL.下面说几个常用的:

国内的:
国内的实时黑名单服务(RBL)做的最大的就是anti-spam. 它的官方网站是: http://www.anti-spam.org.cn
它提动的实时黑名单服务(RBL)主要包括四个部分:CBL、CDL和CBL+、CBL-。
CBL包含近期中国国内的主要垃圾邮件发送源。
CDL包含中国国内动态分配地址。
CBL+为CBL和CDL的合集。
CBL-是CBL+中去除了中国邮件服务运营商白名单服务(CML)的内容后的黑名单,该黑名单方便于既想使用实时黑名单,而又要保证在任何情况下都能收到来着他们的邮件的用户。

我们可以根据自己的实际情况选择下面的四种模式中的任意一种。
CBL: cbl.anti-spam.org.cn
CDL: cdl.anti-spam.org.cn
CBL+: cblplus.anti-spam.org.cn
CBL-: cblless.anti-spam.org.cn Continue reading »

5月 142010
 

postfix提示:
warning: do not list domain in BOTH mydestination and virtual_mailbox_domains

根据提示,是说我的mydestination选项和mysql里面的virtual_mailbox_domain出现冲突,2者留其一。

原因:是系统域名与虚拟帐户的域名冲突了,而mydestination会自动根据机器名生成

解决;因此如果虚拟账号里有aaaa.com,那么在mydestination里就要去掉aaaa.com。
另外,也可以将其设为空:postconf -e mydestination=
或者手动编辑一下main.cf,加入mydestination=

4月 072010
 

在开放源代码的世界里,电子邮件服务器最主流的目前有三种,分别是sendmail, qmail, postfix。而存储格式最流行的有两种,Mbox和Maildir,它们都是开放的存储格式,因此兼容性比较好。

而mbox和maildir的历史,却不为大多数用户所了解。今天和一个朋友聊到mbox和maildir哪个好,顺便搜集一下mbox和maildir的资料,谈谈这两者的原理和区别,以及应该如何做选择。

Mbox的历史较Maildir悠久,sendmail支持mbox,qmail和postfix都支持mbox,其主要特点就是“所有邮件都存放到一个文件里”。每个邮件之间以特定的标记分割。

而Maildir则相反,每一封邮件保存成一个文件,每个文件名称一般有一定的规律,例如会包含时间戳、pid及inode节点号等。

除了mbox和maildir格式外,还有一个叫mbx的格式,它是对mbox的改进版本。主要用在UW-IMAP server里。它最大的特点是有一个针对mbox文件的索引,能改善读/写性能。但依然需要file lock。

随着qmail/postfix的普及,以及mbox的一些问题暴露,maildir得到了越来越多的应用。其中mbox的最主要问题是文件缩定(file lock),其次是大多数update操作的效能问题。 Continue reading »

4月 062010
 

以下是我个人的理解以及总结,有不对的地方欢迎各位来指正!相互进步,也方便朋友们一起交流!
一般的邮件系统有以下几个组件构成:
MTA+MDA+数据库+POP3/IMAP4 +认证部分+反垃圾邮件+内容过滤中间件+查毒/杀毒+WEB+webmail+(ssl/tsl)+(mail日志分析)+后台管理 +MUA

下面详细分析每个部分:
MTA:邮件传输代理( sendmail,Exim,postfix,qmail,samil 在这呢,就不敢逐一比较,
                    没那么深的功力,希望你能来补上、、、、)
MDA:邮件投递代理 ( procmail:过滤邮件,并能对其自动分类 、处理的一个应用软件;maildrop支持 mbox/maildir,用以取代内部投递代理且过滤)
数据库:用以存放用户名/密码 (mysql,LDAP) Continue reading »