postfix無法發送郵件,有日誌,幫忙看看,謝謝

火星人 @ 2014-03-04 , reply:0
←手機掃碼閱讀

postfix無法發送郵件,有日誌,幫忙看看,謝謝

按照本論壇《RHEL4上安裝基於postfix的全功能郵件伺服器(全部使用目前最新源碼包構建)》做到安裝完postfix后測試發送郵件,但是本機其他用戶收不到,有日誌,幫忙看看,謝謝!!!

Nov 24 00:57:57 localhost postfix/smtpd: disconnect from unknown
Nov 24 00:58:46 localhost postfix/smtpd: connect from localhost.localdomain
Nov 24 00:59:07 localhost postfix/smtpd: DB2BB2D64C: client=localhost.localdomain[127.0.0
.1]
Nov 24 00:59:24 localhost postfix/cleanup: DB2BB2D64C: message-id=<20111123165907.DB2BB2D
64C@mail.ibm.com>
Nov 24 00:59:24 localhost postfix/qmgr: DB2BB2D64C: from=<root@ibm.com>, size=345, nrcpt=
1 (queue active)
Nov 24 00:59:24 localhost postfix/smtp: DB2BB2D64C: to=<jin@ibm.com>, relay=none, delay=2
5, delays=25/0/0/0, dsn=5.4.6, status=bounced (mail for ibm.com loops back to myself)
Nov 24 00:59:24 localhost postfix/cleanup: 659F12D651: message-id=<20111123165924.659F12D
651@mail.ibm.com>
Nov 24 00:59:24 localhost postfix/qmgr: 659F12D651: from=<>, size=2028, nrcpt=1 (queue ac
tive)
Nov 24 00:59:24 localhost postfix/bounce: DB2BB2D64C: sender non-delivery notification: 6
59F12D651
Nov 24 00:59:24 localhost postfix/qmgr: DB2BB2D64C: removed
Nov 24 00:59:24 localhost postfix/smtp: 659F12D651: to=<root@ibm.com>, relay=none, delay=
0.02, delays=0.02/0/0/0, dsn=5.4.6, status=bounced (mail for ibm.com loops back to myself)
Nov 24 00:59:24 localhost postfix/qmgr: 659F12D651: removed
Nov 24 00:59:27 localhost postfix/smtpd: disconnect from localhost.localdomain
Nov 24 01:09:26 localhost postfix/smtpd: warning: dict_nis_init: NIS domain name not set
- NIS lookups disabledNov 24 01:09:26 localhost postfix/smtpd: connect from unknown
Nov 24 01:09:50 localhost postfix/smtpd: AC7742D650: client=unknown
Nov 24 01:10:10 localhost postfix/cleanup: AC7742D650: message-id=<20111123170950.AC7742D
650@mail.ibm.com>
Nov 24 01:10:10 localhost postfix/qmgr: AC7742D650: from=<root@ibm.com>, size=339, nrcpt=
1 (queue active)
Nov 24 01:10:10 localhost postfix/smtp: AC7742D650: to=<jin@ibm.com>, relay=none, delay=2
7, delays=27/0.02/0/0, dsn=5.4.6, status=bounced (mail for ibm.com loops back to myself)
Nov 24 01:10:10 localhost postfix/cleanup: 4CCA52D652: message-id=<20111123171010.4CCA52D
652@mail.ibm.com>
Nov 24 01:10:10 localhost postfix/qmgr: 4CCA52D652: from=<>, size=2022, nrcpt=1 (queue ac
tive)
Nov 24 01:10:10 localhost postfix/bounce: AC7742D650: sender non-delivery notification: 4
CCA52D652
Nov 24 01:10:10 localhost postfix/qmgr: AC7742D650: removed
Nov 24 01:10:10 localhost postfix/smtp: 4CCA52D652: to=<root@ibm.com>, relay=none, delay=
0.01, delays=0.01/0/0/0, dsn=5.4.6, status=bounced (mail for ibm.com loops back to myself)Nov 24 01:10:10 localhost postfix/qmgr: 4CCA52D652: removed
Nov 24 01:10:11 localhost postfix/smtpd: disconnect from unknown
《解決方案》

第一個紅字哪已經解決好了:
warning: dict_nis_init: NIS domain name not set - NIS lookups disabled

main.cf中加入下面配置信息
alias_database = hash:/etc/postfix/aliases

alias_maps = hash:/etc/postfix/aliases

下面的紅字還沒解決好,還是不能發郵件喲
《解決方案》

問題解決啦,在main.cf中得設置問題。
應該選擇第二項,開始我選的第一項
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
選第一項就會出現下面的錯誤,我反覆的試過的
relay=none, delay=
0.01, delays=0.01/0/0/0, dsn=5.4.6, status=bounced (mail for ibm.com loops back to myself)

正確的效果:
Nov 24 02:26:00 mail postfix/local: 5C56A2D63C: to=<jin@ibm.com>, relay=local, delay=28, delays=28/0.02/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)




[火星人 via ] postfix無法發送郵件,有日誌,幫忙看看,謝謝已經有518次圍觀

http://www.coctec.com/docs/service/show-post-13684.html