Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-74815

TLS option in the outgoing mail server page is automatically unticked after the authorization process is complete

    XMLWordPrintable

Details

    • 9.02
    • 3
    • Severity 3 - Minor
    • 1
    • Hide
      Atlassian Update – 9 June 2023

      Hi everyone,

      Thank you for taking the time to file and comment on this issue. We've reviewed it and agreed it’s a high priority for us to resolve. Our engineers have already started working on the issue.

      Please continue watching this ticket for future updates and changes in the timeline that may impact your work.

      Show
      Atlassian Update – 9 June 2023 Hi everyone, Thank you for taking the time to file and comment on this issue. We've reviewed it and agreed it’s a high priority for us to resolve. Our engineers have already started working on the issue. Please continue watching this ticket for future updates and changes in the timeline that may impact your work.

    Description

      Issue Description

      The Oauth 2.0 authentication for the Outgoing Mail Server functionality was introduced in Jira 9.2.0 as per Jira 9.2 release notes.

      To be able to configure an Outgoing Mail Server with Oauth 2.0, it is necessary to click on the Authorize button to go through the Authorization process before saving the outgoing mail server configuration.

      The problem introduced with this new configuration is described below:

      If the TLS option was already ticked on the Outgoing Mail Server page, Jira will automatically un-tick the TLS option after the authorization process is complete (while it should keep this option ticked).

      Steps to replicate

      • Install Jira Server/Data Center on 9.2.0 or any higher version
      • Configure an application link with an Oauth 2.0 integration as per Configure an outgoing link
      • Go to ⚙ > System > Outgoing Mail
      • Create a new Outgoing Mail configuration as follows:
        • Select Microsoft as the provider
        • Choose Oauth 2.0 as the authentication method
        • Note that at this point, the port, hostname, TLS fields are not visible although they have been automatically set by Jira
        • Click on the Authorize button and log in as the right MS user to authorize Jira to access the mail server
      • Test the connection and save the outgoing mail configuration
      • From the ⚙ > System > Outgoing Mail page, click on the Edit button to edit the existing configuration
      • This time, we can see all the fields (hostname, port, TLS...)
        • Note that the TLS option is ticked at this point:
      • Go again through the authorization process by clicking on the Authorize button

      Expected results

      After the Authorization is completed, the TLS option should still be ticked.

      Actual results

      After the Authorization is completed, the TLS option is automatically un-ticked:

      This can cause the following issue:

      • If the Jira admin does not realize that the TLS option was unticked, this user might save the outgoing mail configuration as it is (without the TLS option ticked)
      • When sending a new test email, this operation will fail with the following TLS related error
      An error has occurred with sending the test email:
      com.atlassian.mail.MailException: com.sun.mail.smtp.SMTPSendFailedException: 451 5.7.3 STARTTLS is required to send mail [DUZPR01CA0266.eurprd01.prod.exchangelabs.com 2023-02-10T14:23:13.634Z 08DB0AEE98884E16]
      
      	at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:224)
      	at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:176)
      	at com.atlassian.jira.plugins.mail.webwork.SendTestMail.doExecute(SendTestMail.java:99)
      

      Workaround

      • Edit the outgoing mail configuration
      • Tick the TLS option
      • Click on "Test Connection" and verify that it is successful
      • Save the configuration
      • Send a new test email and verify that the test is successful this time

      Looking forward to hearing back from you.

      Best,

      Julien

      Attachments

        1. ReplicationSteps_1.png
          ReplicationSteps_1.png
          121 kB
        2. ReplicationSteps_2.png
          ReplicationSteps_2.png
          132 kB
        3. ReplicationSteps_3.png
          ReplicationSteps_3.png
          131 kB
        4. ReplicationSteps_4.png
          ReplicationSteps_4.png
          112 kB
        5. ReplicationSteps_5.png
          ReplicationSteps_5.png
          63 kB

        Issue Links

          Activity

            People

              mmarzecki Mateusz Marzęcki
              jrey Julien Rey
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: