按照marion的「RHEL4上安裝基於postfix...」文檔,安裝到postfix時出錯!!![已解決]
本人按照marion的「RHEL4上安裝基於postfix的全功能郵件伺服器」文檔,安裝到 postfix。
連接postfix,驗正服務啟動狀況,沒有出向文檔中類似的文字:
# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail.benet.org ESMTP Postfix
ehlo mail.benet.org
250-mail.benet.org
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from:root@benet.org
250 2.1.0 Ok
rcpt to:redhat@benet.org
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
subject:Mail test!
Mail test!!!
.
250 2.0.0 Ok: queued as AB94A1A561
quit
221 2.0.0 Bye
Connection closed by foreign host.
切換到redhat用戶進行收信:
# su - redhat
$ mail
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/redhat": 1 message 1 new
>N 1 root@benet.org Wed Sep 5 10:59 15/488 "Mail test!"
&
而是下面的現象:
# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail.weixy.com ESMTP Postfix
到這裡,就不往下進行了,按 回車鍵 出現
500 5.5.2 Error: bad syntax
提示。請問大家是怎麼回事?
是按照marion的文檔一步步進行的,前面的都測試通過。
這是maillog日誌:
Feb 21 14:05:19 mail postfix/smtpd: connect from localhost.localdomain
Feb 21 14:09:28 mail postfix/smtpd: lost connection after CONNECT from localhost.localdomain
Feb 21 14:09:28 mail postfix/smtpd: disconnect from localhost.localdomain
Feb 21 14:09:37 mail postfix/smtpd: connect from localhost.localdomain
Feb 21 14:11:36 mail postfix/smtpd: lost connection after CONNECT from localhost.localdomain
Feb 21 14:11:36 mail postfix/smtpd: disconnect from localhost.localdomain
這是我的dns配置信息!
# nslookup mail.weixy.com
Server: 192.168.8.127
Address: 192.168.8.127#53
Name: mail.weixy.com
Address: 192.168.8.127
# nslookup 192.168.8.127
Server: 192.168.8.127
Address: 192.168.8.127#53
127.8.168.192.in-addr.arpa name = mail.weixy.com.
127.8.168.192.in-addr.arpa name = ns.weixy.com.
127.8.168.192.in-addr.arpa name = www.weixy.com.
[ 本帖最後由 liwei6998 於 2008-2-21 17:21 編輯 ]
《解決方案》
回復 #1 liwei6998 的帖子
# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail.benet.org ESMTP Postfix
到這裡后不是直接按enter鍵,而是要輸入
ehlo mail.benet.org
同樣在
250 DSN
mail from:root@benet.org(手工輸入)
250 2.1.0 Ok
rcpt to:redhat@benet.org(手工輸入)
250 2.1.5 Ok
data(手工輸入)
354 End data with <CR><LF>.<CR><LF>
subject:Mail test!(手工輸入)
Mail test!!!(手工輸入)
.最後是以.結尾的
250 2.0.0 Ok: queued as AB94A1A561
quit
221 2.0.0 Bye
Connection closed by foreign host.
《解決方案》
回復 #2 junger 的帖子
哈哈,測試通過了!!!
非常感謝junger,太謝謝你了!!!
《解決方案》
共同學習而已!!!