PayPal Donation Webhook Blocked By Microsoft 365 Safe Links
Summary
This guide helps you troubleshoot and resolve: PayPal Donation Webhook Blocked By Microsoft 365 Safe Links. Follow the steps below to fix the issue.
Common Causes
Microsoft Defender Safe Links is designed to protect your organisation from malicious URLs by scanning and rewriting links in incoming emails. However, for not-for-profit organisations using third-party payment gateways for fundraising, this security feature can sometimes interfere with legitimate donation confirmations. Safe Links may follow tracker URLs embedded in receipt emails, triggering false-positive phishing alerts and blocking supporters from receiving their donation confirmations.
This guide explains how to create a transport rule exception in Microsoft 365 Exchange Online to bypass Safe Links scanning for your specific donation processing domain, ensuring genuine fundraising communications reach your donors while maintaining phishing protection for the rest of your mail flow.
Quick Fix Steps
- Log in to the Microsoft 365 admin centre with global administrator or Exchange administrator credentials.
- Navigate to Exchange admin centre > Mail flow > Rules.
- Create a new rule to bypass Safe Links for your donation domain.
- Save the rule and test with a donation transaction.
Detailed Instructions
Step 1: Access the Exchange Admin Centre
- Open your web browser and go to
https://admin.microsoft.com. - Sign in using an account with Global Administrator or Exchange Administrator permissions.
- In the left navigation menu, select Admin centres, then choose Exchange.
- The Exchange admin centre will open in a new browser tab.
Step 2: Navigate to Mail Flow Rules
- In the Exchange admin centre left-hand menu, click Mail flow.
- Select the Rules tab.
- Click the Add a rule dropdown button and choose Create a new rule.
Step 3: Configure the Transport Rule
- In the Name field, enter a descriptive name such as
Bypass Safe Links for Donation Domain. - Under Apply this rule if, select The sender > domain is.
- Enter the domain used by your payment gateway or donation platform (for example,
paypal.comor your specific fundraising platform domain). - Click the Add icon (plus sign) to confirm the entry, then click OK.
- Under Do the following, select Modify the message properties > Set a message header.
- In the header name field, enter
X-MS-Exchange-Organization-SkipSafeLinksProcessing. - In the header value field, enter
1. - Click Save.
Step 4: Set Rule Priority and Mode
- Back in the rules list, locate your newly created rule.
- Use the up and down arrows to move the rule above any other rules that might block or rewrite links.
- Ensure the rule mode is set to Enforce.
- Click Save to apply the changes.
Step 5: Test the Configuration
- Process a test donation through your payment gateway.
- Ask the donor to confirm they received the donation receipt email.
- Check that links in the email are no longer rewritten with the
safelinks.protection.outlook.comprefix. - Monitor your mail flow for any unexpected behaviour over the next 24 to 48 hours.
Troubleshooting
Rule Not Taking Effect
- Transport rule changes can take up to 30 minutes to propagate across Microsoft 365.
- Verify the domain entered matches exactly the domain sending the donation emails.
- Check that no other transport rules with higher priority are conflicting with your exception.
Donors Still Not Receiving Receipts
- Review the message trace in the Exchange admin centre to see if the email was blocked by a different security filter.
- Check the recipient's junk email folder.
- Confirm the payment gateway is sending emails from the domain you added to the rule.
Safe Links Still Rewriting URLs
- Ensure the header name is entered exactly as
X-MS-Exchange-Organization-SkipSafeLinksProcessingwith correct capitalisation and hyphens. - Verify the header value is set to
1. - Check that the rule is enabled and set to Enforce mode, not Test mode.
Need Further Assistance?
If you host with us, you don't need to do this yourself — just Open a Ticket and our Brisbane team will get it sorted.
If you are unable to resolve the issue after following these steps, contact your IT support provider for assistance with your mail flow configuration and transport rules.
Still Having Issues?
💻 Open a Ticket