以下是針對上述必備環境條件分項說明:
以 HiNet ms6 郵件主機為例, 固定 IP 為 168.95.4.60, Domain Name 為 ms6.hinet.net
可以透過 DOS 底下的 nslookup 來確認, 再以 HiNet 的 ms6.hinet.net 郵件主機說明.
C:\Documents and Settings\USER>nslookup ms6.hinet.net Server: www.ichiayi.com Address: 220.130.131.240 Non-authoritative answer: Name: ms6.hinet.net Address: 168.95.4.60
C:\Documents and Settings\USER>nslookup 168.95.4.60 Server: www.ichiayi.com Address: 220.130.131.240 Name: ms6.hinet.net Address: 168.95.4.60
要能夠出現這樣正反解都沒問題
因為垃圾郵件過多, 所以現在大部分的郵件主機都會設定參考一些免費組織所提供的垃圾郵件主機 IP 清單, 如果來源信件 IP 出現在這個清單內, 就可能直接丟掉或做其他處理(可能前面加上 spam 的訊息).
如果要確認 168.95.4.60 是否在黑名單內, 可透過 IE 直接打以下的網址 :
網頁如果列出
168.95.4.60 is not listed in the SBL 168.95.4.60 is not listed in the PBL 168.95.4.60 is not listed in the XBL
與
IP Address 168.95.4.60 is not currently listed in the CBL.
表示沒有在黑名單內.
這部份如果沒有正確設定, 會造成一直收不到信件的問題. 也是使用 nslookup 來確認
nslookup > set type=mx > ms6.hinet.net Server: www.ichiayi.com Address: 220.130.131.240 Non-authoritative answer: ms6.hinet.net MX preference = 0, mail exchanger = ms6a.hinet.net hinet.net nameserver = hntp3.hinet.net hinet.net nameserver = dns.hinet.net hinet.net nameserver = hntp1.hinet.net ms6a.hinet.net internet address = 168.95.5.6 dns.hinet.net internet address = 168.95.1.1 hntp1.hinet.net internet address = 168.95.192.1 hntp3.hinet.net internet address = 168.95.192.2
表示實際上寄信給 [email protected] 是寄到 ms6a.hinet.net(168.95.5.6) 這台主機, 並非 ms6.hinet.net(168.95.4.60)
這部份就是 Mail Relay 的開放設定, 如果全開應該會在幾天內就被列入 3. 的垃圾郵件黑名單內.
別人要能寄信過來, 就必須開放 smtp Port 25 , 可在 DOS 底下使用 telnet 來簡單測試. 以下還是用 ms6.hinet.net 來作說明:
telent 168.95.5.6 25 應該會出現 220 msx-sg1-6.hinet.net ESMTP Sendmail 8.8.8/8.8.8; Tue, 3 Oct 2006 18:13:43 +0800 (CST) 可以打 quit 離開
要能讓 Outlook Express 取下信件, 就要開放 pop3 Port 110 或 imap Port 143, 也是使用剛剛的方式來確認
telnet 168.95.4.60 110 應該會出現 +OK POP3 [168.95.4.60] v7.64 server ready 可以打 quit 離開
如果這些基本的條件都沒問題, 再來就是看郵件記錄檔, 裡面會紀錄郵件運作的過程, 通常依照紀錄的內容應該可以判別出問題所在.