终于把qmail迁移到了postfix

花了一整天时间(24小时),终于把qmail迁移到了postfix。搞得头都大了,设置太多看起来实在太繁了。强大的功能就是让人不好配。

目前的架构是 FreeBSD 6.1 + postfix 2.3-snapshot + dovecot-snapshot + clamav-0.88_1 + clamsmtp-1.6_3
实现了SMTP(TLS/Non-TLS) + IMAPS + Maildir + AntiVirus + Relay gateway

现在还剩下垃圾邮件过滤还没加,不过做了些基本的,例如检查发件人dns记录、邮件记录(sender verify)、rbl记录等,已经很少垃圾邮件能过来了。像下面的就都被过滤了。

Apr  2 15:24:10 hshh postfix/smtpd[8188]: NOQUEUE: reject: RCPT from unknown[61.175.223.234]: 450 4.1.8 <abc@hotmail.xxxyyy.com>: Sender address rejected: Domain not found; from=<abc@hotmail.xxxyyy.com> to=<abc@hotmail.yyyxxx.com> proto=SMTP helo=<abc>
Apr  2 15:43:15 hshh postfix/smtpd[8379]: NOQUEUE: reject: RCPT from unknown[221.200.153.10]: 554 5.7.1 <reset@dreamz.org>: Relay access denied; from=<fcdg@yahoo.co.jp> to=<reset@dreamz.org> proto=SMTP helo=<dreamz.org>
Apr  2 16:06:25 hshh postfix/smtpd[9003]: NOQUEUE: reject: RCPT from unknown[58.33.58.12]: 450 4.1.7 <abc@abc.com>: Sender address rejected: undeliverable address: host mx2.disney.com[204.128.192.31] said: 550 No such address (in reply to RCPT TO command); from=<abc@abc.com> to=<xxx@hshh.org> proto=SMTP helo=<xxx>
Apr  2 17:46:45 hshh postfix/smtpd[10059]: NOQUEUE: reject: RCPT from nap13-4-82-240-84-217.fbx.proxad.net[82.240.84.217]: 450 4.1.7 <info@hshh.org>: Sender address rejected: undeliverable address: unknown user: "info@hshh.org"; from=<info@hshh.org> to=<info@hshh.org> proto=SMTP helo=<mail.searhc.org>
Apr  2 17:51:28 hshh postfix/smtpd[10086]: NOQUEUE: reject: RCPT from cust-69-19-130-149.static.o1.com[69.19.130.149]: 450 4.1.7 <william@eurovest.biz>: Sender address rejected: undeliverable address: mail for eurovest.biz loops back to myself; from=<william@eurovest.biz> to=<xxx@hshh.org> proto=ESMTP helo=<friend>
Apr  2 18:03:49 hshh postfix/smtpd[10264]: NOQUEUE: reject: RCPT from unknown[218.19.27.213]: 554 5.7.1 Service unavailable; Client host [218.19.27.213] blocked using cblless.anti-spam.org.cn; Mail from 218.19.27.213 refused, see http://anti-spam.org.cn/services/rblquery.php?IP=218.19.27.213; from=<nxenglish@163.com> to=<xxx@hshh.org> proto=ESMTP helo=<163.com>
Apr  2 18:09:05 hshh postfix/smtpd[10379]: NOQUEUE: reject: RCPT from unknown[221.201.3.52]: 450 4.1.8 <rang@elmarwan.net>: Sender address rejected: Domain not found; from=<rang@elmarwan.net> to=<xxx@hshh.org> proto=SMTP helo=<localhost>