Announcement

Collapse
No announcement yet.

AuthenticationFailedException

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    AuthenticationFailedException

    Axigen 10.2.1 , Windows 7.

    Java application try read messages from inbox .
    I get an error when connecting to store.
    javax.mail.AuthenticationFailedException: Unsupported authentication type
    code below:
    properties.put( "mail.smtp.auth", "false");
    properties.put( "mail.pop3.starttls.enable", false ) ;
    properties.put( "protocol" , "smtp") ;
    properties.put( "mail.pop3.host", host ) ;
    properties.put( "mail.pop3.port", sPort ) ;

    session = Session.getInstance
    store = session.getStore("pop3") ;
    store.connect(host, username, password) ;

    what's wrong ?
    Last edited by indreias; February 12th, 2019, 07:52 AM.

    #2
    Hello,

    Could you check if the same problems occurs if you enable StartTLS for POP3, like:
    Code:
    properties.put( "mail.pop3.starttls.enable", true ) ;
    By default, the non secure authentication options are disabled when the session is not encrypted (from begging or by using StartTLS).

    If your library is not capable of handling StartTLS or you have not configured your POP3 listener with a certificate than you could enable all login options for POP3 service like:

    WebAdmin > Services > POP3 > Encryption and Authentication > On UNSECURED connections allow authentication with > enable all login options

    HTH,
    Ioan

    Comment

    Working...
    X

    This is the legacy Axigen forum, which is no longer active.

    To create new topics & posts, please visit the new Axigen community.

    Axigen Community