<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Mail Task + Notifications not working in APS in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/mail-task-notifications-not-working-in-aps/m-p/15395#M6816</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/83439"&gt;@shmalik&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The APS documentation doesn't mention &lt;A href="https://docs.alfresco.com/process-services1.11/topics/emailServerConfiguration.html" target="_self" rel="nofollow noopener noreferrer"&gt;STARTTLS&lt;/A&gt;. ACS documentation does mention &lt;A href="https://docs.alfresco.com/6.2/concepts/email-outboundsmtp-props.html" target="_self" rel="nofollow noopener noreferrer"&gt;STARTTLS&lt;/A&gt;. However, this thread may prove &lt;A href="https://hub.alfresco.com/t5/alfresco-process-services/email-configuration-for-sending-email-by-mail-task/td-p/139093" target="_self" rel="nofollow noopener noreferrer"&gt;helpful&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;HTH,&lt;/P&gt;</description>
    <pubDate>Fri, 05 Feb 2021 12:04:00 GMT</pubDate>
    <dc:creator>EddieMay</dc:creator>
    <dc:date>2021-02-05T12:04:00Z</dc:date>
    <item>
      <title>Mail Task + Notifications not working in APS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/mail-task-notifications-not-working-in-aps/m-p/15392#M6813</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using Alfresco Process Services 1.11.1 Trial Version and have problems configuring the mail task. I already looked up similar questions in this forum, but unfortunately, I cannot solve my problem. I can neither receive mails via the mail task nor receive notifications to a user from the system.&lt;/P&gt;&lt;P&gt;My mail settings in the file activiti-app.properties are:&lt;/P&gt;&lt;P&gt;email.enabled=true&lt;/P&gt;&lt;P&gt;email.host=smtp.gmail.com&lt;/P&gt;&lt;P&gt;email.port=587&lt;/P&gt;&lt;P&gt;email.tls=true&lt;/P&gt;&lt;P&gt;email.useCredentials=true&lt;/P&gt;&lt;P&gt;email.username=mail@mail.com&lt;/P&gt;&lt;P&gt;email.password=mailpw&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;## The base url that will be used to create urls in emails.&lt;/P&gt;&lt;P&gt;email.base.url=http://localhost:8080/activiti-app&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;email.from.default=no-reply@activiti.alfresco.com&lt;/P&gt;&lt;P&gt;email.from.default.name=Activiti&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:email.feedback.default=activiti@alfresco.com" target="_blank" rel="nofollow noopener noreferrer"&gt;email.feedback.default=activiti@alfresco.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In the logs I get following erros after starting a simple mail task process (shortened due to character limit):&lt;/P&gt;&lt;PRE&gt;12:38:32 [http-nio-8080-exec-1] ERROR org.activiti.engine.impl.interceptor.CommandContext  - Error while closing command context
org.activiti.engine.ActivitiException: Could not send e-mail in execution 25001
[...]
Caused by: org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:587
        at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1469)
        at org.apache.commons.mail.Email.send(Email.java:1496)
        at org.activiti.engine.impl.bpmn.behavior.MailActivityBehavior.execute(MailActivityBehavior.java:102)
        ... 207 common frames omitted
Caused by: javax.mail.MessagingException: Could not convert socket to TLS
        at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:2064)
        at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:724)
        at javax.mail.Service.connect(Service.java:388)
        at javax.mail.Service.connect(Service.java:246)
        at javax.mail.Service.connect(Service.java:195)
        at javax.mail.Transport.send0(Transport.java:254)
        at javax.mail.Transport.send(Transport.java:124)
        at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1459)
        ... 209 common frames omitted
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
        at sun.security.ssl.Alerts.getSSLException(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
        at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
        at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
        at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)
        at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
        at sun.security.ssl.Handshaker.processLoop(Unknown Source)
        at sun.security.ssl.Handshaker.process_record(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
        at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:598)
        at com.sun.mail.util.SocketFetcher.startTLS(SocketFetcher.java:525)
        at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:2059)
        ... 216 common frames omitted
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
        at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
        at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
        at sun.security.validator.Validator.validate(Unknown Source)
        at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
        at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
        at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
        ... 227 common frames omitted
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
        at sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source)
        at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
        at java.security.cert.CertPathBuilder.build(Unknown Source)
        ... 233 common frames omitted
12:38:32 [http-nio-8080-exec-1] ERROR com.activiti.rest.exception.RestExceptionHandlerAdvice  - Internal error:
org.activiti.engine.ActivitiException: Could not send e-mail in execution 25001
[...]
Caused by: org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:587
        at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1469)
        at org.apache.commons.mail.Email.send(Email.java:1496)
        at org.activiti.engine.impl.bpmn.behavior.MailActivityBehavior.execute(MailActivityBehavior.java:102)
        ... 207 common frames omitted
Caused by: javax.mail.MessagingException: Could not convert socket to TLS
        at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:2064)
        at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:724)
        at javax.mail.Service.connect(Service.java:388)
        at javax.mail.Service.connect(Service.java:246)
        at javax.mail.Service.connect(Service.java:195)
        at javax.mail.Transport.send0(Transport.java:254)
        at javax.mail.Transport.send(Transport.java:124)
        at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1459)
        ... 209 common frames omitted
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
        at sun.security.ssl.Alerts.getSSLException(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
        at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
        at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
        at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)
        at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
        at sun.security.ssl.Handshaker.processLoop(Unknown Source)
        at sun.security.ssl.Handshaker.process_record(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
        at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:598)
        at com.sun.mail.util.SocketFetcher.startTLS(SocketFetcher.java:525)
        at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:2059)
        ... 216 common frames omitted
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
        at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
        at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
        at sun.security.validator.Validator.validate(Unknown Source)
        at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
        at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
        at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
        ... 227 common frames omitted
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
        at sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source)
        at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
        at java.security.cert.CertPathBuilder.build(Unknown Source)
        ... 233 common frames omitted&lt;/PRE&gt;&lt;P&gt;Any help is really appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 15:08:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/mail-task-notifications-not-working-in-aps/m-p/15392#M6813</guid>
      <dc:creator>shmalik</dc:creator>
      <dc:date>2021-02-02T15:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Mail Task + Notifications not working in APS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/mail-task-notifications-not-working-in-aps/m-p/15393#M6814</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/83439"&gt;@shmalik&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you check that you can send/receive email on this server outside of APS?&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 16:55:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/mail-task-notifications-not-working-in-aps/m-p/15393#M6814</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2021-02-02T16:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Mail Task + Notifications not working in APS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/mail-task-notifications-not-working-in-aps/m-p/15394#M6815</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/76783"&gt;@EddieMay&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;thank you for your quick reply!&lt;/P&gt;&lt;P&gt;I configured two different test accounts (each with a different mail server) in Outlook. For both accounts send/receive worked well (IMAP and SMTP) but I had to use smtp STARTTLS with Port 587 or SSL/TLS with Port 465 in the Outlook setup. For everything else I received errors. Also, it needed the credentials for the smtp.&lt;BR /&gt;I do not know if there is a way in APS to explicitly use STARTTLS. I tried it in APS with the combination TLS with port 587 and SSL with port 465, without success.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 00:05:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/mail-task-notifications-not-working-in-aps/m-p/15394#M6815</guid>
      <dc:creator>shmalik</dc:creator>
      <dc:date>2021-02-04T00:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Mail Task + Notifications not working in APS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/mail-task-notifications-not-working-in-aps/m-p/15395#M6816</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/83439"&gt;@shmalik&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The APS documentation doesn't mention &lt;A href="https://docs.alfresco.com/process-services1.11/topics/emailServerConfiguration.html" target="_self" rel="nofollow noopener noreferrer"&gt;STARTTLS&lt;/A&gt;. ACS documentation does mention &lt;A href="https://docs.alfresco.com/6.2/concepts/email-outboundsmtp-props.html" target="_self" rel="nofollow noopener noreferrer"&gt;STARTTLS&lt;/A&gt;. However, this thread may prove &lt;A href="https://hub.alfresco.com/t5/alfresco-process-services/email-configuration-for-sending-email-by-mail-task/td-p/139093" target="_self" rel="nofollow noopener noreferrer"&gt;helpful&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;HTH,&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 12:04:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/mail-task-notifications-not-working-in-aps/m-p/15395#M6816</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2021-02-05T12:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Mail Task + Notifications not working in APS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/mail-task-notifications-not-working-in-aps/m-p/15396#M6817</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;So if StartTLS is not supported on APS, how does one get outlook mail services to work?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 15:20:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/mail-task-notifications-not-working-in-aps/m-p/15396#M6817</guid>
      <dc:creator>justinmccune</dc:creator>
      <dc:date>2022-07-11T15:20:54Z</dc:date>
    </item>
  </channel>
</rss>

