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