Email and Collaboration
Note: You configure these controls in Exchange Online, the Microsoft Defender portal and your DNS. SenseOn is not a mail gateway, and it does not filter email. SenseOn detects what occurs after a message arrives. It also ingests M365 telemetry through Data Connectors. But the controls on this page prevent the delivery. Without these controls, SenseOn must detect the delivery.
In the cases that SenseOn escalates, email is still the most common delivery mechanism. Mailbox compromise is still the most common next step. Thus, this page has two halves. The first half stops the message before it arrives. The second half makes the mailbox less useful after an attacker takes an account.
This page assumes Exchange Online. If a control is only available with Microsoft Defender for Office 365 Plan 1 or Plan 2, this page tells you. The navigation paths in portals change frequently. Thus, compare each setting with the linked source.
Authenticate your mail
Together, SPF, DKIM and DMARC let the systems that receive mail tell the difference between your mail and mail that claims to be yours. Without them, it is easy to spoof your own domain to your own users, and it works.
| Record | What it does | Recommended position |
|---|---|---|
| SPF | Lists the systems authorised to send for the domain. | A single TXT record that ends with -all (hard fail). ~all (soft fail) is a temporary position, not the final position. Be careful of the limit of ten DNS lookups. It is easy to go above this limit when you include several SaaS senders. |
| DKIM | Cryptographically signs outbound mail, so that the mail survives forwarding. | Enable it for every accepted domain, not only the primary domain. It is off by default for custom domains in Exchange Online. The default onmicrosoft.com signing does not cover these domains. Rotate keys. |
| DMARC | Tells receivers what to do when SPF and DKIM fail. It also gives you reports. | Move from p=none to p=quarantine, and then to p=reject. Publish rua from the first day, also at p=none. With the reports, you find your own legitimate senders before you start to reject them. |
Do not skip to
p=reject. Each organisation has senders that it forgot about, for example the payroll system, the marketing platform or a scanner in a branch office. Run atp=nonewith reports until you find all of these senders. Typically, this takes one to two months. If you reject your own invoices, you cause an outage.
Also configure how DMARC applies to inbound mail. In the anti-phishing policy in the Defender portal, set the actions for messages that fail sender DMARC to honour the policy of the sender domain. Do not override that policy.
Turn on Defender for Office 365 properly
The fastest route to a configuration that you can defend is preset security policies in the Microsoft Defender portal. They are under Email & collaboration > Policies & rules > Threat policies > Preset security policies. Microsoft maintains Standard and Strict presets, and it updates them when the threats change. Usually, this is better than a set of policies that you build manually and that becomes old.
Apply Standard to all users as a baseline. Apply Strict to your users with higher risk: executives, finance, HR, IT administrators, and all persons with payment authority. Preset policies always take precedence over custom policies. Thus, use presets, unless you have a specific reason not to use them.
It is useful to understand each of these components:
| Feature | Plan | What it does and what to watch |
|---|---|---|
| Safe Links | Defender for Office 365 P1 | Rewrites and detonates URLs at click time. Thus, it catches links that become malicious after delivery. Enable it for email, Teams, and Office applications. Do not disable the "track user clicks" option, because the click telemetry makes investigation after delivery possible. |
| Safe Attachments | Defender for Office 365 P1 | Detonates attachments in a sandbox. Use Dynamic Delivery. With it, the body arrives immediately and the attachment follows. This prevents the delay that users complain about. Enable it for SharePoint, OneDrive and Teams, and also for mail. |
| Anti-phishing with impersonation protection | Defender for Office 365 P1 | Protects named users and domains against lookalike display names and domains. Add your executives and your own domains. Also add the domains of key partners and suppliers. This control addresses business email compromise. |
| Mailbox intelligence | Defender for Office 365 P1 | Builds a sender graph for each mailbox and flags anomalies. Enable impersonation protection that uses it. |
| Anti-spoofing | Exchange Online Protection | On by default. Do not disable it. To allow the legitimate third parties that spoof you, use the spoof intelligence insight. Do not turn off the control. |
| Zero-hour Auto Purge | Exchange Online Protection | Retroactively removes delivered messages if it finds later that they are malicious. Make sure that it is enabled for malware and for phishing. |
| Attack simulation training | Defender for Office 365 P2 | Phishing simulation and targeted training. Measure it as a reporting rate, not as a click rate. |
Configuration analyzer under Threat policies compares your live settings against the Standard and Strict baselines. It lists each deviation. Run it after each change. It is the quickest method to find a policy that someone made less strict two years ago, for a reason that nobody remembers.
Block dangerous attachments
In the anti-malware policy, enable the common attachments filter. Extend the default list to include the executable and script types that your business has no reason to receive: .exe, .scr, .js, .vbs, .hta, .iso, .img, .lnk, .chm, .ps1 and .jar. Also add the macro-enabled Office formats where they are not necessary for the business.
Give special attention to container formats. Attackers widely adopted ISO, IMG and VHD for one specific reason. In the past, these formats did not propagate Mark of the Web to their contents. This defeated the endpoint macro controls in Windows Endpoints. Unless these formats are really necessary for you, block them at the gateway.
If a blocked type is really necessary for a business process, move that process from email to a SharePoint or OneDrive location. Do not add an exception.
External sender identification
Enable external sender identification. Then mail from outside the organisation has a visible tag. Enable first contact safety tips. Then users see a warning when a sender writes to them for the first time. Both controls are low cost. They directly help users to make the decisions that you ask them to make.
Stop automatic external forwarding
This is the step that turns a mailbox compromise into a sustained data breach. It is also the single most valuable control in this section.
After an attacker takes a mailbox, the usual next action is to create a rule. The rule forwards mail externally. Or the rule moves messages that match keywords such as "invoice" or "payment" to a folder that the user does not read. The account holder does not see anything unusual. The attacker reads everything, with no time limit. The attacker can still see the mail after a password reset.
- Block automatic external forwarding in the outbound spam filter policy. The default in Exchange Online is Automatic, which blocks it. Make sure that the setting is not On. Also make sure that there is no exception policy for a subset of users.
- Audit existing forwarding. Examine the mailbox forwarding configuration (
ForwardingSmtpAddressandForwardingAddress) and the inbox rules. You configure them separately, thus an audit of one does not find the other. - Where forwarding is a genuine requirement, scope an exception policy to the specific mailboxes. Review the exception policy periodically. Do not make the tenant default less strict.
- Alert on new forwarding rules. Microsoft supplies built-in alert policies for suspicious forwarding. Make sure that they are enabled and that a person receives them. When you connect the M365 audit telemetry, SenseOn also shows the same activity.
For how SenseOn handles this after it occurs, refer to the M365 Compromised Account playbook.
Retire legacy protocols
This section is the Exchange Online equivalent of Block legacy authentication in Entra. Do both. The Conditional Access policy and the Exchange configuration cover areas that overlap, but the areas are not identical.
- Disable POP and IMAP on each mailbox where they are not necessary. Set the organisation default so that new mailboxes do not inherit them.
- Disable SMTP AUTH at the organisation level. Then enable it again only on the specific mailboxes that really must have it. Typically, these are application and device senders. A better option is to move those senders to Microsoft Graph or to a dedicated relay connector.
- Audit what is still using them from the sign-in logs before you disable anything. Multifunction printers and scan-to-email are the usual dependency.
- Check Exchange Web Services usage. Plan its retirement, because Microsoft retires it in stages and Graph replaces it.
Auditing and visibility
- Confirm mailbox auditing is on. It is enabled by default at the tenant level. But make sure that it is still enabled. Also make sure that the audited set contains the mailbox actions that are necessary for you.
MailItemsAccessedis the action that tells you what an attacker actually read. With it, you can report a breach of specific records, not only a compromise. - Check your audit log retention. The default retention is shorter than the time that it takes to discover most compromises. If your licence gives longer retention, configure it. For the equivalent on the SenseOn side, consider Long Term Telemetry Retention.
- Connect M365 telemetry to SenseOn through Data Connectors. Then SenseOn correlates mailbox and sign-in activity with endpoint and network telemetry. The activity does not stay in a portal that nobody opens.
Give users somewhere to report
If a user sees a phishing email and has no easy way to report it, the user will delete it. Then you lose the chance to purge the same message from the other forty mailboxes that received it.
- Deploy the Report Message or Report Phishing capability in Outlook. Configure user reported settings to send submissions to a location where your team will see them.
- Set a reporting mailbox. Make sure that a person owns it.
- Measure the reporting rate, not the click rate. A high reporting rate is the result that you want from awareness training. Click rate mostly measures how well your simulation deceived users.
- Close the loop. Tell the users who report what happened. This is the only thing that makes users continue to report.
Sharing and collaboration
Mail is not the only delivery route. More and more, it is not the most common route, because mail now has good defences.
- Set SharePoint and OneDrive external sharing to the most restrictive level that the business can work with. "Anyone" links have no authentication, and people can forward them.
- Set an expiry on anonymous links. Make view-only their default.
- Restrict Teams external access and guest access to the domains that you federate with, not to the whole world.
- Apply Safe Attachments and Safe Links to Teams, SharePoint and OneDrive, not only to email. For each, the setting is separate from the email setting.
Go live checklist
- [ ] SPF published, ending
-all, within the ten lookup limit - [ ] DKIM enabled, with signatures for every accepted domain
- [ ] DMARC published with
ruareporting, and a documented plan to reachp=reject - [ ] Inbound DMARC honoured in the anti-phishing policy
- [ ] Standard preset security policy applied to all users
- [ ] Strict preset applied to executives, finance, HR and administrators
- [ ] Safe Links and Safe Attachments enabled for mail, Teams, SharePoint and OneDrive
- [ ] Impersonation protection configured with named users, own domains and key partner domains
- [ ] Common attachments filter enabled and extended, with container formats
- [ ] External sender identification and first contact safety tips enabled
- [ ] Automatic external forwarding blocked, existing forwarding rules audited
- [ ] Alerts on new forwarding rules enabled, tested and owned
- [ ] POP, IMAP and SMTP AUTH disabled except where explicitly necessary and documented
- [ ] Mailbox auditing enabled and tested, with
MailItemsAccessedincluded - [ ] User reporting deployed with an owned reporting mailbox
- [ ] External sharing and anonymous link expiry configured
- [ ] Configuration analyzer run with no unexplained deviations
- [ ] M365 telemetry sent to SenseOn
Related pages
- Identity and Access (Microsoft Entra ID) for the authentication controls that protect the mailbox.
- Windows Endpoints for what occurs if an attachment gets through.
- Phishing playbook and M365 Compromised Account playbook.
- Data Connectors to connect M365 telemetry to SenseOn.
- Dark Web Monitoring for credential exposure that precedes mailbox compromise.
Sources
We did a check of all URLs on 19 August 2026.
- Preset security policies in EOP and Defender for Office 365
- Recommended settings for EOP and Defender for Office 365 security
- Set up SPF to help prevent spoofing
- Use DKIM to validate outbound email
- Use DMARC to validate email
- Safe Links in Defender for Office 365
- Safe Attachments in Defender for Office 365
- Anti-malware policies and the common attachments filter
- Control automatic external email forwarding
- Enable or disable mailbox auditing
- Configuration analyzer for security policies
- NCSC email security and anti-spoofing guidance