Exchange Online mail delivery (NDR)

Exchange Online NDR 550 5.7.57: client not authenticated to send mail

Error 5.7.57 means a device or app sent through smtp.office365.com without valid authentication. Check credentials, TLS 1.2, SMTP AUTH and the sending method.

By EpiFive Editorial TeamSources checked How we check our guides

What the error means

5.7.57 is returned to applications and devices, such as scanners, printers and line-of-business apps, that submit mail through the smtp.office365.com endpoint. Microsoft's article explains that when you connect to that endpoint to submit (relay) messages through Microsoft 365, you need to authenticate with the credentials of a user who has an Exchange Online mailbox. The error indicates a problem in the configuration of the connecting application or device.

Microsoft's NDR table gives the full text as "Client was not authenticated to send anonymous mail during MAIL FROM." Microsoft adds that the line between end user and admin is blurred for this error, because the fix is always in the device or application settings, sometimes with a tenant setting behind it.

Common causes

From Microsoft's printer and application troubleshooting article:

  • No mailbox credentials were entered in the device, so it tries to send anonymously to smtp.office365.com.
  • The username or password is wrong, or the mailbox is blocked for sending spam.
  • The device cannot negotiate TLS 1.2 or above, so it cannot authenticate.
  • SMTP AUTH (authenticated SMTP submission) is disabled for the mailbox.
  • Multifactor authentication, security defaults or a Conditional Access policy that blocks legacy authentication applies to the mailbox the device signs in with.
  • The device was set up for direct send but points at smtp.office365.com instead of the MX endpoint.

How to fix it

1. Check the server, port, TLS and credentials

Microsoft's settings for SMTP AUTH client submission are server smtp.office365.com, port 587 (recommended) or 25, TLS/StartTLS enabled, and the sign-in credentials of the mailbox the device uses. If the device did not ask for a password, it is not signing in. Test the same username and password by signing in to Outlook on the web and sending a test message, which also shows whether the mailbox is blocked.

2. Make sure the device supports TLS 1.2

Microsoft says devices must support TLS 1.2 or above. Update the firmware or application, or contact the manufacturer. Microsoft documents an opt-in for legacy TLS clients, which then submit to smtp-legacy.office365.com; use it only for devices that cannot be updated.

3. Admins: enable SMTP AUTH for the mailbox

In Exchange Online PowerShell, check the mailbox the device uses. If the value is True, SMTP AUTH is disabled for it:

Get-CASMailbox -Identity <EmailAddress> | Format-List SmtpClientAuthenticationDisabled
Set-CASMailbox -Identity <EmailAddress> -SmtpClientAuthenticationDisabled $false

4. Admins: review MFA, security defaults and Conditional Access

Microsoft's article lists disabling MFA for the mailbox, turning off security defaults, or excluding the mailbox from the Conditional Access policy that blocks legacy authentication. Microsoft marks the security defaults change with a caution not to do it unless you understand the risks. Weigh these carefully, because each weakens protection for that account.

5. Switch to direct send or SMTP relay when the device cannot sign in

If the device has no credential fields, or must send as an address other than the one it signs in with, Microsoft recommends direct send (to the MX endpoint ending in mail.protection.outlook.com) or Microsoft 365 SMTP relay through a connector. Direct send reaches only internal recipients.

If nothing works

Microsoft provides an automated diagnostic for applications and devices that send email through Microsoft 365; it needs a Microsoft 365 administrator account. To compare the three sending methods, see SMTP AUTH vs Direct Send vs relay, and for printers specifically, Scan to Email with Microsoft 365.

What we checked

Three Microsoft Learn pages were read on 2026-11-21. Microsoft's article Fix NDR error "550 5.7.57" in Exchange Online explains the authentication requirement on smtp.office365.com and the credential and TLS checks. The NDR reference table gives the full error text. The printer, scanner and LOB application article lists 5.7.57 under authentication errors with the SMTP AUTH, MFA, security defaults and Conditional Access checks, and the anonymous MAIL FROM case. The error was not reproduced for this page.

Last checked: 2026-11-21.

Official sources

Questions people ask

What does 5.7.57 mean?

Microsoft says that when you connect to smtp.office365.com to submit mail, you must authenticate with the credentials of a user who has an Exchange Online mailbox. 5.7.57 means the connecting application or device is not configured correctly for that.

My printer has no password field. Can it use smtp.office365.com?

No. Microsoft says that if there is no option to enter credentials, the printer does not support SMTP client submission; use direct send or Microsoft 365 SMTP relay instead.

Is 5.7.57 a TLS problem?

It can be. Microsoft says TLS is required to authenticate, and devices must support TLS 1.2 or above. Update the firmware or application, or use a sending option where TLS is optional.

Guides that mention 5.7.57

Not your code?

Search the error code library, or report a code we don't cover. Spotted something out of date on this page? Report a correction.