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

Exchange with authentication requires From address matches the authenticated user

      I upgraded from 4.4.1 to 5.2.4 and I have enabled sending email but not reading email with:

      DISABLE_NOTIFICATIONS=" -Datlassian.mail.senddisabled=false - Datlassian.mail.fetchdisabled=true -Datlassian.mail.popdisabled=true"
      

      Sending email with no authentication via Exchange works fine. But using authentication produces the message

      An error has occurred with sending the test email:
      com.atlassian.mail.MailException: com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Client does not have permissions to send as this sender
      

      Googling found http://community.office365.com/en-us/forums/160/p/77364/296367.aspx#296367 which suggests that this is a response from Exchange when the From address doesn't match the userid that authenticated with Exchange.

      Sure enough, when I changed the From address in my mail server configuration to match the user id that authenticated with Exchange, it worked.

      This regression is likely going to be a problem for people who have been using different From addresses for each JIRA project in their Notification Scheme configuration (https://confluence.atlassian.com/display/JIRA/Configuring+Email+Notifications#ConfiguringEmailNotifications-Configuringaproject'semailaddress)

      More information at https://answers.atlassian.com/questions/114796/jira-unable-to-send-mail-after-5-2-upgrade?page=1#123213

      Workaround
      Please refer to 550 5.7.1 Unable to Relay Mail From Exchange Server for a list of symptoms and the resolution.

          Form Name

            [JRASERVER-31238] Exchange with authentication requires From address matches the authenticated user

            Conny Postma made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 120983 ]
            Renata Dornelas made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 106044 ]
            Bugfix Automation Bot made changes -
            Minimum Version New: 5.02
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2849657 ] New: JAC Bug Workflow v3 [ 2929550 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Keri Duthie (Inactive) made changes -
            Description Original: I upgraded from 4.4.1 to 5.2.4 and I have enabled sending email but not reading email with:


            {noformat}
            DISABLE_NOTIFICATIONS=" -Datlassian.mail.senddisabled=false - Datlassian.mail.fetchdisabled=true -Datlassian.mail.popdisabled=true"
            {noformat}

            Sending email with no authentication via Exchange works fine. But sing authentication produces the message


            {noformat}
            An error has occurred with sending the test email:
            com.atlassian.mail.MailException: com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Client does not have permissions to send as this sender
            {noformat}

            Googling found http://community.office365.com/en-us/forums/160/p/77364/296367.aspx#296367 which suggests that this is a response from Exchange when the From address doesn't match the userid that authenticated with Exchange.

            Sure enough, when I changed the From address in my mail server configuration to match the user id that authenticated with Exchange, it worked.

            *This regression is likely going to be a problem for people who have been using different From addresses for each JIRA project* in their Notification Scheme configuration (https://confluence.atlassian.com/display/JIRA/Configuring+Email+Notifications#ConfiguringEmailNotifications-Configuringaproject'semailaddress)

            More information at https://answers.atlassian.com/questions/114796/jira-unable-to-send-mail-after-5-2-upgrade?page=1#123213

            *Workaround*
            Please refer to [550 5.7.1 Unable to Relay Mail From Exchange Server|https://confluence.atlassian.com/display/JIRAKB/550+5.7.1+Unable+to+Relay+Mail+From+Exchange+Server] for a list of symptoms and the resolution.
            New: I upgraded from 4.4.1 to 5.2.4 and I have enabled sending email but not reading email with:


            {noformat}
            DISABLE_NOTIFICATIONS=" -Datlassian.mail.senddisabled=false - Datlassian.mail.fetchdisabled=true -Datlassian.mail.popdisabled=true"
            {noformat}

            Sending email with no authentication via Exchange works fine. But using authentication produces the message


            {noformat}
            An error has occurred with sending the test email:
            com.atlassian.mail.MailException: com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Client does not have permissions to send as this sender
            {noformat}

            Googling found http://community.office365.com/en-us/forums/160/p/77364/296367.aspx#296367 which suggests that this is a response from Exchange when the From address doesn't match the userid that authenticated with Exchange.

            Sure enough, when I changed the From address in my mail server configuration to match the user id that authenticated with Exchange, it worked.

            *This regression is likely going to be a problem for people who have been using different From addresses for each JIRA project* in their Notification Scheme configuration (https://confluence.atlassian.com/display/JIRA/Configuring+Email+Notifications#ConfiguringEmailNotifications-Configuringaproject'semailaddress)

            More information at https://answers.atlassian.com/questions/114796/jira-unable-to-send-mail-after-5-2-upgrade?page=1#123213

            *Workaround*
            Please refer to [550 5.7.1 Unable to Relay Mail From Exchange Server|https://confluence.atlassian.com/display/JIRAKB/550+5.7.1+Unable+to+Relay+Mail+From+Exchange+Server] for a list of symptoms and the resolution.
            Owen made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v7 - Restricted [ 2584716 ] New: JAC Bug Workflow v2 [ 2849657 ]

            Ornaldo added a comment - - edited

            Hello dears,

            I was looking for an issue that we have with our Jira Server and i found this topic. We have the same error. If we try to authenticate with a normal user and try to send mail we have error:

            An error has occurred with sending the test email:

            com.atlassian.mail.MailException: com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Client does not have permissions to send as this sender

            But if we try to authenticate with a domain admin the error is gone and the mail is working fine.

            If we try to change the From address in my mail server configuration to match the user id that authenticated with Exchange, it's not working .If we try to change the From address in my mail server configuration to match the domain user admin id that authenticated with Exchange, it's working 

            Please could you help us solving this issue?

            Thank You

            Ornaldo added a comment - - edited Hello dears, I was looking for an issue that we have with our Jira Server and i found this topic. We have the same error. If we try to authenticate with a normal user and try to send mail we have error: An error has occurred with sending the test email: com.atlassian.mail.MailException: com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Client does not have permissions to send as this sender But if we try to authenticate with a domain admin the error is gone and the mail is working fine. If we try to change the From address in my mail server configuration to match the user id that authenticated with Exchange, it's not working .If we try to change the From address in my mail server configuration to match the domain user admin id that authenticated with Exchange, it's working  Please could you help us solving this issue? Thank You
            Ignat (Inactive) made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v6 - Restricted [ 1544790 ] New: JIRA Bug Workflow w Kanban v7 - Restricted [ 2584716 ]
            Confluence Escalation Bot (Inactive) made changes -
            Labels New: affects-server
            Owen made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v6 [ 679730 ] New: JIRA Bug Workflow w Kanban v6 - Restricted [ 1544790 ]

              Unassigned Unassigned
              73d805a2526b MattS
              Affected customers:
              7 This affects my team
              Watchers:
              19 Start watching this issue

                Created:
                Updated:
                Resolved: