The following code yields AuthenticationFailedException("You must use APOP to connect to this server"):
Thanks!
Here's the code and the debug
Properties properties = System.getProperties();
properties.setProperty("mail.pop3.apop.enable","true");
Session session = Session.getDefaultInstance(properties, null);
session.setDebug(true);
store = session.getStore("pop3");
store.connect(server, user, password);
//BEGIN DEBUG
DEBUG: setDebug: JavaMail version 1.3
DEBUG: getProvider() returning javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]
POP3: connecting to host "DONTPOST", port DONTPOST
S: +OK QPOP (version 2.53) at bolg starting. <DONTPOST.DONTPOST@DONTPOST>
C: USER mknight
S: -ERR You must use APOP to connect to this server
C: QUIT
S: +OK Pop server at DONTPOST signing off.
javax.mail.AuthenticationFailedException: You must use APOP to connect to this server
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:104)
at javax.mail.Service.connect(Service.java:233)
at javax.mail.Service.connect(Service.java:134)
at .........
//END DEBUG