KB-1173 "An error occurred while attempting to open the mailbox to poll; no mail will be fetched... No login methods supported!" error shown in the mail-listener.log

Symptoms

Email poller stops working. The mail-listener.log shows the following:

[Appian MailActivation - 1] ERROR com.appiancorp.ra.emailpoller.MailActivation - An error occurred while attempting to open the mailbox to poll; no mail will be fetched.  
javax.mail.MessagingException: No login methods supported!;
  nested exception is:
    com.sun.mail.iap.ProtocolException: No login methods supported!
    at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:668)
    ...
Caused by: com.sun.mail.iap.ProtocolException: No login methods supported!
    at com.sun.mail.imap.IMAPStore.login(IMAPStore.java:730)
    at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:648)
    ... 10 more

Mail logging can be set to debug by modifying ejb-jar.xml located in <APPIAN_HOME>/ear/suite.ear/email-handler.jar/META-INF:

  1. Add this activation property inside the main <activation-config>:
    <activation-config-property>
        <activation-config-property-name>debug</activation-config-property-name>
        <activation-config-property-value>true</activation-config-property-value>
    </activation-config-property>
    
  2. Restart the application server

Then, the following message is displayed in the application server log:

(Appian MailActivation - 1) DEBUG: trying to connect to host "imap.company.com", port 143, isSSL false 21:25:26,247 INFO [stdout] \(Appian MailActivation - 1) * OK The Microsoft Exchange IMAP4 service is ready. 
(Appian MailActivation - 1) A0 CAPABILITY 21:25:26,248 INFO [stdout] \(Appian MailActivation - 1) * CAPABILITY IMAP4 IMAP4rev1 LOGINDISABLED UIDPLUS CHILDREN IDLE NAMESPACE LITERAL+ 
(Appian MailActivation - 1) A0 OK CAPABILITY completed.

Cause

One of the causes for this issue is misconfiguration of the TLS option on the mail server side.

Action

Because this is an issue with the mail server, please check with the Mail Server administrators to troubleshoot this issue further.

Affected Versions

This article applies to all versions of Appian.

Last Reviewed: March 2017

Related
Recommended