We are having trouble completing the mail configuration for SMTP and Incoming mail with Office 365. After complete the SMTP setup and test we receive a successful connection. However, when sending a test message we receive an error.
"530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL"
The other other issue is incoming mail setup. We have tried Secure (POP and IMAP) and both option fails with error:
"AuthenticationFailedException: AUTHENTICATE failed."
Hi Shoaib, so I did this the other day. What I’ve done is point at the mx record address for your domain. You can use mx toolbox.com to figure out what that is, but typically <domainkey>.mail.protection.outlook.com.
Leave it at port 25 and tick tls to enable.
Leave the username and pw blank.
Now - you may have to whitelist the public ip your server is coming from to allow mail in via the office 365 exchange admin tools.
This setup im running perfectly on jira / confluence/ bitbucket at 2 sites.
hi Andrew, Thank for the quick response. I tried increasing the timeout to 500000 but receive the same error message "530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM". We are using Office 365 as our mail provider.
I've configured the credentials to the account is correct and able to send from the mailbox without issue.
I did some more searching on this, thanks for mentioning the office365 aspect here. Please take a look at this related post from Microsoft's Answers site:
On that post, Taranvir indicates that this specific error message means the client (JIRA) can't direct send mail to the address you have posted there. As such you will likely need to reach out to mail admin in order to see if an MX record needs to be adjusted so that you direct send mail with Jira.
I've tried several different configuration method using Office 365 SMTP as well as Direct Send options. Jira still gives the same error message when trying to send a test message. The setup cannot be this troublesome. The error message indicates "Client was not authenticated to send anonymous mail" and I do not under why. We have a dedicated account assigned and have confirmed the credentials are correct.
SMTP Port: 587
Test connection and received "The connection was successful."
Sending a test message receive error:
"An error has occurred with sending the test email:
com.atlassian.mail.MailException: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM [CO2PR04CA0122.namprd04.prod.outlook.com]"
None of the documentation provided has helped.
Gregory's comment is correct, there's also some more information in my comment on the following if this helps you:
Hello Community 👋, I'm a product manager at Atlassian, looking at improving change management capabilities across our products. In particular, we're looking at bridging the gap between Dev & ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events