2012-08-24 43 views
2

到目前爲止,我所知道的,Apache James正常運行:雷鳥無法登錄到Apache詹姆斯

[email protected]:~/apache-james-3.0-beta4.derby# 
[email protected]:~/apache-james-3.0-beta4.derby# bin/james-cli.sh -h localhost listdomainslocalhost 
127.0.1.1 
127.0.0.1 
127.0.1.1 

listdomains command executed sucessfully in 262 ms. 

[email protected]:~/apache-james-3.0-beta4.derby# 
[email protected]:~/apache-james-3.0-beta4.derby# bin/james-cli.sh -h localhost [email protected] 
[email protected] 
[email protected] 

listusers command executed sucessfully in 277 ms. 

[email protected]:~/apache-james-3.0-beta4.derby# 
[email protected]:~/apache-james-3.0-beta4.derby# telnet localhost 143 -l [email protected] 
Trying 127.0.0.1... 
Connected to localhost. 
Escape character is '^]'. 
* OK JAMES IMAP4rev1 Server Server dur.bounceme.net is ready. 
login 
* BYE Unknown command. 
Connection closed by foreign host. 
[email protected]:~/apache-james-3.0-beta4.derby# 

所以,我想在Tomcat登錄:

enter image description here

當然,那失敗了。這裏的賬號是如何設置:

enter image description here

如果服務器名稱與IMAP和SMTP前置?爲什麼不會登錄Thunderbird? (是的,我使用的是正確的密碼。)

如果這樣更好地排除Java故障,我可以這麼做,但從thunderbird開始似乎是謹慎的。

詹姆斯顯示的登錄嘗試爲:

[email protected]:~/apache-james-3.0-beta4.derby# 
[email protected]:~/apache-james-3.0-beta4.derby# tail log/james-server.log 
INFO 03:38:56,180 | james.imapserver | ID=10307467 Connection closed for 127.0.0.1 
INFO 03:39:42,277 | james.imapserver | ID=18745390 Connection established from 127.0.0.1 
INFO 03:40:16,779 | james.imapserver | ID=18745390 Too many authentication failures. Closing connection. 
INFO 03:40:16,801 | james.imapserver | ID=18745390 Connection closed for 127.0.0.1 
INFO 03:40:16,854 | james.imapserver | ID=18407750 Connection established from 127.0.0.1 
INFO 03:40:20,028 | james.imapserver | ID=18407750 Connection closed for 127.0.0.1 
INFO 03:42:04,682 | james.imapserver | ID=295845 Connection established from 127.0.0.1 
INFO 03:42:14,286 | james.imapserver | ID=295845 Connection closed for 127.0.0.1 
INFO 03:48:17,081 | james.imapserver | ID=9571677 Connection established from 127.0.0.1 
INFO 03:48:17,143 | james.imapserver | ID=9571677 Connection closed for 127.0.0.1 
[email protected]:~/apache-james-3.0-beta4.derby# 

回答

1

您的服務器名稱應該是原樣,沒有任何前綴。最好放置真實的服務器名稱。在你的情況「dur.bounceme.net」。

或者您可以使用「主機」文件進行播放,併爲您的服務器分配一個別名(即,如果喜歡,您可以添加smtp和imap,或只是將郵件前綴添加到服務器的別名中)。對於一臺Linux機器,你可以在/ etc/hosts中找到它,並添加如:

127.0.0.1  imap.localhost 
127.0.0.1  smtp.localhost 

或:

<server's IP>  <server alias> 

這種方式,您可以有兩個額外的別名在同一臺機器,如果你會喜歡的,但它不是必需的。

+0

赦免了,還沒有試過你的解決方案.. – Thufir