Skip to Main Content

SMTP error code · permanent failure (5xx)

SMTP error 550 5.7.57: client was not authenticated to send mail

Samuel Chenard

By Samuel Chenard · CEO & Co-Founder, Palisade · Reviewed November 10, 2026

550 5.7.57 means a printer, scanner, or application connected to smtp.office365.com and tried to send mail without signing in first. That endpoint only accepts mail from a device that authenticates with a licensed Exchange Online mailbox. Enter the mailbox credentials and confirm TLS works, or move the device to direct send or SMTP relay.

550 5.7.57 at a glance
Code550 5.7.57
ClassPermanent (5xx): the message was refused and will not retry
CategoryAuthentication
Side at faultSender
Auth-relatedSign-in only: the device skipped the mailbox login. SPF matters afterwards if you move it to direct send or relay

What the bounce actually says

The exact wording varies by provider. These are the documented strings, verbatim. Match yours to pin down which variant you hit.

Microsoft 365 (Exchange Online)

550 5.7.57 Client was not authenticated to send anonymous mail during MAIL FROM

Source: learn.microsoft.com

Microsoft 365 (Exchange Online), printers and scanners guidance

5.7.57 Client not authenticated to send mail

Source: learn.microsoft.com

Why you're seeing 550 5.7.57

Microsoft's fix page for this code is short and specific: when you connect to the smtp.office365.com endpoint to submit or relay messages, you need to authenticate with the credentials of a user who has an Exchange Online mailbox, and this bounce means the connecting device or application is configured wrong. In practice the device opened the connection and issued MAIL FROM without ever completing a sign-in. The three usual reasons are that no credentials are configured at all, that the device can't negotiate TLS (which Microsoft requires before it will authenticate), or that the device was meant to use direct send but points at the client submission endpoint instead of your tenant's MX endpoint. Microsoft notes the line between user and admin is blurred here, because the fix is always in the device's own settings.

Likely causes, ranked

Likely causeWhat's happening
No mailbox credentials are configured on the deviceMicrosoft's printers page says this error occurs when the printer connects to the client submission endpoint but no mailbox logon credentials were entered in its settings. If the device has no place to enter credentials at all, Microsoft says it doesn't support client SMTP submission.
The device can't negotiate TLS, so it never gets to sign inMicrosoft's fix page says TLS is required in order to authenticate, and its device guide says client SMTP submission needs TLS 1.2 or 1.3. An older printer that offers only TLS 1.0 or no encryption reaches the server, can't start the secure session, and falls through to an anonymous MAIL FROM.
Direct send is pointed at the wrong endpointDirect send doesn't sign in, and Microsoft documents it against your tenant's MX endpoint, which ends in mail.protection.outlook.com. Pointing a direct-send device at smtp.office365.com instead produces this bounce, because that endpoint expects a mailbox login. Before fixing the endpoint, check direct send is the right choice: Microsoft recommends it only as a last resort for legacy devices that can't use the other methods.
SMTP AUTH or a legacy sign-in block stops the mailbox from authenticatingMicrosoft lists 5.7.57 beside 535 5.7.3 under the same authentication checklist: SMTP AUTH enabled on the mailbox, no MFA on it, and no security defaults or Conditional Access policy blocking legacy authentication. This applies when the device does try to sign in and 5.7.57 still appears: if credentials and TLS are both correct, work through that list next.
Decision flow for 550 5.7.57: if the device can store mailbox credentials and use TLS 1.2, configure client submission on smtp.office365.com port 587; if it can't sign in but must reach outside addresses, use SMTP relay through a connector and add the office IP to SPF; a legacy device that can do neither and emails only internal recipients can use direct send as a last resort.

