550 5.7.57: client not authenticated
Quick fix
Fix the sign-in in the sending app or device: use the credentials of a user with an Exchange Online mailbox, and make sure the device can negotiate TLS.
How to fix it
- Open the sending application or device and check the credentials: Microsoft says "In the configuration of the connecting application or device, verify that the specified credentials are correct."
- Use the sign-in of a user who has an Exchange Online mailbox.
- Check that the device can negotiate TLS: Microsoft says "TLS is required in order to authenticate."
- Send a new test message from the device after each change.
Learn more: TLS certificates explained: expiry, chain and names
How to check
The mail provider check shows which service receives mail for the domain, so you can see whether Microsoft 365 is the provider you think it is. It does not connect to smtp.office365.com and cannot test the device's sign-in: that check happens in the device's own settings.
The Mail provider detection opens with your domain filled in; it runs when you press Check.
Tools to check it
What the error means
Full error text: 5.7.57 Client was not authenticated to send anonymous mail during MAIL FROM
5.7.57 in a Microsoft 365 or Exchange Online bounce is not an SPF, DKIM or DMARC error. Microsoft's list of SMTP errors gives the text as "Client was not authenticated to send anonymous mail during MAIL FROM" and the cause as "You configured an application or device to send (relay) email messages in Microsoft 365 or Office 365 using the smtp.office365.com endpoint, and an issue affects the configuration of the application or device."
The page Microsoft keeps for this error explains it: "When you connect to the smtp.office365.com endpoint to submit (relay) messages through Microsoft 365 or Office 365, you need to authenticate with the credentials of a user who has an Exchange Online mailbox. This bounce message indicates a problem in the configuration of the connecting application or device."
So the fault is in the printer, scanner, script or application that sends the mail, not in your domain's DNS. It connects without signing in, or with a sign-in Microsoft does not accept. The DNS records of the domain only matter later, once the message is accepted and receivers check SPF, DKIM and DMARC.
Sources
- Microsoft Learn: Email nondelivery reports (NDRs) and SMTP errors in Exchange Online (checked 2026-11-23)
- Microsoft Learn: Fix NDR error 5.7.57 in Exchange Online (checked 2026-11-23)