Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

You must use APOP to connect to this server

843830Feb 9 2005 — edited May 11 2005
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 8 2005
Added on Feb 9 2005
2 comments
134 views