How to fix 550 5.7.57

  1. Decide which of Microsoft's device sending methods to use

    Client submission signs in to smtp.office365.com on port 587 with a licensed mailbox. SMTP relay uses a connector to reach anyone without a sign-in. Direct send needs no sign-in but only reaches recipients inside your organization, and Microsoft recommends it only as a last resort for legacy devices, says it needs SPF, DKIM and DMARC set up correctly, and is working on turning it off by default. Microsoft's guide also covers High Volume Email for internal bulk mail. If the device can store credentials and do TLS 1.2, client submission is the simplest; otherwise, read Office 365 SMTP settings and prefer relay.

    Sources: Microsoft: set up a device to send email

  2. For client submission, enter the mailbox credentials and turn on TLS

    Set the server to smtp.office365.com, port 587, with TLS or STARTTLS enabled, and enter the full email address and password of the licensed mailbox the device sends as. Microsoft's fix page asks you to verify the credentials are correct and that the device can negotiate TLS.

    Sources: Microsoft: fix NDR error 5.7.57

  3. Check SMTP AUTH and legacy sign-in blocks on that mailbox

    Run Get-CASMailbox -Identity <EmailAddress> | Format-List SmtpClientAuthenticationDisabled in Exchange Online PowerShell and set it to False if it reads True. Then check MFA, security defaults, and Conditional Access policies that block legacy authentication, the same checklist Microsoft gives for 535 5.7.3.

    Sources: Microsoft: printers, scanners and LOB apps · Microsoft: enable or disable SMTP AUTH

  4. If you keep direct send, point the device at your Microsoft 365 MX endpoint

    Take the endpoint from the Microsoft 365 admin center under Settings > Domains > your domain > DNS records, the MX row's Points to address value, which ends in mail.protection.outlook.com. Use it on port 25 with no credentials. Don't copy the host from a public MX lookup if your MX points at a third-party filter, because that returns the filter, not Microsoft. Direct send only delivers to recipients in your own organization.

    Sources: Microsoft: set up a device to send email

  5. Send a test, then make sure SPF covers the path you chose

    Send a test message: to an internal mailbox if you chose direct send, or to an outside mailbox for client submission or relay. Read its headers with the email header analyzer. For relay and direct send, Microsoft asks you to add your office's static public IP to your domain's SPF record; check it with the SPF checker.

    Sources: Microsoft: set up a device to send email

Related free tools: MX lookup · SPF checker · Email header analyzer · Microsoft compliance checker

Why it matters for MSPs

5.7.57 is a classic onboarding ticket: a client's copier or line-of-business app was set up against smtp.office365.com by whoever installed it, with no credentials or with TLS off. Standardize on one method per client and write it down: client submission with a dedicated mailbox, or SMTP relay through a connector tied to the office's static IP. Microsoft asks you to add the office's static IP to SPF for both relay and direct send. For direct send it has to be there before the domain's DMARC policy reaches enforcement, or internal mail from the device fails DMARC. Palisade reads each client domain's DMARC reports, identifies every source sending as that domain, and files the ones failing SPF or DKIM as tickets in ConnectWise, HaloPSA, or Autotask. Your own MSP domain is a free NFR domain.

Questions readers ask

Frequently asked questions

What does "Client was not authenticated to send anonymous mail during MAIL FROM" mean?

A 5.7.57 "Client was not authenticated to send anonymous mail during MAIL FROM" error means the device connected to smtp.office365.com and started sending without signing in. Microsoft says that endpoint requires the credentials of a user with an Exchange Online mailbox, so the fix is in the device: add the mailbox credentials and enable TLS, or switch the device to direct send or SMTP relay.

Is 5.7.57 a 550 or a 530 error?

Microsoft's own fix page describes it as error code 550 5.7.57, and its other pages print the enhanced code 5.7.57 alone. Whatever leading number your device shows, go by the 5.7.57 and the text after it, which is what Microsoft documents.

My printer has no username or password field. What now?

A printer with no username or password field can't use client SMTP submission to Microsoft 365: Microsoft says a device with no option to enter credentials doesn't support it. SMTP relay through a connector is usually the right replacement, because it reaches outside addresses too. Direct send to your tenant's MX endpoint works for internal recipients only, and Microsoft recommends it only as a last resort for legacy devices. Office 365 SMTP settings compares the two.

What's the difference between 5.7.57 and 535 5.7.3?

5.7.57 means the device didn't sign in at all. 535 5.7.3 means it tried to sign in and Exchange Online refused the credentials, usually because SMTP AUTH is off or a security policy blocks legacy sign-ins. Microsoft lists both under one checklist.

Related error codes