title: thunderbird cannot login to apache james
body: <p>So far as I can tell, <a href="http://james.apache.org/server/3/quick-start.html" rel="nofollow noreferrer">Apache James</a> is running correctly:</p>
  
  <pre><code>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# 
  </code></pre>
  
  <p>So, I'm trying to login with tomcat:</p>
  
  <p><img src="https://i.stack.imgur.com/Q3KBb.png" alt="enter image description here"></p>
  
  <p>Of course, that fails.  Here's how the account was setup:</p>
  
  <p><img src="https://i.stack.imgur.com/z5G1O.png" alt="enter image description here"></p>
  
  <p>Should the server names be prepended with imap and smtp?  Why won't thunderbird login?  (Yes, I'm using the correct password.) </p>
  
  <p>If this would be better to troubleshoot with Java, I can do that, but it seemed prudent to start with thunderbird.</p>
  
  <p>James shows the login attempts as:</p>
  
  <pre><code>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# 
  </code></pre>