Ubuntu + Postfix + Courier IMAP + MySQL + Amavisd-new + SpamAssassin + ClamAV + SASL + TLS + SquirrelMail + Postgrey 整顿条例

1.先确认主机名称
hostname -f

如果主机名称不对的话,可以查看/etc/hosts里的设定看对不对

2.确认网路连线是否正常

3.TCP 25埠是否被封锁

4.系统时间及时间邮戳

5.系统记录

6.名称解析
使用dig 名称伺服器 MX

http://flurdy.com/docs/postfix/

在ubuntu 6.1里安装是会发生错误的,而且错误不少,只好一一地debug了!

在mail.info中有这样的错误

Mar 2 16:41:43 dns postfix/virtual[24918]: warning: maildir access problem for UID/GID=5000/5000: create maildir file /var/spool/mail/virtual/XXXX/tmp/1172824903.P24918.dns.HINET-IP.hinet.net: Permission denied
Mar 2 16:41:43 dns postfix/virtual[24918]: warning: perhaps you need to create the maildirs in advance
Mar 2 16:41:43 dns postfix/virtual[24918]: 99B0012A4448: to=XXX@XXXX.XXX.XXX, relay=virtual, delay=0.31, delays=0.14/0.11/0/0.06, dsn=4.2.0, status=deferred (maildir delivery failed: create maildir file /var/spool/mail/virtual/XXXX/tmp/1172824903.P24918.dns.HINET-IP.hinet.net: Permission

试着postfix set-permissions

发生chown: cannot access `/usr/lib/postfix/dict_ldap.so’: No such file or directory

google 无解 😥

在main.cf中
virtual_uid_maps = mysql:/etc/postfix/mysql_uid.cf ==>可疑? vs
http://www.extmail.org/forum/archive/2/0601/917.html的virtual_uid_maps = static:502