請教, postfix能收不能寄

這個版面主要討論 debian 在 server 端的應用問題, server 種類繁多..舉凡 Web Server 、 File Server、 DHCP Server..等等。

版主: 阿信

請教, postfix能收不能寄

文章煩腦中 » 週二 3月 14, 2006 5:48 am

各位好,
已經看了大部分有關postfix的主題,
但好像找不到答案.....

我的debian是3.1,
其中postfix的設定是跟這一篇http://www.howtoforge.com/perfect_setup_debian_sarge_p4,
postfix能收到email, 但寄不出,
看過log檔後是connection timed out,
已肯定家中的router的port25已開.....

例如我試發一封mail到我的學校email去,
根據log檔試一試ping的指令,
能順利連接,
用telnet的方法連到localhost,
然後ehlo來看,
也沒有問題....
請問問題出在那裡?謝謝!
煩腦中
 

文章訪客 » 週二 3月 14, 2006 1:11 pm

要不要先把 /etc/postfix/master.cf 的這一行
smtp inet n - - - - smtpd
改成
smtp inet n - - - - smtpd -v

重新啟動 postfix
再把 log 貼出來看看
訪客
 

文章煩腦中 » 週三 3月 15, 2006 12:36 am

還是不行.....嗚

Mar 15 00:18:33 homeserver postfix/smtp[12269]: 9C2DD6F0865: to=<william321@gmail.com>, relay=none, delay=69565, status=deferred (connect to gsmtp183.google.com[64.233.183.27]: Connection timed out)
Mar 15 00:19:02 homeserver postfix/smtp[12268]: connect to gsmtp183.google.com[64.233.183.27]: Connection timed out (port 25)
Mar 15 00:19:02 homeserver postfix/smtp[12268]: EB44B6F0863: to=<william321@gmail.com>, relay=none, delay=78364, status=deferred (connect to gsmtp183.google.com[64.233.183.27]: Connection timed out)
煩腦中
 

文章d2207197 » 週三 3月 15, 2006 2:14 am

在您的機器
telnet gsmtp183.google.com 25
看能不能正確連上?
頭像
d2207197
鑽研的研究生
鑽研的研究生
 
文章: 1763
註冊時間: 週二 5月 27, 2003 9:57 pm
來自: 火星

文章訪客 » 週四 3月 16, 2006 5:14 pm

煩腦中 寫:還是不行.....嗚

Mar 15 00:18:33 homeserver postfix/smtp[12269]: 9C2DD6F0865: to=<william321@gmail.com>, relay=none, delay=69565, status=deferred (connect to gsmtp183.google.com[64.233.183.27]: Connection timed out)
Mar 15 00:19:02 homeserver postfix/smtp[12268]: connect to gsmtp183.google.com[64.233.183.27]: Connection timed out (port 25)
Mar 15 00:19:02 homeserver postfix/smtp[12268]: EB44B6F0863: to=<william321@gmail.com>, relay=none, delay=78364, status=deferred (connect to gsmtp183.google.com[64.233.183.27]: Connection timed out)


把 -v 的選項打開的 log 應該會有比較多的細節, 以便觀察錯誤出在哪裡
訪客
 

參考一下這個來蒐集錯誤資訊協助除錯

文章訪客 » 週四 3月 16, 2006 5:25 pm

參考一下這個來蒐集錯誤資訊協助除錯 :
http://www.postfix.org/BASIC_CONFIGURATION_README.html
=========================================
What trouble to report to the postmaster
You should set up a postmaster alias in the aliases(5) table that directs mail to a human person. The postmaster address is required to exist, so that people can report mail delivery problems. While you're updating the aliases(5) table, be sure to direct mail for the super-user to a human person too.

/etc/aliases:
postmaster: you
root: you
Execute the command "newaliases" after changing the aliases file. Instead of /etc/aliases, your alias file may be located elsewhere. Use the command "postconf alias_maps" to find out.

The Postfix system reports problems to the postmaster alias. You may not be interested in all types of trouble reports, so this reporting mechanism is configurable. The default is to report only serious problems (resource, software) to postmaster:

Default setting:

/etc/postfix/main.cf:
notify_classes = resource, software
The meaning of the classes is as follows:

bounce
Inform the postmaster of undeliverable mail. Either send the postmaster a copy of undeliverable mail that is returned to the sender, or send a transcript of the SMTP session when Postfix rejected mail. For privacy reasons, the postmaster copy of undeliverable mail is truncated after the original message headers. This implies "2bounce" (see below). See also the luser_relay feature. The notification is sent to the address specified with the bounce_notice_recipient configuration parameter (default: postmaster).
2bounce
When Postfix is unable to return undeliverable mail to the sender, send it to the postmaster instead (without truncating the message after the primary headers). The notification is sent to the address specified with the 2bounce_notice_recipient configuration parameter (default: postmaster).
delay
Inform the postmaster of delayed mail. In this case, the postmaster receives message headers only. The notification is sent to the address specified with the delay_notice_recipient configuration parameter (default: postmaster).
policy
Inform the postmaster of client requests that were rejected because of (UCE) policy restrictions. The postmaster receives a transcript of the SMTP session. The notification is sent to the address specified with the error_notice_recipient configuration parameter (default: postmaster).
protocol
Inform the postmaster of protocol errors (client or server side) or attempts by a client to execute unimplemented commands. The postmaster receives a transcript of the SMTP session. The notification is sent to the address specified with the error_notice_recipient configuration parameter (default: postmaster).
resource
Inform the postmaster of mail not delivered due to resource problems (for example, queue file write errors). The notification is sent to the address specified with the error_notice_recipient configuration parameter (default: postmaster).
software
Inform the postmaster of mail not delivered due to software problems. The notification is sent to the address specified with the error_notice_recipient configuration parameter (default: postmaster)
訪客
 

文章煩腦中 » 週二 3月 21, 2006 3:45 am

謝謝各位熱心的幫助,
經過多次嘗試後, 發覺問題是ping xxx.xxx.xxx.xxx 25時不成功,
相信是isp把port 25擋住了....十分失望.... :crying:
煩腦中
 

文章訪客 » 週二 3月 21, 2006 8:28 am

不會吧,這是哪一家 isp 啊

同時,恕我才疏學淺,可能說錯了
ping 好像不能指定 port no
你 ping 的對象可以把 ping 的回應關閉,留下 smtp 跟 pop3
這個目的是為了避免被 cracker 做初步的 scan
isp 不應該擋住任何一個服務才對耶
訪客
 

文章訪客 » 週二 3月 21, 2006 9:23 am

ping是ICMP, ping的到才怪. ooxx...

能收信就表示smtp port是開著的, postfix有在上面.
除非連能收信這件事都搞錯了.
訪客
 

文章訪客 » 週二 3月 21, 2006 4:33 pm

對不起, 我說錯了, 不是ping, 是telnet, 如上面:

d2207197 寫:在您的機器
telnet gsmtp183.google.com 25
看能不能正確連上?


其實我是香港的debian用家,
用的isp是netvigator,
有一個網頁說這家isp會將port 25 的 outbound擋住.....

其實這個isp已經將port 80給封住,
簡單點來說是能出不能入,
所以我的http要用別的port如port 81, 真可悲!
訪客
 


回到 debian server

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客

cron