This article describes how to configure the Whitelist in Microsoft Exchange 2013 and 2016 on-premise using a custom Header, instead of SMARTFENSE IPs. Use this method when simulations arrive at your organization from IPs different from those of SMARTFENSE, typically because there is an intermediate antispam or other technology that rewrites the source IP.
If simulations arrive with SMARTFENSE’s own IPs, configure the Whitelist by IP instead of by Header. See the article Microsoft - How to Implement IP Whitelist in Microsoft Exchange 2013 and 2016.
Exchange limitation: each Header rule supports around 100 characters. The default SMARTFENSE header exceeds this limit, so it must be shortened before configuring the rules.
Verify if simulations arrive with SMARTFENSE IPs or not
Before choosing between the IP method and the Header method, verify which IP the emails are arriving from.
- Go to Mail flow > Message trace in Exchange.
- Click Start a trace.
- Define recipient, sender, and time range.
- Select the email in the list.
- In the detail side window, look for the More information field and check the source IP.
- Compare that IP with those published in your SMARTFENSE instance, under Settings > Security > Whitelist.
If the IP does not match any of SMARTFENSE’s, continue with the Header configuration described in this article.
Shorten the Header in SMARTFENSE
- Log in to the SMARTFENSE platform.
- Go to Settings > Security > Whitelist.
- Locate the Phishing and Ransomware email Header section.
- Click the Customize Header button.
- Paste the header into a plain text editor (e.g., Notepad) and delete characters from the end forward until it is approximately 100 characters long.
- Paste the shortened header back into SMARTFENSE.
- Click Save.
Keep the shortened header, as you will use it in the four Exchange rules.
Summary of rules to create
The four rules use exactly the same condition on the header X-PHISHINGSIMULATION with the value of the customized SMARTFENSE header.
| # | Rule name | Header set | Value |
|---|---|---|---|
| 1 | Bypass Clutter and junk email filtering by Header | X-MS-Exchange-Organization-BypassClutter |
true |
| 2 | Bypass Junk Email folder | X-Forefront-Antispam-Report |
SFV:SKI; |
| 3 | Bypass ATP Links | X-MS-Exchange-Organization-SkipSafeLinksProcessing |
1 |
| 4 | Bypass ATP Attachments | X-MS-Exchange-Organization-SkipSafeAttachmentProcessing |
1 |
Access to create the rules
- Log in to the administration portal of your mail server.
- Go to Admin.
- Access the Exchange menu.
- Go to Mail flow > Rules.
- Click (+) Create new rule.
- Click More options.
Important: if you do not see all configuration options, click the More options link within the New rule screen. Without this option, you cannot apply several of the actions required by the following rules.
Repeat the flow for each of the four listed rules.
Rule 1 — Bypass Clutter and junk email filtering
- Name it Bypass Clutter and junk email filtering by Header.
- Under Apply this rule if…, select A message header > includes any of these words.
- In Enter text, type
X-PHISHINGSIMULATION. - In Enter words, paste the customized SMARTFENSE header.
- Click the large + sign to confirm the condition.
- Under Do the following…, select Set the spam confidence level (SCL) to… > Bypass spam filtering.
- Add a second action: modify the message properties > set a message header.
- Set the header
X-MS-Exchange-Organization-BypassClutterwith valuetrue. - Click Save.
Rule 2 — Bypass Junk Email folder
- Name it Bypass Junk Email folder.
- Use the same header condition (
X-PHISHINGSIMULATION+ customized SMARTFENSE header). - In the action, set the header
X-Forefront-Antispam-Reportwith valueSFV:SKI;. - Click Save.
Rules to bypass Advanced Threat Protection
We recommend waiting at least two hours for the rules to propagate to all your users. Test effectiveness with a small group before launching mass campaigns.
Rule 3 — Bypass ATP Links
- Name it Bypass ATP Links.
- Use the same header condition.
- Set the header
X-MS-Exchange-Organization-SkipSafeLinksProcessingwith value1. - Click Save.
Rule 4 — Bypass ATP Attachments
- Name it Bypass ATP Attachments.
- Use the same header condition.
- Set the header
X-MS-Exchange-Organization-SkipSafeAttachmentProcessingwith value1. - Click Save.
💡 Best practices
- Shorten the header in SMARTFENSE before creating the rules in Exchange to avoid silent errors due to excess characters.
- Always verify with a message trace whether simulations arrive with SMARTFENSE IPs before choosing the Header method.
- Make sure to click More options when creating each rule: without this step, several actions remain hidden and the rule is incomplete.
- Wait at least two hours after creating the rules before testing simulations.
- Launch a test campaign with a small group including yourself as administrator.
- Keep the default values for the rest of the options of each rule, unless expressly indicated otherwise.
- Document the customized header configured in SMARTFENSE so you can replicate it if rotated.