MailFixIt

Microsoft message-format rejection

Fix Outlook 550 5.7.512 invalid From header

Microsoft 365 returns 5.7.512 when the message does not contain a valid RFC 5322 From email address. Fix the software that generated the message; DNS authentication changes do not repair malformed headers.

Problem description

The NDR can state:

550 5.7.512 Access denied, message must be RFC 5322 section 3.6.2 compliant
Diagnostic availability: the MailFixIt DNS checker is not relevant to this message-format error. Inspect the original message source and application configuration.
Is this temporary or permanent?

The message is permanently rejected. Generate a corrected message and submit it as a new delivery.

Common causes

How to fix it

  1. Open the original raw message and find the RFC 5322 From header.
  2. Configure one valid mailbox address, optionally with a display name.
  3. Validate generated messages before SMTP submission.
  4. Check gateway rewrite rules.
  5. Send a newly generated test message.

Frequently asked questions

Is Outlook 5.7.512 a DNS error?

No. Microsoft describes an invalid or missing RFC 5322 From address in the message.

Which From field matters?

The message's visible RFC 5322 From header, not only the SMTP envelope MAIL FROM command.

Who should fix it?

The application, device, template, or mail library that constructs the message.

Related email diagnostics

Primary sources: Microsoft Exchange Online NDR reference and RFC 5322 Internet Message Format.