Hello, @raj a,
Welcome to the Microsoft Q&A platform!
This is a common challenge when emails are routed through multiple hops.
Here are a few steps you can take to address this issue:
First, configure Enhanced Filtering for Connectors (Skip Listing) in the Exchange admin center (EAC) under Mail flow > Connectors. This allows EOP to skip certain IP addresses when performing SPF checks, ensuring the original sender's IP address is used for validation.
Next, use the Authenticated Received Chain (ARC) to preserve the original email authentication results across multiple hops. Ensure both your EOP and Cloud Anti-Phishing Solution support and are configured to use ARC. For more details, please refer to Email authentication in Microsoft 365 - Microsoft Defender for Office 365 | Microsoft Learn. Additionally, update your SPF records to include the IP addresses of both your EOP and Cloud Anti-Phishing Solution, preventing SPF failures by explicitly authorizing these IP addresses.
Finally, verify that DKIM is correctly configured for your domain and that DKIM signatures are preserved and validated correctly after passing through the Cloud Anti-Phishing Solution. Review your mail flow rules to ensure they are correctly configured to handle the routing and authentication of emails, including any necessary exceptions or conditions for the Cloud Anti-Phishing Solution.
Should you need more help on this, you can feel free to post back.
If the answer is helpful, please click on “Accept answer” as it could help other members of the Microsoft Q&A community who have similar questions and are looking for solutions.
Thank you for your support and understanding.
Best Wishes,
Alex Zhang