5.7.57: client not authenticated to send mail

If a copier or scanner sends through smtp.office365.com and the scan comes back with "5.7.57 Client not authenticated to send mail", or "Client was not authenticated to send anonymous mail during MAIL FROM", Microsoft 365 got a message from a device that never finished signing in. Here is what Microsoft says causes it, how we would check each cause, and what to do.

Have us handle the setup: $149 per office Paid only after your test scans arrive. Prefer to do it yourself? The Scan Relay trial is free for 14 days.

What the error means

smtp.office365.com is Microsoft's endpoint for SMTP AUTH client submission. Anything sending through it has to sign in first with the email address and password of a user who has an Exchange Online mailbox. 5.7.57 means the device tried to send a message without a successful sign-in, so Microsoft 365 refused it. Microsoft's own article on 5.7.57 puts it down to the configuration of the device or app.

It comes in two common forms, and they point in different directions:

On the copier you'll rarely see the code itself. Most models show a generic send error or the scan just never arrives. The full reply is sometimes in the copier's job log or email log.

The checks Microsoft lists

Microsoft's troubleshooting article for printers, scanners and line-of-business apps gives these, roughly in this order:

  1. Server, port and TLS. smtp.office365.com, port 587 (or 25), with STARTTLS (often just called TLS) on. Microsoft notes TLS is required before the device can sign in, and that it needs TLS 1.2 or later. An old copier that can't do TLS 1.2 may need a firmware update.
  2. Sign-in turned on, with a username and password filled in. If the copier never asked for a password, it isn't signing in, and smtp.office365.com won't take its mail. Copiers without any sign-in option need Direct Send or a connector instead.
  3. The right password. If the mailbox password changed, the copier still has the old one. Microsoft suggests signing in to Outlook on the web with the same username and password and sending a test email, which also shows whether the mailbox is blocked.
  4. SMTP AUTH allowed for that mailbox. In Exchange Online PowerShell, Get-CASMailbox -Identity scanner@yourdomain.com | Format-List SmtpClientAuthenticationDisabled. If it says True, SMTP AUTH is off for that mailbox.
  5. MFA, security defaults or Conditional Access. A copier can't answer a multi-factor prompt, and security defaults or a Conditional Access policy that blocks legacy authentication will stop a password-only sign-in. Microsoft's article lists turning these off or excluding the mailbox, and warns not to touch security defaults unless you understand the risks. We agree with the warning: switching security defaults off weakens sign-in for everyone in the organization to keep one copier going.

Is this the December 2026 change?

Not by itself. 5.7.57 has been around for years and usually means a setting or a password, not a Microsoft deadline. The change Microsoft has announced is that SMTP AUTH with basic authentication is disabled by default for existing organizations at the end of December 2026. When that is what blocks a copier, the reply we'd expect is 5.7.139, basic authentication is disabled. Some copiers report a failed sign-in loosely, though, so if the checks above all look right and the trouble started around then, the basic authentication change is worth ruling out. The Entra sign-in logs, filtered to the copier's mailbox, usually show the real reason for a failed sign-in.

Your options once you know the cause

  1. Correct the setting. If it was a missing sign-in, a changed password, or SMTP AUTH off for that mailbox, putting it right gets scans moving today. If you turn SMTP AUTH back on, it's a stopgap: how that works and what it costs you.
  2. Switch the copier to OAuth, Microsoft's modern sign-in, if its firmware supports it. Then MFA and security defaults stop being a problem. Ask your dealer.
  3. Send without signing in, through Direct Send (internal recipients only) or a connector (needs a static public IP). Microsoft's options compared.
  4. Put a local relay in between. This helps when the cause is MFA, security defaults or basic authentication being off, and the copier has no OAuth. Scan Relay, which we make, runs on an always-on office PC. The copier sends to that PC on port 25 with no password, and Scan Relay signs in to Microsoft 365 once through Microsoft's own sign-in page, MFA included, and sends each scan through Microsoft Graph with OAuth. Free for 14 days, then $99 once per office.
  5. Have someone do it for you. We handle the setup for $149 per office, paid only after your test scans arrive.

Questions

The copier worked yesterday. What changes overnight?

Most often the mailbox password (an expiry or a reset), MFA or security defaults being turned on for the organization, or a new Conditional Access policy. Ask whoever manages Microsoft 365 what changed that day.

Can I just leave the username and password blank?

Not with smtp.office365.com; that's exactly what produces "Client was not authenticated to send anonymous mail during MAIL FROM". Sending without a sign-in needs the mail.protection.outlook.com endpoint (Direct Send or a connector), or a local relay.

Where is Microsoft's own article?

Issues with printers, scanners and LOB apps that send email using Microsoft 365, and the shorter 5.7.57 article. Microsoft updates these from time to time, so check them for the current steps.

Not sure how your copier sends?

answer three quick questions from the copier's email settings.

Related

Have us handle the setup: $149 per office Paid only after your test scans arrive. Prefer to do it yourself? The Scan Relay trial is free for 14 days.

Microsoft Publisher, Word and PowerPoint are trademarks of Microsoft; PageMaker and InDesign of Adobe; Canva and Affinity of Canva. We're not affiliated with any of them.