Defects
Error "BAD User is authenticated" after trying to setup email authentication
ID: | D27846 | |
Published: | 15 June 2022 |
Defect Id
DEF346828
Originally Reported Against
SBM 11.8
Status
Submitted
Description
Steps to reproduce:
1) In Configurator, go to Mail Services > Notification Server.
2) Check the box for "Use Authentication".
3) Checking the box for "Use Authentication" will add three new rows to TS_SYSTEMSETTINGS:SMTPAuthUsername
SMTPAuthPassword
SMTPAuthMethod
4) If you change your mind and uncheck the box, the new rows will stay in the table. You can check the "Use Authentication" box again to remove the username and passwords, but there is no way to remove the SMTPAuthMethod value from the database.
ERROR 24-05-2022 10:08:05 [MailClient] -- Exception while processing mailbox recordersbm@o365.MyCompany.com: IX4 BAD User is authenticated but not connected.
javax.mail.MessagingException: IX4 BAD User is authenticated but not connected.;
nested exception is:
com.sun.mail.iap.BadCommandException: IX4 BAD User is authenticated but not connected.
at com.sun.mail.imap.IMAPFolder.logoutAndThrow(IMAPFolder.java:1180)
at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:1087)
at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:1001)
at com.serena.core.email.MailReceiveManagerImpl.fetchAndMoveMails(MailReceiveManagerImpl.java:116)
at com.serena.core.email.MailReceiveManagerImpl.processEmails(MailReceiveManagerImpl.java:80)
at com.serena.sbm.ns.service.MailReceiverImpl.processMail(MailReceiverImpl.java:143)
at com.serena.sbm.ns.process.MailNoteLoggerParserImpl.process(MailNoteLoggerParserImpl.java:422)
at com.serena.sbm.ns.process.MailNoteLoggerParserImpl.process(MailNoteLoggerParserImpl.java:373)
at com.serena.ns.core.job.NSProcessJob.execute(NSProcessJob.java:61)
at org.quartz.core.JobRunShell.run(JobRunShell.java:223)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: com.sun.mail.iap.BadCommandException: IX4 BAD User is authenticated but not connected.
at com.sun.mail.iap.Protocol.handleResult(Protocol.java:439)
at com.sun.mail.imap.protocol.IMAPProtocol.select(IMAPProtocol.java:1252)
at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:1058)
... 9 more
nested exception is:
com.sun.mail.iap.BadCommandException: IX4 BAD User is authenticated but not connected.
at com.sun.mail.imap.IMAPFolder.logoutAndThrow(IMAPFolder.java:1180)
at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:1087)
at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:1001)
at com.serena.core.email.MailReceiveManagerImpl.fetchAndMoveMails(MailReceiveManagerImpl.java:116)
at com.serena.core.email.MailReceiveManagerImpl.processEmails(MailReceiveManagerImpl.java:80)
at com.serena.sbm.ns.service.MailReceiverImpl.processMail(MailReceiverImpl.java:143)
at com.serena.sbm.ns.process.MailNoteLoggerParserImpl.process(MailNoteLoggerParserImpl.java:422)
at com.serena.sbm.ns.process.MailNoteLoggerParserImpl.process(MailNoteLoggerParserImpl.java:373)
at com.serena.ns.core.job.NSProcessJob.execute(NSProcessJob.java:61)
at org.quartz.core.JobRunShell.run(JobRunShell.java:223)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: com.sun.mail.iap.BadCommandException: IX4 BAD User is authenticated but not connected.
at com.sun.mail.iap.Protocol.handleResult(Protocol.java:439)
at com.sun.mail.imap.protocol.IMAPProtocol.select(IMAPProtocol.java:1252)
at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:1058)
... 9 more
Resolution
The only workaround is to manually remove these extra rows from the table.