Issues with Configuring Email Server

Hi,

I am trying to configure mail server in Appian V7.10 so an email can be sent using office365 account.
While sending emails Appian reads the configurations mentioned in custom.properties (configuarations suggested in forum.appian.com/.../Mail_Server_Setup.html). But we are facing problem while sending mails.

Steps followed:

we configured office365 as mail server, configured this as SMTP host.
we did the setting as mentioned in forum. forum.appian.com/.../Mail_Server_Setup.html
conf.mailhandler.mail.smtp.host=SMTP_HOST:PORT
conf.mailhandler.mail.smtp.auth=true
conf.mailhandler.mail.user=myuser@abc.com
conf.mailhandler.mail.transport.protocol=smtp
password is mentioned in password.properties file.
conf.password.SMTP=mypassword

Notification sender is also configured.
conf.mailhandler.ntf_sndr_addr=myuser@abc.com
conf.mailhandler.ntf_sndr_name=myuser

We tested the connectivity from the appian...

OriginalPostID-167251

OriginalPostID-167251

  Discussion posts and replies are publicly visible

Parents
  • We implemented the first step and below is the error details :
    ==========================================================
    07:14:44,206 INFO [stdout] (Appian Work Item - 1 - NotificationsEmail : MailRequest) 2015-09-22 07:14:44,206 [Appian Work Item - 1 - NotificationsEmail : MailRequest] ERROR com.appiancorp.ap2.util.Mail - Could not send mail via smtp.office365.com:587 to user2@xyz.com

    07:14:44,208 ERROR [org.jboss.as.ejb3.invocation] (Appian Work Item - 1 - NotificationsEmail) JBAS014134: EJB Invocation failed on component UnattendedRequestHandlerBean for method public abstract com.appiancorp.process.engine.ContinuationResponse com.appiancorp.ra.workpoller.UnattendedRequestListener.onMessage(com.appiancorp.process.engine.UnattendedRequest): javax.ejb.EJBException: com.appiancorp.process.engine.EmailSendException: Could not send email from user1@xyz.com to user2@xyz.com subject Error in Task: Send E-Mail

    Caused by: com.appiancorp.process.engine.EmailSendException: Could not send email from user1@xyz.com to user2@xyz.com subject Error in Task: Send E-Mail

    Caused by: javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful

    07:14:44,273 INFO [stdout] (default-threads - 49) 2015-09-22 07:14:44,260 [default-threads - 49] ERROR com.appiancorp.ra.workpoller.WorkItemListener - The following exception occurred while attempting to complete work item [(WorkId: 6, WorkType: [AbstractMailRequest: from=user1@xyz.com, to=user2@xyz.com, subject=Error in Task: Send E-Mail], Response: null, ServerName: NotificationsEmail)] - Exception:

    07:14:44,274 INFO [stdout] (default-threads - 49) javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailSendException: Could not send email from user1@xyz.com to user2@xyz.com subject Error in Task: Send E-Mail
    ========================================================

    We specified the password for user1 in passwords.properties under

    =================================================
    ## The password used to connect to the SMTP server configured in
    ## conf.mailhandler.mail.smtp.host in custom.properties
    conf.password.SMTP=<Password for Sender (user 1) to for connecting to the Mail Server >
Reply
  • We implemented the first step and below is the error details :
    ==========================================================
    07:14:44,206 INFO [stdout] (Appian Work Item - 1 - NotificationsEmail : MailRequest) 2015-09-22 07:14:44,206 [Appian Work Item - 1 - NotificationsEmail : MailRequest] ERROR com.appiancorp.ap2.util.Mail - Could not send mail via smtp.office365.com:587 to user2@xyz.com

    07:14:44,208 ERROR [org.jboss.as.ejb3.invocation] (Appian Work Item - 1 - NotificationsEmail) JBAS014134: EJB Invocation failed on component UnattendedRequestHandlerBean for method public abstract com.appiancorp.process.engine.ContinuationResponse com.appiancorp.ra.workpoller.UnattendedRequestListener.onMessage(com.appiancorp.process.engine.UnattendedRequest): javax.ejb.EJBException: com.appiancorp.process.engine.EmailSendException: Could not send email from user1@xyz.com to user2@xyz.com subject Error in Task: Send E-Mail

    Caused by: com.appiancorp.process.engine.EmailSendException: Could not send email from user1@xyz.com to user2@xyz.com subject Error in Task: Send E-Mail

    Caused by: javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful

    07:14:44,273 INFO [stdout] (default-threads - 49) 2015-09-22 07:14:44,260 [default-threads - 49] ERROR com.appiancorp.ra.workpoller.WorkItemListener - The following exception occurred while attempting to complete work item [(WorkId: 6, WorkType: [AbstractMailRequest: from=user1@xyz.com, to=user2@xyz.com, subject=Error in Task: Send E-Mail], Response: null, ServerName: NotificationsEmail)] - Exception:

    07:14:44,274 INFO [stdout] (default-threads - 49) javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailSendException: Could not send email from user1@xyz.com to user2@xyz.com subject Error in Task: Send E-Mail
    ========================================================

    We specified the password for user1 in passwords.properties under

    =================================================
    ## The password used to connect to the SMTP server configured in
    ## conf.mailhandler.mail.smtp.host in custom.properties
    conf.password.SMTP=<Password for Sender (user 1) to for connecting to the Mail Server >
Children
No Data