How to configure SMTP on Jira Align self-hosted requiring SSL/TLS and Authentication
Summary
This article describes on how to setup SMTP on Jira Align self-hosted instance where the mailbox server needs mailbox authentication and secure connectivity on TLS/SSL ports.
Environment
Jira Align self-hosted
Solution
Please inform the mail server administrator to configure the below:
A dedicated mailbox for Jira Align
The password of the mailbox/AD user should never expire.
The mailbox storage should be unlimited or archiving enabled in case the SMTP saves email on the mailbox
Gather the below details from the mailbox administrator:
What is the SMTP server hostname?
What is the mailbox address configured for Jira Align?
Is there a corresponding Active Directory account for the mailbox?
Does SMTP use secure port such on TLS/SSL? (by default, port 25 is non-secure, secure ports = 465 or 587)
What is the port number for SMTP?
Does the SMTP connection need authentication?
What is the domain name of the user account associated with the mailbox?
What is the user name of the account associated with the mailbox?
Testing SMTP connectivity from Jira Align server
Install Telnet Client
Open CMD prompt as admin
Telnet to mail server on the port provided by mail server admin - telnet <mailserver_hostname> <port> (e.g. telnet mail.contoso.com 587)
pass the command "EHLO <mailserver_hostname>
pass the command "AUTH LOGIN"
pass the user name as base64 encoded string. Use a trusted public base64 encoder such as https://www.base64encode.org/. Note, is using "domain\username", encode the "domain\username" as the base64 username.
pass the password as base64 encoded string when prompted
"235 Authentication succeeded" message is expected.
configuring Jira Align with SMTP details:
Open [ROOT_DIRECTORY]\BackofficeService\ServiceTasks.BackOffice.dll.config.
replace “smtp_from_email_address” with the mailbox address gathered in step-2
Configure the network element using the below details:
<network
clientDomain="string" ---→ domain name gathered in Step-2
enableSsl="true|false" ---→ based on step-2 (25 - false, 465/587 - true)
host="string" ---→ SMTP server hostname
password="string" ---→ SMTP user password
port="integer" ---→ SMTP port
userName="string" ---→ SMTP username
/>
Start the BackOffice_Service from Services.msc
Check for any error on the BackOffice_Service logs.
Was this helpful?