Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
10 replies
Subscribers
7 subscribers
Views
5884 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Administration
Triggering Process Model Using Email
karthighak
over 8 years ago
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
0
karthighak
over 8 years ago
...
2017-01-05 09:42:14,150 GMT INFO [stdout] (Appian MailActivation - 1) * OK The Microsoft Exchange IMAP4 service is ready.
2017-01-05 09:42:14,151 GMT INFO [stdout] (Appian MailActivation - 1) A0 CAPABILITY
2017-01-05 09:42:14,201 GMT INFO [stdout] (Appian MailActivation - 1) * CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN UIDPLUS CHILDREN IDLE NAMESPACE LITERAL+
2017-01-05 09:42:14,201 GMT INFO [stdout] (Appian MailActivation - 1) A0 OK CAPABILITY completed.
2017-01-05 09:42:14,201 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG IMAP: AUTH: NTLM
2017-01-05 09:42:14,201 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG IMAP: AUTH: GSSAPI
2017-01-05 09:42:14,201 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG IMAP: AUTH: PLAIN
2017-01-05 09:42:14,208 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: protocolConnect login, host=popmail.xyz.com, user=username, password=<non-null>
2017-01-05 09:42:14,209 GMT INFO [stdout] (Appian MailActivatio...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
karthighak
over 8 years ago
...n - 1) DEBUG IMAP: AUTHENTICATE PLAIN command trace suppressed
2017-01-05 09:42:14,358 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG IMAP: AUTHENTICATE PLAIN command result: A1 NO AUTHENTICATE failed.
Appian server itself is not getting started and we are facing "404" error.
Please help us to find where we are going wrong.
Thank you!!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tom Ryan
Appian Employee
over 8 years ago
For details on configuring Appian to connect to a mail server, first refer to the documentation here:
forum.appian.com/.../Mail_Server_Setup.html
As mentioned in the log lines you pasted, it appears there is an authentication issue when connecting to the mail server. First review the configured credentials and make sure they are correct.
If the app server is not starting, then most likely there is an invalid configuration somewhere. In this case please attach the complete app server log showing the entire startup attempt.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
karthighak
over 8 years ago
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.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tom Ryan
Appian Employee
over 8 years ago
I don't see any errors in the output you mentioned. These are normal debugging outputs. Can you attach the complete log? Can you add some more details regarding what the issue is from the application perspective?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
karthighak
over 8 years ago
Tom,
Please find below sample logs. We also don't see any errors but our process model is not getting triggered.
2017-01-09 10:40:27,927 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: JavaMail version 1.4.5.redhat-2
2017-01-09 10:40:27,930 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
2017-01-09 10:40:27,930 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: Tables of loaded providers
2017-01-09 10:40:27,930 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-09 10:40:27,931 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-09 10:40:27,932 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
2017-01-09 10:40:27,933 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: setDebug: JavaMail version 1.4.5.redhat-2
2017-01-09 10:40:27,935 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: getProvider() returning javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc]
2017-01-09 10:40:27,946 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.fetchsize: 16384
2017-01-09 10:40:27,946 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.statuscachetimeout: 1000
2017-01-09 10:40:27,946 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.appendbuffersize: -1
2017-01-09 10:40:27,946 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.minidletime: 10
2017-01-09 10:40:27,947 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: trying to connect to host "amtastage.XYZ.com", port 993, isSSL true
2017-01-09 10:41:28,043 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: JavaMail version 1.4.5.redhat-2
2017-01-09 10:41:28,045 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
2017-01-09 10:41:28,045 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: Tables of loaded providers
2017-01-09 10:41:28,045 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.Provi
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
karthighak
over 8 years ago
2017-01-09 10:41:28,045 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: Tables of loaded providers
2017-01-09 10:41:28,045 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-09 10:41:28,045 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-09 10:41:28,045 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
2017-01-09 10:41:28,046 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: setDebug: JavaMail version 1.4.5.redhat-2
2017-01-09 10:41:28,046 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: getProvider() returning javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc]
2017-01-09 10:41:28,046 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.fetchsize: 16384
2017-01-09 10:41:28,046 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.statuscachetimeout: 1000
2017-01-09 10:41:28,046 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.appendbuffersize: -1
2017-01-09 10:41:28,046 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: mail.imap.minidletime: 10
2017-01-09 10:41:28,046 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: trying to connect to host "amtastage.XYZ.com", port 993, isSSL true
2017-01-09 10:42:28,128 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: JavaMail version 1.4.5.redhat-2
2017-01-09 10:42:28,130 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
2017-01-09 10:42:28,130 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: Tables of loaded providers
2017-01-09 10:42:28,130 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-09 10:42:28,130 GMT INFO [stdout] (Appian MailActivation - 1) DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsyst
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
karthighak
over 8 years ago
With reference to the link below, I can see the same logs in the server for the successful connection. Could you please let us know are we going wrong in process model or in the server side configurations.
forum.appian.com/.../f-116033
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tom Ryan
Appian Employee
over 8 years ago
From those logs we can see that the connection is getting as far as the step
DEBUG: trying to connect to host "amtastage.XYZ.com", port 993, isSSL true
but it doesnt appear to get any further. There are no errors, but normally we would see additional logging if the connection was successful. Do you see anything from the mail server side? Also, for readability, you can attach the log file rather than pasting the log contents in the comment.
Regarding routing configurations, that is also mentioned in the documentation:
forum.appian.com/.../Mail_Server_Setup.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Dastagiri Dudekula
over 8 years ago
Please verify toemailaddress() function is used with "sampleMail@xyz.com" where ever required. Like toemailaddress("sampleMail@xyz.com").
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel