|   |  | 
        
          | 
			  
			    | 茫茫網海中的冷日 發生過的事,不可能遺忘,只是想不起來而已!
 |  
				|  | 恭喜您是本站第 1746582 
										位訪客!
					 登入  | 註冊 |  |  | 
      
      
        
                      | 
 
 
 
 
 
 | 
                      
	| 發表者 | 討論內容 |  
	| 冷日 (冷日)
 | 發表時間:2004/8/5 4:23 |  
	| 
	Webmaster   
		註冊日: 2008/2/19來自: 發表數: 15773 | 
	[分享]SendMail 問題 mail loops back to me 處理法"mail loops back to me (MX problem?) Local configuration error" This is a very common problem covered in the Sendmail FAQ:
 http://www.sendmail.org/faq/section4.html#4.5
 
 If you receive these errors in Sendmail, class w--the list of hostnames for which the local computer will accept mail--may not be configured correctly.
 
 Example error:
 
 ----- The following addresses had permanent fatal errors -----
 <root@host.server.com>
 (reason: system config error)
 
 ----- Transcript of session follows -----
 553 5.3.5 host.server.com. config error: mail loops back to me (MX problem?)
 554 5.3.5 <root@host.server.com>... Local configuration error
 
 Solution (Sendmail version 8.11 and greater):
 
 1. Add host.server.com to /etc/mail/local-host-names
 2. Send the Sendmail daemon a SIGHUP signal (ex. kill -HUP `head -1 /var/run/sendmail.pid`)
 Solution (Sendmail versions before 8.11; I would recommend upgrading to a later version of Sendmail):
 
 1. Add host.server.com to /etc/mail/sendmail.cw
 2. Send the Sendmail daemon a SIGHUP signal (ex. kill -HUP `head -1 /var/run/sendmail.pid`)
 
 These solutions assume you are using the use_cw_file feature in Sendmail, and that you are using default locations for the files containing additional class w addresses. Check your sendmail.mc or sendmail.cf files to determine if you are using this feature and the locations of the files.
 
 You can display class w entries with the following command:
 echo '$=w' | sendmail -bt -d0.4
 
 By default, class w contains localhost, the IP address 127.0.0.1, and the system's IP address(es), fully qualified domain names, and short hostnames. Entries placed in /etc/mail/local-host-names or /etc/mail/sendmail.cw are added to these default values.
 
 
 Last modified: 03/06/2003
 |  
	|  |  
	| 冷日 (冷日)
 | 發表時間:2005/2/16 17:21 |  
	| 
	Webmaster   
		註冊日: 2008/2/19來自: 發表數: 15773 | 
	[分享]POP3問題 - Connection closed by foreign host.POP-3現在都是各式小企鵝的預設元件,基本上她們被放在 /usr/sbin/ipop3d !
 所以POP3是否有安裝好,或是你要直接在CONSOL收信的話,
 你是可以直接執行:
 [code:1:2c1f7947fe]# /usr/sbin/ipop3d
 +OK POP3 mail.avfocus.com.tw v2000.70 server ready
 USER username
 +OK User name accepted, password please
 PASS password
 +OK Mailbox open, 0 messages
 LIST
 +OK Mailbox scan listing follows
 .
 QUIT
 +OK Sayonara[/code:1:2c1f7947fe]
 
 那,如果POP3明明已經安裝好了,再來就是希望要遠端收信啦!
 此時你可以透過 telnet 來測試你的遠端 POP3 狀況!
 [code:1:2c1f7947fe]# telnet localhost 110
 Trying 127.0.0.1...
 Connected to mail.avfocus.com.tw.
 Escape character is '^]'.
 +OK POP3 mail.avfocus.com.tw v2000.70 server ready
 USER username
 +OK User name accepted, password please
 PASS password
 +OK Mailbox open, 0 messages
 LIST
 +OK Mailbox scan listing follows
 .
 QUIT
 +OK Sayonara
 Connection closed by foreign host.[/code:1:2c1f7947fe]
 
 若這樣也OK了,則可以試試看使用你對外IP看看!
 [code:1:2c1f7947fe]# telnet mail.avfocus.com.tw 110[/code:1:2c1f7947fe]
 
 如果這樣也OK了,那你應該就可以放心的在各種收信軟體裡設定你的帳號與密碼了!
 
 但是,有時候事情就不是那麼順利!
 明明pop3就有安裝好!
 在機器上也可以透過 telnet localhost 110 來達到收信的效果!
 但是你的收信軟體 EX:OUTLOOK . NETSCAPE 等等就是告訴你收件踰時!
 此時請先檢查 telnet [對外IP] 100 這樣是否會運作!
 若是不會,則請使用 nmap -p 1-65535 [對外IP] 來試試看你的機器對外到底開了哪一些PORT!
 如果110明明有開啟,但就是無法TELNET進去,得到像 "Connection closed by foreign host." 這樣的訊息的話!
 請去檢查你 /etc 資料夾下的 hosts.allow 與 hosts.deny 這兩隻檔案!
 現在的小企鵝預設都是把所有的先擋掉,再透過ALLOW來開放!
 所以如果你的 hosts.allow 檔裡面啥都沒有,或是都被MARK掉了!
 請加入這兩行
 [code:1:2c1f7947fe]ipop3d : ALL
 popper : ALL[/code:1:2c1f7947fe]
 
 表示開放這兩種服務可以從任何IP連結進來!
 然後此時要重新啟動你的 NETWORK 與 XINETD 的服務
 [code:1:2c1f7947fe]/etc/rc.d/init.d/network restart
 /etc/rc.d/init.d/xinetd restart[/code:1:2c1f7947fe]
 
 如此你的POP3收信應該就沒有任何困擾了啦!!!
 |  
	|  |  
 
 
                     |