<?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-1293 How to troubleshoot issues with emails not triggering processes in Appian</title><link>https://community.appian.com/support/w/kb/501/kb-1293-how-to-troubleshoot-issues-with-emails-not-triggering-processes-in-appian</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1293 How to troubleshoot issues with emails not triggering processes in Appian</title><link>https://community.appian.com/support/w/kb/501/kb-1293-how-to-troubleshoot-issues-with-emails-not-triggering-processes-in-appian</link><pubDate>Fri, 11 Aug 2023 19:24:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:899122a3-5d22-473c-83e1-af611d90ce34</guid><dc:creator>Elly Meng</dc:creator><comments>https://community.appian.com/support/w/kb/501/kb-1293-how-to-troubleshoot-issues-with-emails-not-triggering-processes-in-appian#comments</comments><description>Current Revision posted to Appian Knowledge Base by Elly Meng on 8/11/2023 7:24:10 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article details some common scenarios where emails fail to trigger processes in Appian. There are multiple causes for this issue and the article discusses the most common causes.&lt;/p&gt;
&lt;p&gt;The article assumes that the necessary configuration to poll email servers is already in place. Review the &lt;a href="https://docs.appian.com/suite/help/latest/Sending_an_Email_Message_to_a_Process.html" rel="noopener noreferrer" target="_blank"&gt;Sending an Email Message to a Process&lt;/a&gt; documentation for details on how to send an email to a process in Appian.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3 id="1-connection-issue-between-appian-servers-and-the-email-server"&gt;1. Connection issue between Appian Servers and the Email Server&lt;/h3&gt;
&lt;p&gt;The most common cause of emails not triggering processes in Appian is no network communication between Appian and the email server it is supposed to poll.&lt;/p&gt;
&lt;p&gt;A common way to troubleshoot is by running a &amp;quot;telnet&amp;quot; from the Appian servers and see if you can connect to the email server. &lt;strong&gt;Note:&lt;/strong&gt; In Windows, telnet needs to be enabled by following &lt;a href="http://social.technet.microsoft.com/wiki/contents/articles/910.windows-7-enabling-telnet-client.aspx"&gt;these steps&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id="2-check-for-errors-in-the-mail-listener-log"&gt;2. Check for errors in the mail-listener.log&lt;/h3&gt;
&lt;p&gt;If you are able to telnet as expected following step 1, you can check the &lt;strong&gt;mail-listener.log&lt;/strong&gt; present in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&lt;/code&gt; directory to see if there are any error messages present in this file. This log is a good starting point to see if the application server is polling the mail server as expected but is not able to fetch the emails.&lt;/p&gt;
&lt;p&gt;For example, you might see something like the following error, which indicates there could be something at the network layer preventing Appian from connecting to the mailbox:&lt;/p&gt;
&lt;pre&gt;[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: connect timed out;
  nested exception is:
        java.net.SocketTimeoutException: connect timed out
     .
     .
     .
     Caused by: java.net.SocketTimeoutException: connect timed out
&lt;/pre&gt;
&lt;h3 id="3-add-debug-logging-via-the-ejb-jar-xml"&gt;3. Add DEBUG logging&lt;/h3&gt;
&lt;p&gt;If there are no errors in the &lt;strong&gt;mail-listener.log&lt;/strong&gt;, add DEBUG logging to get insight on exactly what is happening when the application server polls the mail server.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;DEBUG logging prints out every detail from the handshake between the application server and the mail server,&amp;nbsp;including the number of new messages the application server found from the last time it polled the mailbox, the recipients of the email, the body, etc. Depending on the use case, these DEBUG messages can be helpful.&amp;nbsp;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;Since this output includes the contents of emails, it may contain sensitive information.&lt;/p&gt;
&lt;h4&gt;18.2 and later&lt;/h4&gt;
&lt;p&gt;To add DEBUG logging, the following line must be added or uncommented in &lt;strong&gt;custom.properties&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;conf.mailhandler.poller.EmailHandlerBean.debug=true&lt;/code&gt;&lt;/p&gt;
&lt;h4&gt;18.1 and earlier&lt;/h4&gt;
&lt;p&gt;In between the &lt;code&gt;&amp;lt;activation-config&amp;gt;&lt;/code&gt; tags in the &lt;strong&gt;ejb-jar.xml&lt;/strong&gt; file (located in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/email-handler.jar/META-INF&lt;/code&gt;), for the mailbox&amp;nbsp;that is having issues, add the following tags:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;activation-config-property&amp;gt;
        &amp;lt;activation-config-property-name&amp;gt;debug&amp;lt;/activation-config-property-name&amp;gt;
        &amp;lt;activation-config-property-value&amp;gt;true&amp;lt;/activation-config-property-value&amp;gt;
&amp;lt;/activation-config-property&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="4-add-debug-logging-to-print-engine-activity"&gt;4. Add DEBUG logging to print engine activity&lt;/h3&gt;
&lt;p&gt;Step 3 covers the handshake between the application server and the mail server. After the application server picks up the email, it has to route the message to the right process/process model. At this point, the application server needs to interact with the Appian engines. In the event you don&amp;#39;t see any errors after step 3 and processes are still not launched in Appian, you can perform the steps below to get an insight on the engine activity:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Navigate to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/resources&lt;/code&gt; and edit &lt;strong&gt;appian_log4j.properties&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add the following three lines at the end of the file. If the lines are already present, uncomment them:&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;log4j.logger.com.appiancorp.messaging.MessagePublisherServiceImpl=DEBUG&lt;br /&gt;log4j.logger.com.appiancorp.process.execution.service.ProcessExecutionServiceFacade=DEBUG&lt;br /&gt;log4j.logger.com.appiancorp.mdb.EmailHandlerBean=DEBUG&lt;/pre&gt;
&lt;p&gt;In an ideal scenario, you would see messages like the following being printed in the application-server.log where you see the email is being correctly routed to the Execution and the Design engines:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - publishing 1 message(s) to Process Execution
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - published 1 message(s) to Process Execution
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - publishing 1 message(s) to Process Design
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - published 1 message(s) to Process Design
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: &lt;span&gt;January 2021&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, how-to, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1293 How to troubleshoot issues with emails not triggering processes in Appian</title><link>https://community.appian.com/support/w/kb/501/kb-1293-how-to-troubleshoot-issues-with-emails-not-triggering-processes-in-appian/revision/7</link><pubDate>Wed, 10 Feb 2021 21:44:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:899122a3-5d22-473c-83e1-af611d90ce34</guid><dc:creator>Nicholas Van Dyke</dc:creator><comments>https://community.appian.com/support/w/kb/501/kb-1293-how-to-troubleshoot-issues-with-emails-not-triggering-processes-in-appian#comments</comments><description>Revision 7 posted to Appian Knowledge Base by Nicholas Van Dyke on 2/10/2021 9:44:15 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article details some common scenarios where emails fail to trigger processes in Appian. There are multiple causes for this issue and the article discusses the most common causes.&lt;/p&gt;
&lt;p&gt;The article assumes that the necessary configuration to poll email servers is already in place. Review the &lt;a href="https://docs.appian.com/suite/help/latest/Sending_an_Email_Message_to_a_Process.html" rel="noopener noreferrer" target="_blank"&gt;Sending an Email Message to a Process&lt;/a&gt; documentation for details on how to send an email to a process in Appian.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3 id="1-connection-issue-between-appian-servers-and-the-email-server"&gt;1. Connection issue between Appian Servers and the Email Server&lt;/h3&gt;
&lt;p&gt;The most common cause of emails not triggering processes in Appian is no network communication between Appian and the email server it is supposed to poll.&lt;/p&gt;
&lt;p&gt;A common way to troubleshoot is by running a &amp;quot;telnet&amp;quot; from the Appian servers and see if you can connect to the email server. &lt;strong&gt;Note:&lt;/strong&gt; In Windows, telnet needs to be enabled by following &lt;a href="http://social.technet.microsoft.com/wiki/contents/articles/910.windows-7-enabling-telnet-client.aspx"&gt;these steps&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id="2-check-for-errors-in-the-mail-listener-log"&gt;2. Check for errors in the mail-listener.log&lt;/h3&gt;
&lt;p&gt;If you are able to telnet as expected following step 1, you can check the &lt;strong&gt;mail-listener.log&lt;/strong&gt; present in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&lt;/code&gt; directory to see if there are any error messages present in this file. This log is a good starting point to see if the application server is polling the mail server as expected but is not able to fetch the emails.&lt;/p&gt;
&lt;p&gt;For example, you might see something like the following error, which indicates there could be something at the network layer preventing Appian from connecting to the mailbox:&lt;/p&gt;
&lt;pre&gt;[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: connect timed out;
  nested exception is:
        java.net.SocketTimeoutException: connect timed out
     .
     .
     .
     Caused by: java.net.SocketTimeoutException: connect timed out
&lt;/pre&gt;
&lt;h3 id="3-add-debug-logging-via-the-ejb-jar-xml"&gt;3. Add DEBUG logging&lt;/h3&gt;
&lt;p&gt;If there are no errors in the &lt;strong&gt;mail-listener.log&lt;/strong&gt;, add DEBUG logging to get insight on exactly what is happening when the application server polls the mail server.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;DEBUG logging prints out every detail from the handshake between the application server and the mail server,&amp;nbsp;including the number of new messages the application server found from the last time it polled the mailbox, the recipients of the email, the body, etc. Depending on the use case, these DEBUG messages can be helpful.&amp;nbsp;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;Since this output includes the contents of emails, it may contain sensitive information.&lt;/p&gt;
&lt;h4&gt;18.2 and later&lt;/h4&gt;
&lt;p&gt;To add DEBUG logging, the following line must be added or uncommented in &lt;strong&gt;custom.properties&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;conf.mailhandler.poller.EmailHandlerBean.debug=true&lt;/code&gt;&lt;/p&gt;
&lt;h4&gt;18.1 and earlier&lt;/h4&gt;
&lt;p&gt;In between the &lt;code&gt;&amp;lt;activation-config&amp;gt;&lt;/code&gt; tags in the &lt;strong&gt;ejb-jar.xml&lt;/strong&gt; file (located in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/email-handler.jar/META-INF&lt;/code&gt;), for the mailbox&amp;nbsp;that is having issues, add the following tags:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;activation-config-property&amp;gt;
        &amp;lt;activation-config-property-name&amp;gt;debug&amp;lt;/activation-config-property-name&amp;gt;
        &amp;lt;activation-config-property-value&amp;gt;true&amp;lt;/activation-config-property-value&amp;gt;
&amp;lt;/activation-config-property&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="4-add-debug-logging-to-print-engine-activity"&gt;4. Add DEBUG logging to print engine activity&lt;/h3&gt;
&lt;p&gt;Step 3 covers the handshake between the application server and the mail server. After the application server picks up the email, it has to route the message to the right process/process model. At this point, the application server needs to interact with the Appian engines. In the event you don&amp;#39;t see any errors after step 3 and processes are still not launched in Appian, you can perform the steps below to get an insight on the engine activity:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Navigate to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/resources&lt;/code&gt; and edit &lt;strong&gt;appian_log4j.properties&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add the following three lines at the end of the file. If the lines are already present, uncomment them:&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;log4j.logger.com.appiancorp.messaging.MessagePublisherServiceImpl=DEBUG&lt;br /&gt;log4j.logger.com.appiancorp.process.execution.service.ProcessExecutionServiceFacade=DEBUG&lt;br /&gt;log4j.logger.com.appiancorp.mdb.EmailHandlerBean=DEBUG&lt;/pre&gt;
&lt;p&gt;In an ideal scenario, you would see messages like the following being printed in the application-server.log where you see the email is being correctly routed to the Execution and the Design engines:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - publishing 1 message(s) to Process Execution
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - published 1 message(s) to Process Execution
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - publishing 1 message(s) to Process Design
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - published 1 message(s) to Process Design
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: &lt;span&gt;January 2021&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, how-to, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1293 How to troubleshoot issues with emails not triggering processes in Appian</title><link>https://community.appian.com/support/w/kb/501/kb-1293-how-to-troubleshoot-issues-with-emails-not-triggering-processes-in-appian/revision/6</link><pubDate>Mon, 15 Oct 2018 19:43:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:899122a3-5d22-473c-83e1-af611d90ce34</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/501/kb-1293-how-to-troubleshoot-issues-with-emails-not-triggering-processes-in-appian#comments</comments><description>Revision 6 posted to Appian Knowledge Base by Parmida Borhani on 10/15/2018 7:43:46 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article details some common scenarios where emails fail to trigger processes in Appian. There are multiple causes for this issue and the article discusses the most common causes.&lt;/p&gt;
&lt;p&gt;The article assumes that the necessary configuration to poll email servers is already in place. Review the &lt;a href="https://docs.appian.com/suite/help/latest/Sending_an_Email_Message_to_a_Process.html" target="_blank"&gt;Sending an Email Message to a Process&lt;/a&gt; documentation for details on how to send an email to a process in Appian.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3 id="1-connection-issue-between-appian-servers-and-the-email-server"&gt;1. Connection issue between Appian Servers and the Email Server&lt;/h3&gt;
&lt;p&gt;The most common cause of emails not triggering processes in Appian is no network communication between Appian and the email server it is supposed to poll.&lt;/p&gt;
&lt;p&gt;A common way to troubleshoot is by running a &amp;quot;telnet&amp;quot; from the Appian servers and see if you can connect to the email server. &lt;strong&gt;Note:&lt;/strong&gt; In Windows, telnet needs to be enabled by following &lt;a href="http://social.technet.microsoft.com/wiki/contents/articles/910.windows-7-enabling-telnet-client.aspx"&gt;these steps&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id="2-check-for-errors-in-the-mail-listener-log"&gt;2. Check for errors in the mail-listener.log&lt;/h3&gt;
&lt;p&gt;If you are able to telnet as expected following step 1, you can check the &lt;strong&gt;mail-listener.log&lt;/strong&gt; present in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&lt;/code&gt; directory to see if there are any error messages present in this file. This log is a good starting point to see if the application server is polling the mail server as expected but is not able to fetch the emails.&lt;/p&gt;
&lt;p&gt;For example, you might see something like the following error, which indicates there could be something at the network layer preventing Appian from connecting to the mailbox:&lt;/p&gt;
&lt;pre&gt;[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: connect timed out;
  nested exception is:
        java.net.SocketTimeoutException: connect timed out
     .
     .
     .
     Caused by: java.net.SocketTimeoutException: connect timed out
&lt;/pre&gt;
&lt;h3 id="3-add-debug-logging-via-the-ejb-jar-xml"&gt;3. Add DEBUG logging&lt;/h3&gt;
&lt;p&gt;If there are no errors in the &lt;strong&gt;mail-listener.log&lt;/strong&gt;, add DEBUG logging to get insight on exactly what is happening when the application server polls the mail server.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;DEBUG logging prints out every detail from the handshake between the application server and the mail server,&amp;nbsp;including the number of new messages the application server found from the last time it polled the mailbox, the recipients of the email, the body, etc. Depending on the use case, these DEBUG messages can be helpful.&amp;nbsp;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;Since this output includes the contents of emails, it may contain sensitive information.&lt;/p&gt;
&lt;h4&gt;18.2 and later&lt;/h4&gt;
&lt;p&gt;To add DEBUG logging, the following line must be added or uncommented in &lt;strong&gt;custom.properties&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;conf.mailhandler.poller.EmailHandlerBean.debug=true&lt;/code&gt;&lt;/p&gt;
&lt;h4&gt;18.1 and earlier&lt;/h4&gt;
&lt;p&gt;In between the &lt;code&gt;&amp;lt;activation-config&amp;gt;&lt;/code&gt; tags in the &lt;strong&gt;ejb-jar.xml&lt;/strong&gt; file (located in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/email-handler.jar/META-INF&lt;/code&gt;), for the mailbox&amp;nbsp;that is having issues, add the following tags:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;activation-config-property&amp;gt;
        &amp;lt;activation-config-property-name&amp;gt;debug&amp;lt;/activation-config-property-name&amp;gt;
        &amp;lt;activation-config-property-value&amp;gt;true&amp;lt;/activation-config-property-value&amp;gt;
&amp;lt;/activation-config-property&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="4-add-debug-logging-to-print-engine-activity"&gt;4. Add DEBUG logging to print engine activity&lt;/h3&gt;
&lt;p&gt;Step 3 covers the handshake between the application server and the mail server. After the application server picks up the email, it has to route the message to the right process/process model. At this point, the application server needs to interact with the Appian engines. In the event you don&amp;#39;t see any errors after step 3 and processes are still not launched in Appian, you can perform the steps below to get an insight on the engine activity:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Navigate to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/resources&lt;/code&gt; and edit &lt;strong&gt;appian_log4j.properties&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add the following three lines at the end of the file. If the lines are already present, uncomment them:&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;log4j.logger.com.appiancorp.messaging.MessagePublisherServiceImpl=DEBUG&lt;br /&gt;log4j.logger.com.appiancorp.process.execution.service.ProcessExecutionServiceFacade=DEBUG&lt;br /&gt;log4j.logger.com.appiancorp.mdb.EmailHandlerBean=DEBUG&lt;/pre&gt;
&lt;p&gt;In an ideal scenario, you would see messages like the following being printed in the application-server.log where you see the email is being correctly routed to the Execution and the Design engines:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - publishing 1 message(s) to Process Execution
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - published 1 message(s) to Process Execution
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - publishing 1 message(s) to Process Design
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - published 1 message(s) to Process Design
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&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, how-to, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1293 How to troubleshoot issues with emails not triggering processes in Appian</title><link>https://community.appian.com/support/w/kb/501/kb-1293-how-to-troubleshoot-issues-with-emails-not-triggering-processes-in-appian/revision/5</link><pubDate>Mon, 15 Oct 2018 19:42:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:899122a3-5d22-473c-83e1-af611d90ce34</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/501/kb-1293-how-to-troubleshoot-issues-with-emails-not-triggering-processes-in-appian#comments</comments><description>Revision 5 posted to Appian Knowledge Base by Parmida Borhani on 10/15/2018 7:42:59 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article details some common scenarios where emails fail to trigger processes in Appian. There are multiple causes for this issue and the article discusses the most common causes.&lt;/p&gt;
&lt;p&gt;The article assumes that the necessary configuration to poll email servers is already in place. Review the &lt;a href="https://docs.appian.com/suite/help/latest/Sending_an_Email_Message_to_a_Process.html" target="_blank"&gt;Sending an Email Message to a Process&lt;/a&gt; documentation for details on how to send an email to a process in Appian.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3 id="1-connection-issue-between-appian-servers-and-the-email-server"&gt;1. Connection issue between Appian Servers and the Email Server.&lt;/h3&gt;
&lt;p&gt;The most common cause of emails not triggering processes in Appian is no network communication between Appian and the email server it is supposed to poll.&lt;/p&gt;
&lt;p&gt;A common way to troubleshoot is by running a &amp;quot;telnet&amp;quot; from the Appian servers and see if you can connect to the email server. &lt;strong&gt;Note:&lt;/strong&gt; In Windows, telnet needs to be enabled by following &lt;a href="http://social.technet.microsoft.com/wiki/contents/articles/910.windows-7-enabling-telnet-client.aspx"&gt;these steps&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id="2-check-for-errors-in-the-mail-listener-log"&gt;2. Check for errors in the mail-listener.log&lt;/h3&gt;
&lt;p&gt;If you are able to telnet as expected following step 1, you can check the &lt;strong&gt;mail-listener.log&lt;/strong&gt; present in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&lt;/code&gt; directory to see if there are any error messages present in this file. This log is a good starting point to see if the application server is polling the mail server as expected but is not able to fetch the emails.&lt;/p&gt;
&lt;p&gt;For example, you might see something like the following error, which indicates there could be something at the network layer preventing Appian from connecting to the mailbox:&lt;/p&gt;
&lt;pre&gt;[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: connect timed out;
  nested exception is:
        java.net.SocketTimeoutException: connect timed out
     .
     .
     .
     Caused by: java.net.SocketTimeoutException: connect timed out
&lt;/pre&gt;
&lt;h3 id="3-add-debug-logging-via-the-ejb-jar-xml"&gt;3. Add DEBUG logging&lt;/h3&gt;
&lt;p&gt;If there are no errors in the &lt;strong&gt;mail-listener.log&lt;/strong&gt;, add DEBUG logging to get insight on exactly what is happening when the application server polls the mail server.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;DEBUG logging prints out every detail from the handshake between the application server and the mail server,&amp;nbsp;including the number of new messages the application server found from the last time it polled the mailbox, the recipients of the email, the body, etc. Depending on the use case, these DEBUG messages can be helpful.&amp;nbsp;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;Since this output includes the contents of emails, it may contain sensitive information.&lt;/p&gt;
&lt;h4&gt;18.2 and later&lt;/h4&gt;
&lt;p&gt;To add DEBUG logging, the following line must be added or uncommented in &lt;strong&gt;custom.properties&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;conf.mailhandler.poller.EmailHandlerBean.debug=true&lt;/code&gt;&lt;/p&gt;
&lt;h4&gt;18.1 and earlier&lt;/h4&gt;
&lt;p&gt;In between the &lt;code&gt;&amp;lt;activation-config&amp;gt;&lt;/code&gt; tags in the &lt;strong&gt;ejb-jar.xml&lt;/strong&gt; file (located in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/email-handler.jar/META-INF&lt;/code&gt;), for the mailbox&amp;nbsp;that is having issues, add the following tags:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;activation-config-property&amp;gt;
        &amp;lt;activation-config-property-name&amp;gt;debug&amp;lt;/activation-config-property-name&amp;gt;
        &amp;lt;activation-config-property-value&amp;gt;true&amp;lt;/activation-config-property-value&amp;gt;
&amp;lt;/activation-config-property&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="4-add-debug-logging-to-print-engine-activity"&gt;4. Add DEBUG logging to print engine activity&lt;/h3&gt;
&lt;p&gt;Step 3 covers the handshake between the application server and the mail server. After the application server picks up the email, it has to route the message to the right process/process model. At this point, the application server needs to interact with the Appian engines. In the event you don&amp;#39;t see any errors after step 3 and processes are still not launched in Appian, you can perform the steps below to get an insight on the engine activity:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Navigate to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/resources&lt;/code&gt; and edit &lt;strong&gt;appian_log4j.properties&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add the following three lines at the end of the file. If the lines are already present, uncomment them:&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;log4j.logger.com.appiancorp.messaging.MessagePublisherServiceImpl=DEBUG&lt;br /&gt;log4j.logger.com.appiancorp.process.execution.service.ProcessExecutionServiceFacade=DEBUG&lt;br /&gt;log4j.logger.com.appiancorp.mdb.EmailHandlerBean=DEBUG&lt;/pre&gt;
&lt;p&gt;In an ideal scenario, you would see messages like the following being printed in the application-server.log where you see the email is being correctly routed to the Execution and the Design engines:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - publishing 1 message(s) to Process Execution
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - published 1 message(s) to Process Execution
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - publishing 1 message(s) to Process Design
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - published 1 message(s) to Process Design
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&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, how-to, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1293 How to troubleshoot issues with emails not triggering processes in Appian</title><link>https://community.appian.com/support/w/kb/501/kb-1293-how-to-troubleshoot-issues-with-emails-not-triggering-processes-in-appian/revision/4</link><pubDate>Mon, 30 Jul 2018 04:05:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:899122a3-5d22-473c-83e1-af611d90ce34</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/501/kb-1293-how-to-troubleshoot-issues-with-emails-not-triggering-processes-in-appian#comments</comments><description>Revision 4 posted to Appian Knowledge Base by Parmida Borhani on 7/30/2018 4:05:22 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;This article details some common scenarios where emails fail to trigger processes in Appian. There are multiple causes for this issue and the article discusses the most common causes.&lt;/p&gt;
&lt;p&gt;The article assumes that you already have the necessary configuration to poll your email servers. Review the &lt;a href="https://docs.appian.com/suite/help/latest/Sending_an_Email_Message_to_a_Process.html"&gt;Sending an Email Message to a Process&lt;/a&gt; documentation for details on how to send an email to a process in Appian.&lt;/p&gt;
&lt;h4 id="1-connection-issue-between-appian-servers-and-the-email-server"&gt;1. Connection issue between Appian Servers and the Email Server.&lt;/h4&gt;
&lt;p&gt;The most common cause of emails not triggering processes in Appian is no network communication between Appian and the email server it is supposed to poll.&lt;/p&gt;
&lt;p&gt;A common way to troubleshoot is by running a &amp;quot;telnet&amp;quot; from the Appian servers and see if you can connect to the email server. &lt;strong&gt;Note:&lt;/strong&gt; In Windows, telnet needs to be enabled by following &lt;a href="http://social.technet.microsoft.com/wiki/contents/articles/910.windows-7-enabling-telnet-client.aspx"&gt;these steps&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id="2-check-for-errors-in-the-mail-listener-log"&gt;2. Check for errors in the mail-listener.log&lt;/h4&gt;
&lt;p&gt;If you are able to telnet as expected following step 1, you can check the &lt;strong&gt;mail-listener.log&lt;/strong&gt; present in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&lt;/code&gt; directory to see if there are any error messages present in this file. This log is a good starting point to see if the application server is polling the mail server as expected but is not able to fetch the emails.&lt;/p&gt;
&lt;p&gt;For example, you might see something like the following error, which indicates there could be something at the network layer preventing Appian from connecting to the mailbox:&lt;/p&gt;
&lt;pre&gt;[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: connect timed out;
  nested exception is:
        java.net.SocketTimeoutException: connect timed out
     .
     .
     .
     Caused by: java.net.SocketTimeoutException: connect timed out
&lt;/pre&gt;
&lt;h4 id="3-add-debug-logging-via-the-ejb-jar-xml"&gt;3. Add DEBUG logging via the ejb-jar.xml&lt;/h4&gt;
&lt;p&gt;If there are no errors in the &lt;strong&gt;mail-listener.log&lt;/strong&gt;, then as a next step you can add DEBUG logging in the &lt;strong&gt;ejb-jar.xml&lt;/strong&gt; file to get an insight on what exactly happens if/when the application server polls the mail server. This can be done by performing the following:&lt;/p&gt;
&lt;p&gt;In between the &lt;code&gt;&amp;lt;activation-config&amp;gt;&lt;/code&gt; tags in the &lt;strong&gt;ejb-jar.xml&lt;/strong&gt; file (located in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/email-handler.jar/META-INF&lt;/code&gt;), for the mailbox you are having issues with, add the following tags:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;activation-config-property&amp;gt;
        &amp;lt;activation-config-property-name&amp;gt;debug&amp;lt;/activation-config-property-name&amp;gt;
        &amp;lt;activation-config-property-value&amp;gt;true&amp;lt;/activation-config-property-value&amp;gt;
&amp;lt;/activation-config-property&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This change prints out every detail from the handshake between the application server and the mail server, the number of new messages that application server found from the last time it polled the mailbox, the recipients of the email, the body, etc. Depending on the use case, these debug messages can be helpful.&lt;/p&gt;
&lt;h4 id="4-add-debug-logging-to-print-engine-activity"&gt;4. Add DEBUG logging to print engine activity&lt;/h4&gt;
&lt;p&gt;Step 3 covers the handshake between the application server and the mail server. After the application server picks up the email, it has to route the message to the right process/process model. At this point, the application server needs to interact with the Appian engines. In the event you don&amp;#39;t see any errors after step 3 and processes are still not launched in Appian, you can perform the steps below to get an insight on the engine activity:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Navigate to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/resources&lt;/code&gt; and edit &lt;strong&gt;appian_log4j.properties&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add the following three lines at the end of the file. If the lines are already present, uncomment them:&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;log4j.logger.com.appiancorp.messaging.MessagePublisherServiceImpl=DEBUG&lt;br /&gt;log4j.logger.com.appiancorp.process.execution.service.ProcessExecutionServiceFacade=DEBUG&lt;br /&gt;log4j.logger.com.appiancorp.mdb.EmailHandlerBean=DEBUG&lt;/pre&gt;
&lt;p&gt;In an ideal scenario, you would see messages like the following being printed in the application-server.log where you see the email is being correctly routed to the Execution and the Design engines:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - publishing 1 message(s) to Process Execution
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - published 1 message(s) to Process Execution
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - publishing 1 message(s) to Process Design
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - published 1 message(s) to Process Design
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: December 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, how-to, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1293 How to troubleshoot issues with emails not triggering processes in Appian</title><link>https://community.appian.com/support/w/kb/501/kb-1293-how-to-troubleshoot-issues-with-emails-not-triggering-processes-in-appian/revision/3</link><pubDate>Tue, 12 Dec 2017 10:40:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:899122a3-5d22-473c-83e1-af611d90ce34</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/501/kb-1293-how-to-troubleshoot-issues-with-emails-not-triggering-processes-in-appian#comments</comments><description>Revision 3 posted to Appian Knowledge Base by Nick Vigilante on 12/12/2017 10:40:00 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;This article details some common scenarios where emails fail to trigger processes in Appian. There are multiple causes for this issue and the article discusses the most common causes.&lt;/p&gt;
&lt;p&gt;The article assumes that you already have the necessary configuration to poll your email servers. Review the &lt;a href="https://docs.appian.com/suite/help/latest/Sending_an_Email_Message_to_a_Process.html"&gt;Sending an Email Message to a Process&lt;/a&gt; documentation for details on how to send an email to a process in Appian.&lt;/p&gt;
&lt;h4 id="1-connection-issue-between-appian-servers-and-the-email-server"&gt;1. Connection issue between Appian Servers and the Email Server.&lt;/h4&gt;
&lt;p&gt;The most common cause of emails not triggering processes in Appian is no network communication between Appian and the email server it is supposed to poll.&lt;/p&gt;
&lt;p&gt;A common way to troubleshoot is by running a &amp;quot;telnet&amp;quot; from the Appian servers and see if you can connect to the email server. &lt;strong&gt;Note:&lt;/strong&gt; In Windows, telnet needs to be enabled by following &lt;a href="http://social.technet.microsoft.com/wiki/contents/articles/910.windows-7-enabling-telnet-client.aspx"&gt;these steps&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id="2-check-for-errors-in-the-mail-listener-log"&gt;2. Check for errors in the mail-listener.log&lt;/h4&gt;
&lt;p&gt;If you are able to telnet as expected following step 1, you can check the &lt;strong&gt;mail-listener.log&lt;/strong&gt; present in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&lt;/code&gt; directory to see if there are any error messages present in this file. This log is a good starting point to see if the application server is polling the mail server as expected but is not able to fetch the emails.&lt;/p&gt;
&lt;p&gt;For example, you might see something like the following error, which indicates there could be something at the network layer preventing Appian from connecting to the mailbox:&lt;/p&gt;
&lt;pre&gt;[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: connect timed out;
  nested exception is:
        java.net.SocketTimeoutException: connect timed out
     .
     .
     .
     Caused by: java.net.SocketTimeoutException: connect timed out
&lt;/pre&gt;
&lt;h4 id="3-add-debug-logging-via-the-ejb-jar-xml"&gt;3. Add DEBUG logging via the ejb-jar.xml&lt;/h4&gt;
&lt;p&gt;If there are no errors in the &lt;strong&gt;mail-listener.log&lt;/strong&gt;, then as a next step you can add DEBUG logging in the &lt;strong&gt;ejb-jar.xml&lt;/strong&gt; file to get an insight on what exactly happens if/when the application server polls the mail server. This can be done by performing the following:&lt;/p&gt;
&lt;p&gt;In between the &lt;code&gt;&amp;lt;activation-config&amp;gt;&lt;/code&gt; tags in the &lt;strong&gt;ejb-jar.xml&lt;/strong&gt; file (located in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/email-handler.jar/META-INF&lt;/code&gt;), for the mailbox you are having issues with, add the following tags:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;activation-config-property&amp;gt;
        &amp;lt;activation-config-property-name&amp;gt;debug&amp;lt;/activation-config-property-name&amp;gt;
        &amp;lt;activation-config-property-value&amp;gt;true&amp;lt;/activation-config-property-value&amp;gt;
&amp;lt;/activation-config-property&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This change prints out every detail from the handshake between the application server and the mail server, the number of new messages that application server found from the last time it polled the mailbox, the recipients of the email, the body, etc. Depending on the use case, these debug messages can be helpful.&lt;/p&gt;
&lt;h4 id="4-add-debug-logging-to-print-engine-activity"&gt;4. Add DEBUG logging to print engine activity&lt;/h4&gt;
&lt;p&gt;Step 3 covers the handshake between the application server and the mail server. After the application server picks up the email, it has to route the message to the right process/process model. At this point, the application server needs to interact with the Appian engines. In the event you don&amp;#39;t see any errors after step 3 and processes are still not launched in Appian, you can perform the steps below to get an insight on the engine activity:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Navigate to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/resources&lt;/code&gt; and edit &lt;strong&gt;appian_log4j.properties&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add the following three lines at the end of the file. If the lines are already present, uncomment them:&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;log4j.logger.com.appiancorp.messaging.MessagePublisherServiceImpl=DEBUG&lt;br /&gt;log4j.logger.com.appiancorp.process.execution.service.ProcessExecutionServiceFacade=DEBUG&lt;br /&gt;log4j.logger.com.appiancorp.mdb.EmailHandlerBean=DEBUG&lt;/pre&gt;
&lt;p&gt;In an ideal scenario, you would see messages like the following being printed in the application-server.log where you see the email is being correctly routed to the Execution and the Design engines:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - publishing 1 message(s) to Process Execution
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - published 1 message(s) to Process Execution
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - publishing 1 message(s) to Process Design
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - published 1 message(s) to Process Design
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: December 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email&lt;/div&gt;
</description></item><item><title>KB-1293 How to troubleshoot issues with emails not triggering processes in Appian</title><link>https://community.appian.com/support/w/kb/501/kb-1293-how-to-troubleshoot-issues-with-emails-not-triggering-processes-in-appian/revision/2</link><pubDate>Wed, 17 May 2017 15:14:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:899122a3-5d22-473c-83e1-af611d90ce34</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/501/kb-1293-how-to-troubleshoot-issues-with-emails-not-triggering-processes-in-appian#comments</comments><description>Revision 2 posted to Appian Knowledge Base by Nick Vigilante on 5/17/2017 3:14:43 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;This article details some common scenarios where emails fail to trigger processes in Appian. There are multiple causes for this issue and the article discusses the most common causes.&lt;/p&gt;
&lt;p&gt;The article assumes that you already have the necessary configuration to poll your email servers. Review the &lt;a href="https://docs.appian.com/suite/help/latest/Sending_an_Email_Message_to_a_Process.html"&gt;Sending an Email Message to a Process&lt;/a&gt; documentation for details on how to send an email to a process in Appian.&lt;/p&gt;
&lt;h4 id="1-connection-issue-between-appian-servers-and-the-email-server"&gt;1. Connection issue between Appian Servers and the Email Server.&lt;/h4&gt;
&lt;p&gt;The most common cause of emails not triggering processes in Appian is no network communication between Appian and the email server it is supposed to poll.&lt;/p&gt;
&lt;p&gt;A common way to troubleshoot is by running a &amp;quot;telnet&amp;quot; from the Appian servers and see if you can connect to the email server. &lt;strong&gt;Note:&lt;/strong&gt; In Windows, telnet needs to be enabled by following &lt;a href="http://social.technet.microsoft.com/wiki/contents/articles/910.windows-7-enabling-telnet-client.aspx"&gt;these steps&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id="2-check-for-errors-in-the-mail-listener-log"&gt;2. Check for errors in the mail-listener.log&lt;/h4&gt;
&lt;p&gt;If you are able to telnet as expected following step 1, you can check the &lt;strong&gt;mail-listener.log&lt;/strong&gt; present in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&lt;/code&gt; directory to see if there are any error messages present in this file. This log is a good starting point to see if the application server is polling the mail server as expected but is not able to fetch the emails.&lt;/p&gt;
&lt;p&gt;For example, you might see something like the following error, which indicates there could be something at the network layer preventing Appian from connecting to the mailbox:&lt;/p&gt;
&lt;pre&gt;[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: connect timed out;
  nested exception is:
        java.net.SocketTimeoutException: connect timed out
     .
     .
     .
     Caused by: java.net.SocketTimeoutException: connect timed out
&lt;/pre&gt;
&lt;h4 id="3-add-debug-logging-via-the-ejb-jar-xml"&gt;3. Add DEBUG logging via the ejb-jar.xml&lt;/h4&gt;
&lt;p&gt;If there are no errors in the &lt;strong&gt;mail-listener.log&lt;/strong&gt;, then as a next step you can add DEBUG logging in the &lt;strong&gt;ejb-jar.xml&lt;/strong&gt; file to get an insight on what exactly happens if/when the application server polls the mail server. This can be done by performing the following:&lt;/p&gt;
&lt;p&gt;In between the &lt;code&gt;&amp;lt;activation-config&amp;gt;&lt;/code&gt; tags in the &lt;strong&gt;ejb-jar.xml&lt;/strong&gt; file (located in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/email-handler.jar/META-INF&lt;/code&gt;), for the mailbox you are having issues with, add the following tags:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;activation-config-property&amp;gt;
        &amp;lt;activation-config-property-name&amp;gt;debug&amp;lt;/activation-config-property-name&amp;gt;
        &amp;lt;activation-config-property-value&amp;gt;true&amp;lt;/activation-config-property-value&amp;gt;
&amp;lt;/activation-config-property&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This change prints out every detail from the handshake between the application server and the mail server, the number of new messages that application server found from the last time it polled the mailbox, the recipients of the email, the body, etc. Depending on the use case, these debug messages can be helpful.&lt;/p&gt;
&lt;h4 id="4-add-debug-logging-to-print-engine-activity"&gt;4. Add DEBUG logging to print engine activity&lt;/h4&gt;
&lt;p&gt;Step 3 covers the handshake between the application server and the mail server. After the application server picks up the email, it has to route the message to the right process/process model. At this point, the application server needs to interact with the Appian engines. In the event you don&amp;#39;t see any errors after step 3 and processes are still not launched in Appian, you can perform the steps below to get an insight on the engine activity:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Navigate to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/resources&lt;/code&gt; and edit &lt;strong&gt;appian_log4j.properties&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add the following three lines at the end of the file. If the lines are already present, uncomment them:&lt;/p&gt;
&lt;p&gt;log4j.logger.com.appiancorp.messaging.MessagePublisherServiceImpl=DEBUG log4j.logger.com.appiancorp.process.execution.service.ProcessExecutionServiceFacade=DEBUG log4j.logger.com.appiancorp.mdb.EmailHandlerBean=DEBUG&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;In an ideal scenario, you would see messages like the following being printed in the application-server.log where you see the email is being correctly routed to the Execution and the Design engines:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - publishing 1 message(s) to Process Execution
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - published 1 message(s) to Process Execution
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - publishing 1 message(s) to Process Design
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - published 1 message(s) to Process Design
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;March 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email&lt;/div&gt;
</description></item><item><title>KB-1293 How to troubleshoot issues with emails not triggering processes in Appian</title><link>https://community.appian.com/support/w/kb/501/kb-1293-how-to-troubleshoot-issues-with-emails-not-triggering-processes-in-appian/revision/1</link><pubDate>Tue, 07 Mar 2017 16:16:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:899122a3-5d22-473c-83e1-af611d90ce34</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/501/kb-1293-how-to-troubleshoot-issues-with-emails-not-triggering-processes-in-appian#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Nick Vigilante on 3/7/2017 4:16:40 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;This article details some common scenarios where emails fail to trigger processes in Appian. There are multiple causes for this issue and the article discusses the most common causes.&lt;/p&gt;
&lt;p&gt;The article assumes that you already have the necessary configuration to poll your email servers. Review the &lt;a href="https://docs.appian.com/suite/help/17.1/Sending_an_Email_Message_to_a_Process.html"&gt;Sending an Email Message to a Process&lt;/a&gt; documentation for details on how to send an email to a process in Appian.&lt;/p&gt;
&lt;h4 id="1-connection-issue-between-appian-servers-and-the-email-server"&gt;1. Connection issue between Appian Servers and the Email Server.&lt;/h4&gt;
&lt;p&gt;The most common cause of emails not triggering processes in Appian is no network communication between Appian and the email server it is supposed to poll.&lt;/p&gt;
&lt;p&gt;A common way to troubleshoot is by running a &amp;quot;telnet&amp;quot; from the Appian servers and see if you can connect to the email server. &lt;strong&gt;Note:&lt;/strong&gt; In Windows, telnet needs to be enabled by following &lt;a href="http://social.technet.microsoft.com/wiki/contents/articles/910.windows-7-enabling-telnet-client.aspx"&gt;these steps&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id="2-check-for-errors-in-the-mail-listener-log"&gt;2. Check for errors in the mail-listener.log&lt;/h4&gt;
&lt;p&gt;If you are able to telnet as expected following step 1, you can check the &lt;strong&gt;mail-listener.log&lt;/strong&gt; present in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&lt;/code&gt; directory to see if there are any error messages present in this file. This log is a good starting point to see if the application server is polling the mail server as expected but is not able to fetch the emails.&lt;/p&gt;
&lt;p&gt;For example, you might see something like the following error, which indicates there could be something at the network layer preventing Appian from connecting to the mailbox:&lt;/p&gt;
&lt;pre&gt;[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: connect timed out;
  nested exception is:
        java.net.SocketTimeoutException: connect timed out
     .
     .
     .
     Caused by: java.net.SocketTimeoutException: connect timed out
&lt;/pre&gt;
&lt;h4 id="3-add-debug-logging-via-the-ejb-jar-xml"&gt;3. Add DEBUG logging via the ejb-jar.xml&lt;/h4&gt;
&lt;p&gt;If there are no errors in the &lt;strong&gt;mail-listener.log&lt;/strong&gt;, then as a next step you can add DEBUG logging in the &lt;strong&gt;ejb-jar.xml&lt;/strong&gt; file to get an insight on what exactly happens if/when the application server polls the mail server. This can be done by performing the following:&lt;/p&gt;
&lt;p&gt;In between the &lt;code&gt;&amp;lt;activation-config&amp;gt;&lt;/code&gt; tags in the &lt;strong&gt;ejb-jar.xml&lt;/strong&gt; file, for the mailbox you are having issues with, add the following tags:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;activation-config-property&amp;gt;
        &amp;lt;activation-config-property-name&amp;gt;debug&amp;lt;/activation-config-property-name&amp;gt;
        &amp;lt;activation-config-property-value&amp;gt;true&amp;lt;/activation-config-property-value&amp;gt;
&amp;lt;/activation-config-property&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This change prints out every detail from the handshake between the application server and the mail server, the number of new messages that application server found from the last time it polled the mailbox, the recipients of the email, the body, etc. Depending on the use case, these debug messages can be helpful.&lt;/p&gt;
&lt;h4 id="4-add-debug-logging-to-print-engine-activity"&gt;4. Add DEBUG logging to print engine activity&lt;/h4&gt;
&lt;p&gt;Step 3 covers the handshake between the application server and the mail server. After the application server picks up the email, it has to route the message to the right process/process model. At this point, the application server needs to interact with the Appian engines. In the event you don&amp;#39;t see any errors after step 3 and processes are still not launched in Appian, you can perform the steps below to get an insight on the engine activity:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Navigate to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/resources&lt;/code&gt; and edit &lt;strong&gt;appian_log4j.properties&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add the following three lines at the end of the file. If the lines are already present, uncomment them:&lt;/p&gt;
&lt;p&gt;log4j.logger.com.appiancorp.messaging.MessagePublisherServiceImpl=DEBUG log4j.logger.com.appiancorp.process.execution.service.ProcessExecutionServiceFacade=DEBUG log4j.logger.com.appiancorp.mdb.EmailHandlerBean=DEBUG&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;In an ideal scenario, you would see messages like the following being printed in the application-server.log where you see the email is being correctly routed to the Execution and the Design engines:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - publishing 1 message(s) to Process Execution
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - published 1 message(s) to Process Execution
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - publishing 1 message(s) to Process Design
INFO  [stdout] (Appian EmailHandlerBean - 2) YYYY-MM-DD HH:MM:SS,MMM [Appian EmailHandlerBean - 2] DEBUG com.appiancorp.messaging.MessagePublisherServiceImpl - published 1 message(s) to Process Design
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;March 2017&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

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