I am trying to configure the mail server on a 7.2 server. I have done the c

Certified Senior Developer
I am trying to configure the mail server on a 7.2 server.
I have done the configuration as per the wiki page - Mail Server Setup
As of now the error is saying, Connection refused
I am looking for how to configure the STARTTLS in custom.properties in 7.2 to send out emails.
Also, I want to use smtps as transport protocol.

Can anyone please point me to proper direction?

Thanks in advance.

OriginalPostID-168930

OriginalPostID-168930

  Discussion posts and replies are publicly visible

Parents
  • Did you try these settings in custom.properties:

    conf.mailhandler.mail.transport.protocol=smtps
    conf.mailhandler.mail.smtp.starttls.enable=true
    conf.mailhandler.mail.smtp.starttls.required=true

    Also, check if your mail server needs authentication to connect, then you also have to enable:
    conf.mailhandler.mail.smtp.auth=true
    And set username:
    conf.mailhandler.mail.user=<MAIL_SERVER_AUTH_USERNAME>

    Set password in password.properties, create the file if it's not already there in <APPIAN_HOME>/ear/suite.ear/conf/passwords.properties with the below entry:
    conf.password.SMTP=<MAIL_SERVER_AUTH_PASSWORD>

    Not many enterprises use secured mail server, in anycase make sure you have the right port to the mail server (Default is 25). IP is preferred than the host name, if the corporate DNS is set the right way you shouldn't worry much but IP rules out issues related to DNS:
    conf.mailhandler.mail.smtp.host=<MAIL_SERVER_IP>:<MAIL_SERVER_PORT>

    Hope this helps.
Reply
  • Did you try these settings in custom.properties:

    conf.mailhandler.mail.transport.protocol=smtps
    conf.mailhandler.mail.smtp.starttls.enable=true
    conf.mailhandler.mail.smtp.starttls.required=true

    Also, check if your mail server needs authentication to connect, then you also have to enable:
    conf.mailhandler.mail.smtp.auth=true
    And set username:
    conf.mailhandler.mail.user=<MAIL_SERVER_AUTH_USERNAME>

    Set password in password.properties, create the file if it's not already there in <APPIAN_HOME>/ear/suite.ear/conf/passwords.properties with the below entry:
    conf.password.SMTP=<MAIL_SERVER_AUTH_PASSWORD>

    Not many enterprises use secured mail server, in anycase make sure you have the right port to the mail server (Default is 25). IP is preferred than the host name, if the corporate DNS is set the right way you shouldn't worry much but IP rules out issues related to DNS:
    conf.mailhandler.mail.smtp.host=<MAIL_SERVER_IP>:<MAIL_SERVER_PORT>

    Hope this helps.
Children
No Data