2

据我所知,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登录:

在此处输入图像描述

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

在此处输入图像描述

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

如果使用 Java 进行故障排除会更好,我可以这样做,但从 Thunderbird 开始似乎是谨慎的。

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# 
4

1 回答 1

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>

这样,如果您愿意,您可以为同一台机器设置两个额外的别名,但这不是必需的。

于 2013-06-22T09:39:10.223 回答