Triggering Process Model Using Email

Hi All,

We are trying to trigger the process using email ("sampleMail@xyz.com")through "IMAPS". I followed the steps as mentioned in the mail server setup but I'm facing some issues in achieving it.
1. In ejb-jar.xml file, for mail server it's given as "popmail.xyz.xom", but what should be configured actually. Is that mailbox address or "popmail" itself.
2. Should "ejbName" in ejb-jar.xml file be "EmailHandlerBean" or any customized name like "sampleMailbox".
3. Also should the alias name in custom.prop file be the same as "ejbname" or the mailbox what we are reading.
4. We have tried giving the mail server as "popmail.xyz.com" and ejbname as "EmailHandlerBean" and alias as "sampleMail" and we got the following error.

2017-01-05 09:42:13,551 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: trying to connect to host "popmail.xyz.com", port 993, isSSL true...

OriginalPostID-256185

  Discussion posts and replies are publicly visible

Parents
  • Thanks Tom. The authentication is working fine as we are able to login to the mailbox. We also changed the configuration from "popmail.xyz.com" in ejb-jar.xml" file to "sampleemail.xyz.com" where sampleemail is my mailbox and I got the following errors. To add with it, my server is up and running fine but not sure where I'm going wrong in reading mailbox.

    2017-01-06 11:07:58,489 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.fetchsize: 16384
    2017-01-06 11:07:58,489 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.statuscachetimeout: 1000
    2017-01-06 11:07:58,490 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.appendbuffersize: -1
    2017-01-06 11:07:58,490 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.minidletime: 10
    2017-01-06 11:07:58,491 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: trying to connect to host "samplemail.xyz.com", port 993, isSSL true
    2017-01-06 11:08:58,692 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: JavaMail version 1.4.5.redhat-2
    2017-01-06 11:08:58,694 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
    2017-01-06 11:08:58,694 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: Tables of loaded providers
    2017-01-06 11:08:58,694 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
    2017-01-06 11:08:58,694 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
    2017-01-06 11:08:58,694 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
    2017-01-06 11:08:58,695 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: setDebug: JavaMail version 1.4.5.redhat-2
    2017-01-06 11:08:58,695 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: getProvider() returning javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc]
    2017-01-06 11:08:58,695 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.fetchsize: 16384
    2017-01-06 11:08:58,695 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.statuscachetimeout: 1000
    2017-01-06 11:08:58,695 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.appendbuffersize: -1
    2017-01-06 11:08:58,696 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.minidletime: 10
    2017-01-06 11:08:58,697 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: trying to connect to host "samplemail.xyz.com", port 993, isSSL true

    Please advise.
    Thanks.
Reply
  • Thanks Tom. The authentication is working fine as we are able to login to the mailbox. We also changed the configuration from "popmail.xyz.com" in ejb-jar.xml" file to "sampleemail.xyz.com" where sampleemail is my mailbox and I got the following errors. To add with it, my server is up and running fine but not sure where I'm going wrong in reading mailbox.

    2017-01-06 11:07:58,489 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.fetchsize: 16384
    2017-01-06 11:07:58,489 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.statuscachetimeout: 1000
    2017-01-06 11:07:58,490 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.appendbuffersize: -1
    2017-01-06 11:07:58,490 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.minidletime: 10
    2017-01-06 11:07:58,491 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: trying to connect to host "samplemail.xyz.com", port 993, isSSL true
    2017-01-06 11:08:58,692 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: JavaMail version 1.4.5.redhat-2
    2017-01-06 11:08:58,694 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
    2017-01-06 11:08:58,694 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: Tables of loaded providers
    2017-01-06 11:08:58,694 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
    2017-01-06 11:08:58,694 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
    2017-01-06 11:08:58,694 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
    2017-01-06 11:08:58,695 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: setDebug: JavaMail version 1.4.5.redhat-2
    2017-01-06 11:08:58,695 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: getProvider() returning javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc]
    2017-01-06 11:08:58,695 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.fetchsize: 16384
    2017-01-06 11:08:58,695 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.statuscachetimeout: 1000
    2017-01-06 11:08:58,695 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.appendbuffersize: -1
    2017-01-06 11:08:58,696 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.minidletime: 10
    2017-01-06 11:08:58,697 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: trying to connect to host "samplemail.xyz.com", port 993, isSSL true

    Please advise.
    Thanks.
Children
No Data