thunderbird无法登录apache james

时间:2012-08-24 10:51:11

标签: apache email login mail-server james

据我所知,Apache James运行正常:

root@dur:~/apache-james-3.0-beta4.derby# 
root@dur:~/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.

root@dur:~/apache-james-3.0-beta4.derby# 
root@dur:~/apache-james-3.0-beta4.derby# bin/james-cli.sh -h localhost listusersa@localhost
b@localhost
thufir@localhost

listusers command executed sucessfully in 277 ms.

root@dur:~/apache-james-3.0-beta4.derby# 
root@dur:~/apache-james-3.0-beta4.derby# telnet localhost 143 -l thufir@localhost
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.
root@dur:~/apache-james-3.0-beta4.derby# 

所以,我正在尝试使用tomcat登录:

enter image description here

当然,那失败了。以下是帐户的设置方式:

enter image description here

服务器名称是否应该加上imap和smtp?雷鸟为什么不登录? (是的,我使用的是正确的密码。)

如果用Java进行故障排除会更好,我可以这样做,但从雷鸟开始看起来似乎是明智的。

James将登录尝试显示为:

root@dur:~/apache-james-3.0-beta4.derby# 
root@dur:~/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
root@dur:~/apache-james-3.0-beta4.derby# 

1 个答案:

答案 0 :(得分:1)

您的服务器名称应该是原样,没有任何前缀。最好把真正的服务器名称。在您的情况下“dur.bounceme.net”。

或者您可以使用“hosts”文件并为服务器分配别名(例如,您可以添加smtp和imap,或者只是根据需要将前缀邮件发送到服务器的别名)。对于Linux机器,您可以在/ etc / hosts中找到它并添加例如:

127.0.0.1     imap.localhost
127.0.0.1     smtp.localhost

或:

<server's IP>     <server alias>

这样,如果您愿意,可以为同一台机器添加两个额外的别名,但不需要它。