Fix SPF Sender Invalid Error in Exchange External Mail Routing
Question details
The user needs to configure an external-to-internal-to-external mail route in Exchange without triggering SPF validation failures, such as the Mimecast 550 error.

- Product
- Microsoft Exchange Online
- Device & OS
- not provided
- Scenario
- Redirecting an externally received email to another external address via Exchange.
- Observed behavior
- The redirection process causes SPF validation failures, often resulting in bounced emails and errors stating 'Mimecast 550 SPF Sender Invalid'.
Ensure you have Exchange Administrator permissions and access to your domain's DNS settings to review mail flow rules and verify SPF records.
Configure Exchange Transport Rules and Verify SPF Alignment
Review your Exchange routing rules and DNS configurations to ensure your domain's sending IP addresses are properly authorized.
Redirecting messages from external senders through your internal systems to another external address can break SPF alignment, as the final destination sees your server's IP rather than the original sender's IP.
To resolve this, you must ensure appropriate mail flow rules are in place and that your SPF records correctly encompass your Exchange Online environment.
Log in to the Microsoft 365 admin portal with administrator credentials, navigate to the Exchange Admin Center (EAC), and select 'Mail flow' followed by 'Rules'.
Locate the rule redirecting messages from the external sender to the internal recipient, and the subsequent rule routing from internal to external. Verify they are designed properly for your routing needs without altering envelope senders improperly.
Log in to your DNS hosting provider's portal. Check your domain's TXT records to confirm that your internal SPF record includes the IP addresses of your Exchange Online servers (e.g., using 'include:spf.protection.outlook.com').

Coordinate with the Original Sender's IT Team
If the Mimecast 550 error persists, the original external sender's SPF record may lack the necessary IP authorizations, requiring their IT team to intervene.
Enhance Your Daily Productivity with WPS Office
While resolving Exchange mail routing and SPF failures requires server-side administrative tools, handling your daily documents doesn't have to be complicated. WPS Office is a free, lightweight, and highly compatible alternative to Microsoft Office, perfect for managing all your reports, spreadsheets, and presentations.
- 1. Download the Software: Visit the WPS Office website and download the free installation package for your operating system.
- 2. Install WPS Office: Run the setup file and follow the quick installation prompts to complete the setup.
- 3. Open Your Documents: Launch WPS Office to instantly open and edit your existing Microsoft Office files without losing any formatting.

Frequently Asked Questions
What does the 'Mimecast 550 SPF Sender Invalid' error mean?
This error occurs when an email fails Sender Policy Framework (SPF) validation. The receiving mail server rejects the message because the IP address relaying the email is not explicitly authorized in the original sender domain's SPF record.
Why do external-to-external mail routes fail SPF checks?
When Exchange redirects an email to another external address, the destination server checks the original sender's SPF record against your Exchange server's forwarding IP. Since your server isn't listed in their SPF record, the check fails unless a mechanism like Sender Rewriting Scheme (SRS) modifies the return path.
How do I check if my Exchange Online SPF record is correctly configured?
Log in to your domain's DNS hosting control panel and locate your TXT records. Verify that your domain's SPF entry includes the Microsoft 365 parameters, typically structured as 'v=spf1 include:spf.protection.outlook.com -all'.




