Office365 SMTP configuration receives authentication errors
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
問題
atlassian-jira.log
に次のメッセージが表示される。
Unable to connect to the server at smtp.office365.com due to the following exception: javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful
atlassian-jira-outgoing-mail.log
に次のメッセージが表示される。
MessageId='null' com.atlassian.mail.MailException: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not authenticated
診断
The JIRA Server is unable to send mail to the Office365 SMTP server because it fails to authenticate. This can happen even if it is able to receive mail successfully.
原因
For the username, Office365 requires the username in your SMTP configuration to be your full email address, which includes the domain. For example: your_username@yourOffice365domain.com
ソリューション
Go to Administration > Outgoing Mail, and Edit the SMTP Server configuration. When filling out the Username, put in the full email address.
Additionally, Microsoft frequently requires password updates, so it is advisable to check your Office365 account by logging in directly with Microsoft to make sure that a password change is not currently mandated.
For further reference, review the following configuration information from Microsoft:
Outlook settings for POP and IMAP access for Office 365 for business or Microsoft Exchange accounts