<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-1749 Email polling error "Logon failure: unknown user name or bad password" when using Microsoft Exchange Server</title><link>https://community.appian.com/support/w/kb/1178/kb-1749-email-polling-error-logon-failure-unknown-user-name-or-bad-password-when-using-microsoft-exchange-server</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1749 Email polling error "Logon failure: unknown user name or bad password" when using Microsoft Exchange Server</title><link>https://community.appian.com/support/w/kb/1178/kb-1749-email-polling-error-logon-failure-unknown-user-name-or-bad-password-when-using-microsoft-exchange-server</link><pubDate>Mon, 15 Oct 2018 18:23:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:33e85fec-b882-47c7-9e1b-2f647dd02279</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1178/kb-1749-email-polling-error-logon-failure-unknown-user-name-or-bad-password-when-using-microsoft-exchange-server#comments</comments><description>Current Revision posted to Appian Knowledge Base by Parmida Borhani on 10/15/2018 6:23:34 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When using Appian &lt;a href="https://docs.appian.com/suite/help/latest/Mail_Server_Setup.html#configuring-appian-to-poll-an-email-account"&gt;email polling&lt;/a&gt; with Microsoft Exchange Server, &lt;strong&gt;mail-listener.log&lt;/strong&gt; shows the following error:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[ServerService Thread Pool -- 63] INFO com.appiancorp.process.emailpoller.EmailPoller - MA 1 endpointActivation success MailActivationSpec(storeProtocol=pop3, mailServer=servername, port=110, starttls=false, mailFolder=INBOX, userName=domainusername, password non-null, pollingInterval=30000, messageSelector=null, maxMessages=1, debug=true, partialFetch=true, forceImapLogin=false)&lt;/code&gt;&lt;br /&gt;&lt;code&gt;[Appian MailActivation - 1] ERROR com.appiancorp.process.emailpoller.MailActivation - An error occurred while attempting to open the mailbox to poll; no mail will be fetched. &lt;/code&gt;&lt;br /&gt;&lt;code&gt;javax.mail.AuthenticationFailedException: Logon failure: unknown user name or bad password.&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In addition to the above error message, it is confirmed that:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The email username specified with &lt;code&gt;conf.mailhandler.poller.EmailHandlerBean.userName&lt;/code&gt; in &lt;strong&gt;custom.properties&lt;/strong&gt; is the intended user.&lt;/li&gt;
&lt;li&gt;The associated password specified with &lt;code&gt;conf.password.EmailHandlerBean.EMAIL_HANDLER&lt;/code&gt; in &lt;strong&gt;password.properties&lt;/strong&gt; is correct.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;Microsoft Exchange Server email usernames are specified with the format &lt;code&gt;domain\username&lt;/code&gt;. However, the &lt;code&gt;\&lt;/code&gt;&amp;nbsp;symbol is a special character in the Simple Mail Transfer Protocol, and it is filtered out when interpreted by Appian in &lt;strong&gt;custom.properties&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;This causes the email &lt;code&gt;userName&lt;/code&gt; field with format &lt;code&gt;conf.mailhandler.poller.EmailHandlerBean.userName=domain\username&lt;/code&gt; to be interpreted as &lt;code&gt;domainusername&lt;/code&gt; by Appian. This can be seen in the above error message.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;When specifying the email &lt;code&gt;userName&lt;/code&gt; field with format &lt;code&gt;domain\username&lt;/code&gt;, the &lt;code&gt;\&lt;/code&gt; character needs to be escaped.&lt;/li&gt;
&lt;li&gt;The email &lt;code&gt;userName&lt;/code&gt; field should be changed to follow the below format:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;conf.mailhandler.poller.EmailHandlerBean.userName=domain\\username&lt;/pre&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian 18.2 and later using Microsoft Exchange Server.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1749 Email polling error "Logon failure: unknown user name or bad password" when using Microsoft Exchange Server</title><link>https://community.appian.com/support/w/kb/1178/kb-1749-email-polling-error-logon-failure-unknown-user-name-or-bad-password-when-using-microsoft-exchange-server/revision/6</link><pubDate>Mon, 15 Oct 2018 19:24:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:33e85fec-b882-47c7-9e1b-2f647dd02279</guid><dc:creator>Jordan Horwat</dc:creator><comments>https://community.appian.com/support/w/kb/1178/kb-1749-email-polling-error-logon-failure-unknown-user-name-or-bad-password-when-using-microsoft-exchange-server#comments</comments><description>Revision 6 posted to Appian Knowledge Base by Jordan Horwat on 10/15/2018 7:24:08 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When using Appian &lt;a href="https://docs.appian.com/suite/help/latest/Mail_Server_Setup.html#configuring-appian-to-poll-an-email-account"&gt;email polling&lt;/a&gt; with Microsoft Exchange Server, &lt;strong&gt;mail-lister.log&lt;/strong&gt; shows the following error:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[ServerService Thread Pool -- 63] INFO com.appiancorp.process.emailpoller.EmailPoller - MA 1 endpointActivation success MailActivationSpec(storeProtocol=pop3, mailServer=servername, port=110, starttls=false, mailFolder=INBOX, userName=domainusername, password non-null, pollingInterval=30000, messageSelector=null, maxMessages=1, debug=true, partialFetch=true, forceImapLogin=false)&lt;/code&gt;&lt;br /&gt;&lt;code&gt;[Appian MailActivation - 1] ERROR com.appiancorp.process.emailpoller.MailActivation - An error occurred while attempting to open the mailbox to poll; no mail will be fetched. &lt;/code&gt;&lt;br /&gt;&lt;code&gt;javax.mail.AuthenticationFailedException: Logon failure: unknown user name or bad password.&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In addition to the above error message, it is confirmed that:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The email username specified with &lt;code&gt;conf.mailhandler.poller.EmailHandlerBean.userName&lt;/code&gt; in &lt;strong&gt;custom.properties&lt;/strong&gt; is the intended user.&lt;/li&gt;
&lt;li&gt;The associated password specified with &lt;code&gt;conf.password.EmailHandlerBean.EMAIL_HANDLER&lt;/code&gt; in &lt;strong&gt;password.properties&lt;/strong&gt; is correct.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;Microsoft Exchange Server email usernames are specified with the format &lt;code&gt;domain\username&lt;/code&gt;. However, the &lt;code&gt;\&lt;/code&gt;&amp;nbsp;symbol is a special character in the Simple Mail Transfer Protocol, and it is filtered out when interpreted by Appian in &lt;strong&gt;custom.properties&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;This causes the email &lt;code&gt;userName&lt;/code&gt; field with format &lt;code&gt;conf.mailhandler.poller.EmailHandlerBean.userName=domain\username&lt;/code&gt; to be interpreted as &lt;code&gt;domainusername&lt;/code&gt; by Appian. This can be seen in the above error message.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;When specifying the email &lt;code&gt;userName&lt;/code&gt; field with format &lt;code&gt;domain\username&lt;/code&gt;, the &lt;code&gt;\&lt;/code&gt; character needs to be escaped.&lt;/li&gt;
&lt;li&gt;The email &lt;code&gt;userName&lt;/code&gt; field should be changed to follow the below format:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;conf.mailhandler.poller.EmailHandlerBean.userName=domain\\username&lt;/pre&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian 18.2 and later using Microsoft Exchange Server&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Email Polling Error "Logon failure: unknown user name or bad password" when using Microsoft Exchange Server</title><link>https://community.appian.com/support/w/kb/1178/kb-1749-email-polling-error-logon-failure-unknown-user-name-or-bad-password-when-using-microsoft-exchange-server/revision/5</link><pubDate>Mon, 15 Oct 2018 14:29:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:33e85fec-b882-47c7-9e1b-2f647dd02279</guid><dc:creator>Jordan Horwat</dc:creator><comments>https://community.appian.com/support/w/kb/1178/kb-1749-email-polling-error-logon-failure-unknown-user-name-or-bad-password-when-using-microsoft-exchange-server#comments</comments><description>Revision 5 posted to Appian Knowledge Base by Jordan Horwat on 10/15/2018 2:29:57 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When using Appian &lt;a href="https://docs.appian.com/suite/help/latest/Mail_Server_Setup.html#configuring-appian-to-poll-an-email-account"&gt;email polling&lt;/a&gt; with Microsoft Exchange Server, &lt;strong&gt;mail-lister.log&lt;/strong&gt; shows the following error:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[ServerService Thread Pool -- 63] INFO com.appiancorp.process.emailpoller.EmailPoller - MA 1 endpointActivation success MailActivationSpec(storeProtocol=pop3, mailServer=servername, port=110, starttls=false, mailFolder=INBOX, userName=domainusername, password non-null, pollingInterval=30000, messageSelector=null, maxMessages=1, debug=true, partialFetch=true, forceImapLogin=false)&lt;/code&gt;&lt;br /&gt;&lt;code&gt;[Appian MailActivation - 1] ERROR com.appiancorp.process.emailpoller.MailActivation - An error occurred while attempting to open the mailbox to poll; no mail will be fetched. &lt;/code&gt;&lt;br /&gt;&lt;code&gt;javax.mail.AuthenticationFailedException: Logon failure: unknown user name or bad password.&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In addition to the above error message, it is confirmed that:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The email username specified with &lt;code&gt;conf.mailhandler.poller.EmailHandlerBean.userName&lt;/code&gt; in &lt;strong&gt;custom.properties&lt;/strong&gt; is the intended user.&lt;/li&gt;
&lt;li&gt;The associated password specified with &lt;code&gt;conf.password.EmailHandlerBean.EMAIL_HANDLER&lt;/code&gt; in &lt;strong&gt;password.properties&lt;/strong&gt; is correct.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;Microsoft Exchange Server email usernames are specified with the format &lt;code&gt;domain\username&lt;/code&gt;. However, the &lt;code&gt;\&lt;/code&gt;&amp;nbsp;symbol is a special character in the Simple Mail Transfer Protocol, and it is filtered out when interpreted by Appian in &lt;strong&gt;custom.properties&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;This causes the email &lt;code&gt;userName&lt;/code&gt; field with format &lt;code&gt;conf.mailhandler.poller.EmailHandlerBean.userName=domain\username&lt;/code&gt; to be interpreted as &lt;code&gt;domainusername&lt;/code&gt; by Appian. This can be seen in the above error message.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;When specifying the email &lt;code&gt;userName&lt;/code&gt; field with format &lt;code&gt;domain\username&lt;/code&gt;, the &lt;code&gt;\&lt;/code&gt; character needs to be escaped.&lt;/li&gt;
&lt;li&gt;The email &lt;code&gt;userName&lt;/code&gt; field should be changed to follow the below format:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;conf.mailhandler.poller.EmailHandlerBean.userName=domain\\username&lt;/pre&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian 18.2 and later using Microsoft Exchange Server&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Email Polling Error "Logon failure: unknown user name or bad password" when using Microsoft Exchange Server</title><link>https://community.appian.com/support/w/kb/1178/kb-1749-email-polling-error-logon-failure-unknown-user-name-or-bad-password-when-using-microsoft-exchange-server/revision/4</link><pubDate>Mon, 15 Oct 2018 14:29:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:33e85fec-b882-47c7-9e1b-2f647dd02279</guid><dc:creator>Jordan Horwat</dc:creator><comments>https://community.appian.com/support/w/kb/1178/kb-1749-email-polling-error-logon-failure-unknown-user-name-or-bad-password-when-using-microsoft-exchange-server#comments</comments><description>Revision 4 posted to Appian Knowledge Base by Jordan Horwat on 10/15/2018 2:29:01 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When using Appian &lt;a href="https://docs.appian.com/suite/help/latest/Mail_Server_Setup.html#configuring-appian-to-poll-an-email-account"&gt;email polling&lt;/a&gt; with Microsoft Exchange Server, &lt;strong&gt;mail-lister.log&lt;/strong&gt; shows the following error:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[ServerService Thread Pool -- 63] INFO com.appiancorp.process.emailpoller.EmailPoller - MA 1 endpointActivation success MailActivationSpec(storeProtocol=pop3, mailServer=servername, port=110, starttls=false, mailFolder=INBOX, userName=domainusername, password non-null, pollingInterval=30000, messageSelector=null, maxMessages=1, debug=true, partialFetch=true, forceImapLogin=false)&lt;/code&gt;&lt;br /&gt;&lt;code&gt;[Appian MailActivation - 1] ERROR com.appiancorp.process.emailpoller.MailActivation - An error occurred while attempting to open the mailbox to poll; no mail will be fetched. &lt;/code&gt;&lt;br /&gt;&lt;code&gt;javax.mail.AuthenticationFailedException: Logon failure: unknown user name or bad password.&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The email username specified with &lt;code&gt;conf.mailhandler.poller.EmailHandlerBean.userName&lt;/code&gt; in &lt;strong&gt;custom.properties&lt;/strong&gt; is the intended user.&lt;br /&gt;The associated password specified with &lt;code&gt;conf.password.EmailHandlerBean.EMAIL_HANDLER&lt;/code&gt; in &lt;strong&gt;password.properties&lt;/strong&gt; is correct.&lt;/p&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;Microsoft Exchange Server email usernames are specified with the format &lt;code&gt;domain\username&lt;/code&gt;. However, the &lt;code&gt;\&lt;/code&gt;&amp;nbsp;symbol is a special character in the Simple Mail Transfer Protocol, and it is filtered out when interpreted by Appian in &lt;strong&gt;custom.properties&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;This causes the email &lt;code&gt;userName&lt;/code&gt; field with format &lt;code&gt;conf.mailhandler.poller.EmailHandlerBean.userName=domain\username&lt;/code&gt; to be interpreted as &lt;code&gt;domainusername&lt;/code&gt; by Appian. This can be seen in the above error message.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;When specifying the email &lt;code&gt;userName&lt;/code&gt; field with format &lt;code&gt;domain\username&lt;/code&gt;, the &lt;code&gt;\&lt;/code&gt; character needs to be escaped.&lt;/li&gt;
&lt;li&gt;The email &lt;code&gt;userName&lt;/code&gt; field should be changed to follow the below format:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;conf.mailhandler.poller.EmailHandlerBean.userName=domain\\username&lt;/pre&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian 18.2 and later using Microsoft Exchange Server&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Email Polling Error "Logon failure: unknown user name or bad password" when using Microsoft Exchange Server</title><link>https://community.appian.com/support/w/kb/1178/kb-1749-email-polling-error-logon-failure-unknown-user-name-or-bad-password-when-using-microsoft-exchange-server/revision/1</link><pubDate>Mon, 15 Oct 2018 13:32:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:33e85fec-b882-47c7-9e1b-2f647dd02279</guid><dc:creator>Zach Puderbach</dc:creator><comments>https://community.appian.com/support/w/kb/1178/kb-1749-email-polling-error-logon-failure-unknown-user-name-or-bad-password-when-using-microsoft-exchange-server#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Zach Puderbach on 10/15/2018 1:32:27 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When using Microsoft Exchange Server with Appian Email Polling, Mail-lister.log shows the following error:&lt;/p&gt;
&lt;p&gt;[ServerService Thread Pool -- 63] INFO com.appiancorp.process.emailpoller.EmailPoller - MA 1 endpointActivation success MailActivationSpec(storeProtocol=pop3, mailServer=servername, port=110, starttls=false, mailFolder=INBOX, userName=domainusername, password non-null, pollingInterval=30000, messageSelector=null, maxMessages=1, debug=true, partialFetch=true, forceImapLogin=false)&lt;br /&gt;[Appian MailActivation - 1] ERROR com.appiancorp.process.emailpoller.MailActivation - An error occurred while attempting to open the mailbox to poll; no mail will be fetched. &lt;br /&gt;javax.mail.AuthenticationFailedException: Logon failure: unknown user name or bad password.&lt;/p&gt;
&lt;p&gt;The email username specified with &amp;#39;conf.mailhandler.poller.EmailHandlerBean.userName&amp;#39; in custom.properties is the intended user.&lt;br /&gt;The associated password with &amp;#39;conf.password.EmailHandlerBean.EMAIL_HANDLER&amp;#39; in password.properties is correct.&lt;/p&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;Microsoft Exchange Server email usernames are specified with the format &amp;#39;domain\username&amp;#39;. However, the &amp;#39;\&amp;#39; is a special character in email addresses, and filtered out when interpreted by Appian in custom.properties.&lt;/p&gt;
&lt;p&gt;This causes the email userName field with format &amp;#39;conf.mailhandler.poller.EmailHandlerBean.userName=domain\username&amp;#39; to be interpreted as &amp;#39;domainusername&amp;#39; by Appian. This can be seen in the above error message.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;When specifying the email userName field with format &amp;#39;domain\username&amp;#39;, the &amp;#39;\&amp;#39; character needs to be escaped.&lt;/p&gt;
&lt;p&gt;The email userName field should be changed to follow the below format:&lt;br /&gt;conf.mailhandler.poller.EmailHandlerBean.userName=domain\\username&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian 18.2 and later using Microsoft Exchange Server&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Email Polling Error "Logon failure: unknown user name or bad password" when using Microsoft Exchange Server</title><link>https://community.appian.com/support/w/kb/1178/kb-1749-email-polling-error-logon-failure-unknown-user-name-or-bad-password-when-using-microsoft-exchange-server/revision/3</link><pubDate>Mon, 15 Oct 2018 09:46:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:33e85fec-b882-47c7-9e1b-2f647dd02279</guid><dc:creator>Zach Puderbach</dc:creator><comments>https://community.appian.com/support/w/kb/1178/kb-1749-email-polling-error-logon-failure-unknown-user-name-or-bad-password-when-using-microsoft-exchange-server#comments</comments><description>Revision 3 posted to Appian Knowledge Base by Zach Puderbach on 10/15/2018 9:46:50 AM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When using Appian Email Polling with Microsoft Exchange Server, &lt;strong&gt;mail-lister.log&lt;/strong&gt; shows the following error:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[ServerService Thread Pool -- 63] INFO com.appiancorp.process.emailpoller.EmailPoller - MA 1 endpointActivation success MailActivationSpec(storeProtocol=pop3, mailServer=servername, port=110, starttls=false, mailFolder=INBOX, userName=domainusername, password non-null, pollingInterval=30000, messageSelector=null, maxMessages=1, debug=true, partialFetch=true, forceImapLogin=false)&lt;/code&gt;&lt;br /&gt;&lt;code&gt;[Appian MailActivation - 1] ERROR com.appiancorp.process.emailpoller.MailActivation - An error occurred while attempting to open the mailbox to poll; no mail will be fetched. &lt;/code&gt;&lt;br /&gt;&lt;code&gt;javax.mail.AuthenticationFailedException: Logon failure: unknown user name or bad password.&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The email username specified with &lt;code&gt;conf.mailhandler.poller.EmailHandlerBean.userName&lt;/code&gt; in &lt;strong&gt;custom.properties&lt;/strong&gt; is the intended user.&lt;br /&gt;The associated password specified with &lt;code&gt;conf.password.EmailHandlerBean.EMAIL_HANDLER&lt;/code&gt; in &lt;strong&gt;password.properties&lt;/strong&gt; is correct.&lt;/p&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;Microsoft Exchange Server email usernames are specified with the format &lt;code&gt;domain\username&lt;/code&gt;. However, the &lt;code&gt;\&lt;/code&gt; is a special character in the Simple Mail Transfer Protocol, and filtered out when interpreted by Appian in &lt;strong&gt;custom.properties&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;This causes the email userName field with format &lt;code&gt;conf.mailhandler.poller.EmailHandlerBean.userName=domain\username&lt;/code&gt; to be interpreted as &lt;code&gt;domainusername&lt;/code&gt; by Appian. This can be seen in the above error message.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;When specifying the email userName field with format &lt;code&gt;domain\username&lt;/code&gt;, the &lt;code&gt;\&lt;/code&gt; character needs to be escaped.&lt;/p&gt;
&lt;p&gt;The email userName field should be changed to follow the below format:&amp;nbsp;&lt;code&gt;conf.mailhandler.poller.EmailHandlerBean.userName=domain\\username&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian 18.2 and later using Microsoft Exchange Server&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Email Polling Error "Logon failure: unknown user name or bad password" when using Microsoft Exchange Server</title><link>https://community.appian.com/support/w/kb/1178/kb-1749-email-polling-error-logon-failure-unknown-user-name-or-bad-password-when-using-microsoft-exchange-server/revision/2</link><pubDate>Mon, 15 Oct 2018 09:37:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:33e85fec-b882-47c7-9e1b-2f647dd02279</guid><dc:creator>Zach Puderbach</dc:creator><comments>https://community.appian.com/support/w/kb/1178/kb-1749-email-polling-error-logon-failure-unknown-user-name-or-bad-password-when-using-microsoft-exchange-server#comments</comments><description>Revision 2 posted to Appian Knowledge Base by Zach Puderbach on 10/15/2018 9:37:17 AM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When using Microsoft Exchange Server with Appian Email Polling, &lt;strong&gt;mail-lister.log&lt;/strong&gt; shows the following error:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[ServerService Thread Pool -- 63] INFO com.appiancorp.process.emailpoller.EmailPoller - MA 1 endpointActivation success MailActivationSpec(storeProtocol=pop3, mailServer=servername, port=110, starttls=false, mailFolder=INBOX, userName=domainusername, password non-null, pollingInterval=30000, messageSelector=null, maxMessages=1, debug=true, partialFetch=true, forceImapLogin=false)&lt;/code&gt;&lt;br /&gt;&lt;code&gt;[Appian MailActivation - 1] ERROR com.appiancorp.process.emailpoller.MailActivation - An error occurred while attempting to open the mailbox to poll; no mail will be fetched. &lt;/code&gt;&lt;br /&gt;&lt;code&gt;javax.mail.AuthenticationFailedException: Logon failure: unknown user name or bad password.&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The email username specified with &lt;code&gt;conf.mailhandler.poller.EmailHandlerBean.userName&lt;/code&gt; in &lt;strong&gt;custom.properties&lt;/strong&gt; is the intended user.&lt;br /&gt;The associated password with &lt;code&gt;conf.password.EmailHandlerBean.EMAIL_HANDLER&lt;/code&gt; in &lt;strong&gt;password.properties&lt;/strong&gt; is correct.&lt;/p&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;Microsoft Exchange Server email usernames are specified with the format &lt;code&gt;domain\username&lt;/code&gt;. However, the &lt;code&gt;\&lt;/code&gt; is a special character in email addresses, and filtered out when interpreted by Appian in &lt;strong&gt;custom.properties&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;This causes the email userName field with format &lt;code&gt;conf.mailhandler.poller.EmailHandlerBean.userName=domain\username&lt;/code&gt; to be interpreted as &lt;code&gt;domainusername&lt;/code&gt; by Appian. This can be seen in the above error message.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;When specifying the email userName field with format &lt;code&gt;domain\username&lt;/code&gt;, the &lt;code&gt;\&lt;/code&gt; character needs to be escaped.&lt;/p&gt;
&lt;p&gt;The email userName field should be changed to follow the below format:&amp;nbsp;&lt;code&gt;conf.mailhandler.poller.EmailHandlerBean.userName=domain\\username&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian 18.2 and later using Microsoft Exchange Server&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, infrastructure&lt;/div&gt;
</description></item></channel></rss>