The scanner worked for two years. Then Monday morning the help desk gets: "Scan to email stopped." Or a new line-of-business app goes live and every message bounces with 5.7.57 or 5.7.60. The device log is one line long and the Microsoft 365 admin center shows nothing wrong.
These bounces come from SMTP AUTH client submission: a printer, scanner, or app signing in to smtp.office365.com with a mailbox. This post is a read-first order: confirm which of the three sending methods the device uses, match the exact error, check the mailbox, and only then change anything. Nothing here changes a tenant unless a step says so.
TL;DR
- First decide which method the device uses. SMTP AUTH client submission, direct send, and SMTP relay each fail differently.
- 5.7.57 or 535 5.7.3: the device is not authenticating, or authentication is failing. Check credentials, TLS, SMTP AUTH on the mailbox, MFA, security defaults, and Conditional Access.
- 5.7.60: the device signs in as one address and sends as another. Fix the From address, or use SMTP relay instead.
- TLS 1.2 or later is required. Old firmware is a common silent cause.
- Do not disable MFA or security defaults tenant-wide as a first move. Microsoft lists them as possible causes, with a caution. Scope any exception to the one mailbox.
Step 1: Which method is the device using?
Microsoft describes three options. Read the device's settings:
Server is smtp.office365.com, mailbox + password entered -> SMTP AUTH client submission Server ends in mail.protection.outlook.com, no connector -> Direct send (internal recipients only) Server ends in mail.protection.outlook.com, connector -> SMTP relay (internal and external) 5.7.57 and 5.7.60 belong to the first row. If the device uses direct send or relay, this post is not your problem; look at connectors and the sending IP instead.
Step 2: Read the exact error
535 5.7.3 Authentication unsuccessful 5.7.57 Client not authenticated to send mail (NDR table: Client was not authenticated to send anonymous mail during MAIL FROM) 5.7.60 SMTP; Client does not have permissions to send as this sender Microsoft's NDR article says 5.7.57 means a problem in the configuration of the connecting application or device. The first fix it lists is to verify the credentials and confirm the device can negotiate TLS.
Step 3: Check the device settings
Microsoft's table for SMTP AUTH client submission:
| Setting | Value |
|---|---|
| Server / smart host | smtp.office365.com |
| Port | 587 (recommended) or 25 |
| TLS / StartTLS | Enabled |
| Username and password | Sign-in credentials of the licensed mailbox the device uses |
If the device does not ask for a password at all, it is trying to send anonymously. Microsoft says client submission requires a sign-in, and that this is the cause of "Client was not authenticated to send anonymous mail during MAIL FROM". If the device has no field for credentials, it does not support client submission. Use direct send or SMTP relay.
Step 4: Prove the network path
From a machine on the same network as the device:
Test-NetConnection smtp.office365.com -Port 587 A failure means a firewall or ISP is blocking the port, not Microsoft 365. Microsoft also notes that a device defaulting to port 465 does not support the required TLS versions for client submission.
Step 5: TLS version
Microsoft says the device must support TLS 1.2 or above, and that connections using TLS 1.0 or 1.1 are rejected. Update the firmware or the app first. Microsoft documents an opt-in for legacy clients using smtp-legacy.office365.com and the AllowLegacyTLSClients setting in Set-TransportConfig, but that keeps a weak protocol alive. Treat it as a temporary bridge, not a fix.
Step 6: Is SMTP AUTH enabled on the mailbox?
Microsoft's check, which only reads:
Connect-ExchangeOnline Get-CASMailbox -Identity scanner@contoso.com | Format-List SmtpClientAuthenticationDisabled If the value is True, SMTP AUTH is off for that mailbox. Microsoft also notes that SMTP AUTH is disabled by default for organizations created after January 2020, but can be enabled per mailbox. Enabling it is a change, so do it on the one device mailbox only:
# CHANGE: enable SMTP AUTH for this one mailbox Set-CASMailbox -Identity scanner@contoso.com -SmtpClientAuthenticationDisabled $false Step 7: Check sign-in, MFA and Conditional Access
Test the device's account by signing in to Outlook on the web and sending a test message. That proves the password works and that the mailbox is not blocked for sending spam. If it is blocked, see Microsoft's Restricted Users portal guidance.
If sign-in works but the device still fails, Microsoft's article lists these causes:
- MFA is enabled for the mailbox. A device cannot answer a prompt.
- Security defaults are on.
- A Conditional Access policy blocks legacy authentication for that user.
Look in the Entra sign-in logs for the device mailbox before changing policy. The reason the sign-in failed is recorded there. If a Conditional Access policy is the cause, Microsoft's fix is to exclude only that mailbox from the legacy-authentication block. Microsoft also notes that its steps for turning off security defaults carry risk, so do not do that unless you understand it. Prefer OAuth where the app supports it.
Step 8: 5.7.60, Send As
SMTP AUTH client submission sends as the account that signs in. If the device signs in as sales@contoso.com but sends as salesperson1@contoso.com, you get 5.7.60. Two fixes:
- Set the device's From address to the same mailbox it signs in with.
- If it genuinely must send as another address, Microsoft says the sign-in account needs Send As permission on that mailbox. For a device that behaves this way, Microsoft recommends SMTP relay instead.
# Read-only: who already has Send As on the mailbox? Get-RecipientPermission -Identity salesperson1@contoso.com | Where-Object { $_.AccessRights -contains 'SendAs' } | Format-Table Trustee, AccessRights Free tool: https://sysadmin-toolbox.pages.dev/guides/exchange-online-5-7-57-client-not-authenticated/
What the result means
| What you found | Likely cause and next move |
|---|---|
| No password field, "anonymous mail" text | Device cannot do client submission: use direct send or SMTP relay |
| Port 587 test fails | Network or ISP block: fix the firewall |
| Old firmware, TLS 1.0 or 1.1 | Update firmware; legacy endpoint only as a temporary bridge |
| SmtpClientAuthenticationDisabled is True | Enable SMTP AUTH on that one mailbox |
| Outlook on the web works, device fails | Check MFA, security defaults, Conditional Access in sign-in logs |
| 5.7.60 | From address differs from sign-in account: match it, grant Send As, or use relay |
Common false starts
- "Reset the password and move on." If the password was right, you just broke the next device that shares the mailbox.
- "Turn off MFA for everyone." Scope it to the one device mailbox, or use OAuth.
- "Turn off security defaults." Microsoft cautions against this unless you understand the risk.
- "Use any From address." Client submission signs as the logged-in account.
- "Leave legacy TLS on." It is a bridge until the firmware is updated.
Related posts
- Exchange Online 550 5.7.708, 5.7.705, 5.7.750 tenant outbound block (tenant-side NDRs)
- Exchange Online 550 5.1.10 Recipient Not Found (recipient-side NDR)
Free checklist
Excluding one service mailbox from a legacy-authentication block is the kind of change you want planned, not improvised. The free Conditional Access pre-enforcement checklist keeps break-glass accounts, pilot groups, and report-only review on one page:
Sources: Microsoft Learn, "Fix NDR error 5.7.57 in Exchange Online", "Fix issues with printers, scanners, and LOB apps that send email using Microsoft 365", and "Email nondelivery reports (NDRs) and SMTP errors in Exchange Online". Commands are read-only unless marked CHANGE. Test in a lab first.

