Hi I am configuring the Appian Mail Server to recieve email from an E

Certified Senior Developer
Hi

I am configuring the Appian Mail Server to recieve email from an Email Id to start a Process Model.
forum.appian.com/.../Sending_an_Email_Message_to_a_Process
forum.appian.com/.../Mail_Server_Setup
forum.appian.com/.../Anonymous_User

For which I have done following configuration in custom.properties:
conf.suite.ANONYMOUS_ACCESS=true
conf.mailhandler.alias.<username>=processmodeluuid<uuid>

In ejb-jar.xml, I have mentioned the username and In password.properties I have mentioned the pasword.

After which I restarted the server and sent a email to the configured email.

While going back to conf folder I found that password.properties does not exist.
Is this the ideal functionality or something else needs to be configured?

Thanks...

OriginalPostID-90002

OriginalPostID-90002

  Discussion posts and replies are publicly visible

  • Aayush- here is some additional information on the way the password.propeties file is managed:
    forum.appian.com/.../Secure_Credentials_Store
  • 0
    Certified Senior Developer
    Hi Alex
    I forgot to mention that I am using Appian 7.2
  • When the app server starts up, configurations in password.properties are consumed and the file is deleted. This is expected behavior.
  • 0
    Certified Senior Developer
    Hi Alex,
    Thanks for the clarification, but still I am not able to start the process by email.
    Please find the whole configuration below:
    custom.properties
    conf.data.primary.datasource=jdbc/MyAppian72DB
    conf.data.datasources=jdbc/myappian72RDB
    conf.mailhandler.mail.smtp.host=<ipaddress>
    conf.mailhandler.mail.smtp.auth=false
    conf.suite.ANONYMOUS_ACCESS=true
    resources.appian.process.email-expressions.email.prefix.process=Support
    resources.appian.process.email-expressions.email.prefix.processmodel=Support
    resources.appian.process.email-expressions.email.domain=<domain>
    conf.mailhandler.email.domain=<domain>
    conf.jms.jmsInstalled=true
    server.conf.exec.AUTOARCHIVE_DELAY=25
    conf.suite.SERVER_AND_PORT=<ipaddress of server>:<port>
    conf.content.download.inline=true
    conf.mailhandler.alias.<username>=processmodeluuid<uuid>

    Now as Alias is set so the ejb-jar.xml is edit to input the details:
    <activation-config>
    <activation-config-property>
    <activation-config-property-name>ejbName</activation-config-property-name>
    <activation-config-property-value>EmailHandlerBean</activation-config-property-value>
    </activation-config-property>
    <activation-config-property>
    <activation-config-property-name>mailServer</activation-config-property-name>
    <activation-config-property-value>mailserver</activation-config-property-value>
    </activation-config-property>
    <activation-config-property>
    <activation-config-property-name>mailFolder</activation-config-property-name>
    <activation-config-property-value>INBOX</activation-config-property-value>
    </activation-config-property>
    <activation-config-property>
    <activation-config-property-name>storeProtocol</activation-config-property-name>
    <activation-config-property-value>IMAPS</activation-config-property-value>
    </activation-config-property>
    <activation-config-property>
    <activation-config-property-name>starttls</activation-config-property-name>
    <activation-config-property-value>true</activation-config-property-value>
    </activation-config-property>
    <activation-config-property>
    <activation-config-property-name>userName</activation-config-property-name>
    <activation-config-property-value>username</activation-config-property-value>
    </activation-config-property>
    <activation-config-property>
    <!-- polling interval in milliseconds
    the setting provided below is every 5 minutes
    consult your mail admin for acceptable frequecy -->
    <activation-config-property-name>pollingInterval</activation-config-property-name>
    <activation-config-property-value>300000</activation-config-property-value>
    </activation-config-property>
    </activation-config>

    Accordingly changes are done in password.properties for setting the password.

    Please let me know if I have done any mistake in the configuration mentioned above.
    Or if any other configurations are required.
  • 0
    Certified Senior Developer
    Yes, Public Event is enabled.
    Also, Start event is triggerd by Recieve Message (Email) with no event conditions.
    Process model is published.
    Subject of the mail sent to configured email id = [DestinationPMUUID=<uuid>]
  • To clarify, you are able to start this process by email without any conditions set. Once you set conditions it no longer works?
  • 0
    Certified Senior Developer
    Sorry Alex, I am not able to start the process even without any conditions set.
  • Hi aayusha, could you please let me know if you were abot to figure it out?
  • 0
    Certified Senior Developer
    I am not sure, what went wrong that time.
    But here is what needs to be done.
    Set following in custom.properties.
    conf.suite.ANONYMOUS_ACCESS=true;
    conf.mailhandler.mail.smtp.host=<domain>
    conf.mailhandler.mail.smtp.auth=true / false; #(on setting it to true, one needs to edit the password.properties too)
    conf.mailhandler.mail.user=username #(this is required only if above property is set to true.)
    Edit ejb-jar.xml
    and edit ejbName, mailServer,folder,storeprotocal,startls, username (has to be same as we had in custom.properties)
    In password.properties
    set the conf.password.EmailHandlerBean.EMAIL_HANDLER=<password>
    Process model - public event is set to true with a revcieve email message on start node. PM is published and not in My Models.