Appian SMTP

Hello all,

I can't send emails from appian (on-prem).

2023-11-15 09:23:57,255 [Appian Work Item - 48 - WorkID 1 - notifications-email : MailRequest] ERROR com.appiancorp.ap2.mail.Mail - Could not send mail via smtp.office365.com:587 to
2023-11-15 09:23:57,255 [ThreadPoolTaskExecutor-98] ERROR com.appiancorp.process.workpoller.WorkItemListener - The following exception occurred while attempting to complete work item [[WorkId: 1, EngineId: notifications-email, Request: MailRequest:null as null by null, Response: null]] - Exception:
javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailSendException: Could not send email [from=Auto_EPMC-IACC_RPASupport@epam.com, to=ravil_nagmetov@epam.com, subject=Appian Password Change]
        at org.springframework.jca.work.SimpleTaskWorkManager$DelegatingWorkAdapter.run(SimpleTaskWorkManager.java:244)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:750)
Caused by: com.appiancorp.process.engine.EmailSendException: Could not send email [from=Auto_EPMC-IACC_RPASupport@epam.com, to=ravil_nagmetov@epam.com, subject=Appian Password Change]
        at com.appiancorp.process.engine.AbstractMailRequest.sendEmail(AbstractMailRequest.java:300)
        at com.appiancorp.process.engine.AbstractMailRequest.getContinuationResponse(AbstractMailRequest.java:281)
        at com.appiancorp.process.engine.AbstractMailRequest.execute0(AbstractMailRequest.java:228)
        at com.appiancorp.process.engine.ContinuationRequest.executeOuter(ContinuationRequest.java:95)
        at com.appiancorp.process.engine.ContinuationRequest.execute(ContinuationRequest.java:114)
        at com.appiancorp.process.engine.AbstractMailRequest.execute(AbstractMailRequest.java:495)
        at com.appiancorp.process.workpoller.UnattendedRequestHandlerBean.onMessage(UnattendedRequestHandlerBean.java:36)
        at com.appiancorp.process.workpoller.WorkItem.run(WorkItem.java:110)
        at org.springframework.jca.work.SimpleTaskWorkManager$DelegatingWorkAdapter.run(SimpleTaskWorkManager.java:241)
        ... 3 more
Caused by: com.sun.mail.smtp.SMTPSendFailedException: [EOF]
        at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2374)
        at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1808)
        at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1285)
        at com.appiancorp.ap2.mail.Mail.sendMessage(Mail.java:416)
        at com.appiancorp.ap2.mail.Mail.sendMessage(Mail.java:196)
        at com.appiancorp.ap2.mail.Mail.sendMailWithAttachment(Mail.java:265)
        at com.appiancorp.ap2.mail.Mail.sendMail(Mail.java:225)
        at com.appiancorp.process.engine.AbstractMailRequest.sendEmail(AbstractMailRequest.java:297)
        ... 11 more
Exception in thread "ThreadPoolTaskExecutor-98" com.appiancorp.process.engine.EmailSendException: Could not send email [from=Auto_EPMC-IACC_RPASupport@epam.com, to=ravil_nagmetov@epam.com, subject=Appian Password Change]
        at com.appiancorp.process.engine.AbstractMailRequest.sendEmail(AbstractMailRequest.java:300)
        at com.appiancorp.process.engine.AbstractMailRequest.getContinuationResponse(AbstractMailRequest.java:281)
        at com.appiancorp.process.engine.AbstractMailRequest.execute0(AbstractMailRequest.java:228)
        at com.appiancorp.process.engine.ContinuationRequest.executeOuter(ContinuationRequest.java:95)
        at com.appiancorp.process.engine.ContinuationRequest.execute(ContinuationRequest.java:114)
        at com.appiancorp.process.engine.AbstractMailRequest.execute(AbstractMailRequest.java:495)
        at com.appiancorp.process.workpoller.UnattendedRequestHandlerBean.onMessage(UnattendedRequestHandlerBean.java:36)
        at com.appiancorp.process.workpoller.WorkItem.run(WorkItem.java:110)
        at org.springframework.jca.work.SimpleTaskWorkManager$DelegatingWorkAdapter.run(SimpleTaskWorkManager.java:241)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:750)
Caused by: com.sun.mail.smtp.SMTPSendFailedException: [EOF]
        at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2374)
        at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1808)
        at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1285)
        at com.appiancorp.ap2.mail.Mail.sendMessage(Mail.java:416)
        at com.appiancorp.ap2.mail.Mail.sendMessage(Mail.java:196)
        at com.appiancorp.ap2.mail.Mail.sendMailWithAttachment(Mail.java:265)
        at com.appiancorp.ap2.mail.Mail.sendMail(Mail.java:225)
        at com.appiancorp.process.engine.AbstractMailRequest.sendEmail(AbstractMailRequest.java:297)
        ... 11 more

custom.properties:

conf.mailhandler.ntf_sndr_addr=Auto_EPMC-IACC_RPASupport@epam.com
conf.mailhandler.email.domain=epam.com
conf.mailhandler.mail.smtp.host=smtp.office365.com:587
conf.mailhandler.mail.smtp.auth=true
conf.mailhandler.mail.user=Auto_EPMC-IACC_RPASupport@epam.com
conf.mailhandler.mail.smtp.starttls.enable=true
conf.mailhandler.mail.smtp.starttls.required=false

passwords.properties:

conf.password.SMTP=*****

I checked my credentials via postfix and it works properly.

  Discussion posts and replies are publicly visible