Bounce code · Permanent

5.7.12: Recipient takes only internal mail (Microsoft 365)

The Microsoft 365 recipient accepts mail only from senders inside its own organization, and your message came from outside. It is permanent: your server does not retry, and only the recipient's admin can change the setting. Look for a public contact address, or ask someone inside to forward your message.

How to fix itEvery bounce code

PermanentSecurity or policy status

5.7.12

What happens
Not retried
Registry name
A password transition is needed
Who uses it
Microsoft (Exchange Online)

At a glance

  • Type: permanent failure (class 5, RFC 3463 §2). The sending server does not retry it and reports the failure to the sender: a bounce message, or an error in the mail app.
  • Basic code: varies; the enhanced code is the part that identifies the problem.
  • Enhanced code 5.7.12: “A password transition is needed” in the IANA registry (RFC 4954), in the group security or policy status (RFC 3463 §3.8).
  • Who uses it: Microsoft (Exchange Online): the sender was not authenticated by the organization; the IANA registry name of X.7.12 is a password transition (RFC 4954).

A 5.7.12 bounce from Microsoft 365 means the address you wrote to is closed to outside mail. The address works. It just does not take mail from senders outside its organization.

What it means

Microsoft uses 5.7.12 with its own meaning. Its Exchange Online NDR reference gives the text Sender was not authenticated by organization. The recipient is set to reject messages sent from outside its organization. Microsoft says only an email admin of that organization can change this.

The IANA registry gives X.7.12 a different meaning: "A password transition is needed", from RFC 4954. That is a reply to a mail app signing in to send, explained on 432 4.7.12. If Microsoft 365 bounced a message you sent, Microsoft's meaning is the one that applies.

"Not authenticated" here is not about SPF, DKIM or DMARC. It means you are not a signed-in member of the recipient's organization. Microsoft uses 5.7.133 to 5.7.136 for the same refusal by a group, a mailbox, a public folder or a mail user. They are explained on 5.7.133.

Common causes

  • The address is an internal group, list or shared mailbox meant only for staff.
  • You are a partner, customer or former employee writing to an address set up for internal use.
  • You belong to the organization but sent from a personal or outside account.
  • A website form, ticket system or app sends from outside the organization to an internal-only address.

How to fix it

If you are the sender:

  1. Check whether you meant a public address, such as a support or sales contact.
  2. If you have an account in the recipient's organization, send from that account.
  3. Ask a contact inside the organization to forward your message. They can also ask their admin to open the address to outside senders.

If you run the recipient's organization:

  1. Decide whether this recipient should take mail from outside at all.
  2. If it should, change its setting that rejects mail from outside the organization. Leave it closed if internal-only is what you want.

Nothing in the sender's own setup fixes this. Better SPF or DKIM records will not help.

What to do with the address

Keep it. The address exists and works. It is closed to outside mail, and that is the recipient admin's choice.

The address on your list is not what failed here. For the bounces your list does cause, clean the list before you send.

Get up to 500 free credits. No card needed.

Fewer bounces start with a clean list: check addresses before you send.

Updated · Maintained by: Email Validation LLC