Follow the steps below to allow NINJIO training messages and PHISH3D simulations through Mimecast.
Before you begin: Open the Allowlisting: Start Here article. Use it for the current NINJIO SMTP IP addresses and domains referenced in the steps below.
Important: Scope all Mimecast exceptions to NINJIO's current SMTP IP addresses and your internal recipients. Do not create unrestricted sender-domain or global security bypasses.
Which Mimecast product do you use?
These steps are for Mimecast Email Security Cloud Gateway. Menus differ by product and console version:
- Cloud Gateway (current console): policies are under Policies > Gateway Policies. Managed URLs are under Email Security > URL Protection > URL Tools > Managed URLs.
- Cloud Gateway (older console layout): policies are under Administration > Gateway > Policies. Managed URLs are under Services > URL Protection > URL Tools > Managed URLs.
- Email Security Cloud Integrated: Gateway Policies are not available. See Mimecast Email Security Cloud Integrated below.
Also confirm that NINJIO email reaches Mimecast directly. If another email gateway sits in front of Mimecast, Mimecast sees that gateway's IP instead of NINJIO's, and the IP-based policies below will not match.
1. Create a Permitted Senders policy
- In the Mimecast Administration Console, go to Policies > Gateway Policies > Permitted Senders.
- Select New Policy.
- Configure:
- Policy Narrative: NINJIO - Permitted Sender IPs
- Permitted Senders Policy: Permit Sender
- Addresses Based On: Both
- Applies From: Everyone
- Applies To: Internal Addresses
- Enable / Disable: Enable
- Set Policy as Perpetual: Always On
- Policy Override: Enabled
- Bi-Directional: Disabled
-
Source IP Ranges: Enter each current NINJIO SMTP IP address as a single-host
/32range.
- Save the policy.
Note: A Permitted Senders policy bypasses spam, greylisting, and reputation checks only. Virus scanning, Blocked Senders, and the URL, attachment, and impersonation controls below can still act on NINJIO messages.
2. Create an Anti-Spoofing bypass (only if needed)
Only needed if your simulations are set up to appear to come from your own internal domain.
- Go to Policies > Gateway Policies > Anti-Spoofing.
- Select New Policy.
- Configure:
- Policy Narrative: NINJIO - Authorized Simulation Anti-Spoofing Bypass
- Select Option: Take No Action
- Addresses Based On: Both
- Applies From: Everyone
- Applies To: Internal Addresses
- Enable / Disable: Enable
- Set Policy as Perpetual: Always On
- Policy Override: Enabled
- Bi-Directional: Disabled
-
Source IP Ranges: Current NINJIO SMTP IP addresses as
/32ranges
- Save the policy.
3. Prevent URL rewriting
Mimecast URL Protect can rewrite PHISH3D links and create false clicks. Use a URL Protection bypass (3a), Managed URLs (3b), or both.
Don't see URL Protection? URL Protection and Managed URLs are part of Mimecast's Targeted Threat Protection URL Protect. If it isn't licensed, or your administrator role doesn't include it, the menu won't appear and Mimecast isn't rewriting links, so you can skip this step.
3a. URL Protection bypass
- Go to Policies > Gateway Policies > URL Protection Bypass.
- Select New Policy.
- Configure:
- Policy Narrative: NINJIO - PHISH3D URL Protection Bypass
- Select Option: Select the URL Protect definition that applies to your inbound users
- Addresses Based On: Both
- Applies From: Everyone
- Applies To: Internal Addresses
- Enable / Disable: Enable
- Set Policy as Perpetual: Always On
- Policy Override: Enabled
- Bi-Directional: Disabled
-
Source IP Ranges: Current NINJIO SMTP IP addresses as
/32ranges
- Save the policy. If more than one URL Protect definition applies to your users, create a bypass for each.
3b. Managed URLs
- Go to Email Security > URL Protection (older console: Services > URL Protection).
- Open URL Tools, select Managed URLs, then select Add Managed URLs.
- Set Override Type to Permitted.
- Select Disable Rewriting For This Entry. This option only appears when Override Type is Permitted.
- Set Match Type to Domain.
- In URLs, enter the NINJIO Phish sub-domains from the Allowlisting: Start Here article, one per line, each starting with
https://. For example:https://on365-admin.securegateway-access.com. Entries withouthttp://orhttps://are rejected as invalid. - Add a comment such as NINJIO PHISH3D - do not rewrite and select Save and Close.
Note: Use the exact hostnames where possible. Mimecast only supports a single leading wildcard (for example https://*.securegateway-access.com) and advises against wildcards, so use one only if your security team approves it.
4. Allow attachment-based simulations (only if needed)
Only needed if you run PHISH3D simulations with attachments and testing shows Mimecast is holding, stripping, or modifying them. Attachment Protection and Attachment Management are separate controls; you may need both.
4a. Attachment Protection bypass
- Go to Policies > Gateway Policies > Attachment Protection Bypass.
- Select New Policy.
- Configure:
- Policy Narrative: NINJIO - Attachment Protection Bypass
- Select Option: Disable Attachment Protection
- Addresses Based On: Both
- Applies From: Everyone
- Applies To: Internal Addresses, or the users included in the simulation
- Policy Override: Enabled
- Bi-Directional: Disabled
-
Source IP Ranges: Current NINJIO SMTP IP addresses as
/32ranges
- Save the policy.
4b. Attachment Management bypass
- Go to Policies > Gateway Policies > Attachment Management Bypass.
- Select New Policy.
- Configure:
- Policy Narrative: NINJIO - Attachment Management Bypass
- Select Action: Disable Attachment Management
- Addresses Based On: Both
- Applies From: Everyone
- Applies To: Internal Addresses, or the users included in the simulation
- Policy Override: Enabled
- Bi-Directional: Disabled
-
Source IP Ranges: Current NINJIO SMTP IP addresses as
/32ranges
- Save the policy.
5. Create an Impersonation Protection bypass (only if needed)
Only needed if Mimecast Impersonation Protection is tagging or holding NINJIO simulations.
- Go to Policies > Gateway Policies > Impersonation Protection Bypass.
- Select New Policy.
- Enter NINJIO - Impersonation Protection Bypass as the policy narrative.
- Select the Impersonation Protection definition that is acting on the simulations.
- Set Applies From to Everyone and Applies To to your internal recipients.
- Enable Policy Override.
- Enter the current NINJIO SMTP IP addresses as
/32ranges under Source IP Ranges. - Save the policy. If more than one definition applies, create a bypass for each.
6. Configure your downstream email platform
Mimecast allowlisting does not automatically bypass protections in Microsoft 365, Exchange, or Google Workspace.
- Microsoft 365 behind Mimecast: Microsoft sees Mimecast's IP, not NINJIO's, so IP-based rules alone won't match. Use header-based allowlisting (your header is in the NINJIO Admin Portal under Settings > Allowlist), or enable Enhanced Filtering for Connectors on the connector that receives mail from Mimecast. For PHISH3D, also complete Advanced Delivery and the Partner Connector in the Microsoft 365 guide.
- Google Workspace behind Mimecast: Follow the Google Workspace guide.
If Mimecast is integrated with Microsoft 365 through Mimecast's MX integration, keep the Mimecast-created connector and bypass rule unless your Mimecast administrator directs otherwise.
7. Test the configuration
- Open the NINJIO Admin Portal → Settings → Allowlist.
- Under Step 2: Send a Test Email, check I've completed the allowlisting steps and click Send Test Email.
- Open the test email in your inbox, click the link inside, and click CONFIRM on the page that opens.
Once confirmed, phishing campaigns will be unlocked, and any previously started campaigns will automatically resume.
Mimecast Email Security Cloud Integrated
Cloud Integrated uses a different interface, and the Gateway Policies above are not available.
- Complete the Microsoft 365 guide first.
- In Email Security Cloud Integrated, open the menu and go to Configuration > Allow/Block Rules. Select the URLs tab, select Add Rule, choose Allow, and add the NINJIO Phish sub-domains.
- Review the Rewrite URLs in Emails setting in Detection Engine Settings with your Mimecast administrator to confirm how rewriting applies to allowed URLs.
- If simulations are still held or rewritten, contact Mimecast Support for the narrowest supported exception.
Troubleshooting
-
Policy does not match: Confirm the connecting IP in Mimecast Message Tracking and verify each NINJIO IP was entered as a
/32range. Check whether another gateway sits in front of Mimecast. - Message is still held or rejected: Review Blocked Senders (these take precedence over Permitted Senders), DNS Authentication, content policies, and any other Mimecast controls applied to the message.
-
Links are rewritten or pre-clicked: Confirm the URL Protection bypass is applied, and that Managed URL entries start with
https://, use Override Type Permitted with Disable Rewriting, and cover the exact hostnames in the simulation links. Also check Microsoft Defender Safe Links. - Attachments are modified or blocked: Confirm both Attachment Protection and Attachment Management bypasses are applied.
- New users rejected as invalid recipients (550): This is a recipient validation setting, not allowlisting, and it affects all inbound mail for the domain. In Users & Groups > Internal Directories, right-click the domain and select Edit Domain to review the inbound check. If it accepts directory users only, confirm directory sync has picked up the new user. Use SMTP Call forward to check recipient addresses requires Exchange Recipient Filtering (an on-premises Exchange feature); for Microsoft 365, confirm with Mimecast Support before using it. Do not set the domain to Accept Any Address, because that disables recipient validation for the entire domain.
Comments
0 comments
Article is closed for comments.