Onmicrosoft.com spam floods inboxes because spammers exploit Microsoft 365 trial tenants and compromised accounts to send bulk mail from Microsoft's own infrastructure. Since these messages originate from legitimate Microsoft servers with valid authentication, they often bypass basic filters and land in your inbox or junk folder. This guide shows you exactly how to stop onmicrosoft.com spam using Outlook's built-in junk controls, Exchange transport rules for admins, and advanced threat protection—plus proactive habits that keep your address off spam lists. You'll learn to block the entire @onmicrosoft.com domain or specific subdomains, create server-side rules that delete spam before it reaches any mailbox, enable Microsoft Defender for Office 365 safe links and attachments, and configure SPF/DKIM/DMARC to protect your own domain. We'll also cover reporting spam to Microsoft so offending tenants get shut down. By the end, you'll have a layered defense that catches onmicrosoft spam at the client, server, and network levels without blocking legitimate mail from partners who use Microsoft 365.

Verdict: The fastest way to stop onmicrosoft.com spam is to add @onmicrosoft.com to your Blocked Senders list in Outlook or Outlook.com, then create an Exchange transport rule (if you're an admin) that silently deletes messages from that domain. For ongoing protection, enable Microsoft Defender for Office 365 safe links/attachments and report every spam message via the "Report Junk" button so Microsoft can terminate abusive tenants.

Time required 30-60 minutes
Difficulty Beginner to Intermediate
Cost $0-$25 (premium licenses for advanced features)

What You'll Need

Item Details Cost Time
Microsoft 365 / Outlook account Personal, business, or education tenant $0 (included) 5 min
Admin access (optional) Exchange admin center or Microsoft 365 Defender portal $0 10 min
Microsoft 365 Business Premium / E3 / E5 (for Defender) Required for Safe Links, Safe Attachments, advanced anti-phishing $22-$57/user/mo 15 min
DNS management access (for SPF/DKIM/DMARC) Domain registrar or hosting control panel $0 10 min

Step 1: Configure Client-Side Junk Filtering & Block Lists

1.1 Set Outlook Junk Email Protection Level

  1. Open Outlook desktop app → Home tab → Junk → Junk E-mail Options.
  2. On the Options tab, choose High if you receive heavy spam volume. Note: High may catch legitimate mail; start with Low and escalate if needed.
  3. Check "Permanently delete suspected junk email instead of moving to Junk Email folder" only if you regularly review the junk folder.
Pro tip: In Outlook.com (web), go to Settings → View all Outlook settings → Mail → Junk email. Set the filter to "Standard" (default) or "Exclusive" (only Safe Senders). Exclusive is aggressive—use only if you maintain a complete Safe Senders list.

1.2 Block the Entire onmicrosoft.com Domain

  1. In Outlook desktop: Junk E-mail Options → Blocked Senders tab → Add → type @onmicrosoft.com → OK.
  2. In Outlook.com: Settings → Mail → Junk email → Blocked senders and domains → Add → @onmicrosoft.com → Save.
  3. This wildcard blocks every address ending with onmicrosoft.com (e.g., contoso.onmicrosoft.com, [email protected]).

1.3 Allow Legitimate onmicrosoft.com Senders via Safe Senders

  1. Identify trusted Microsoft 365 tenants you communicate with (partners, internal departments).
  2. Add each full address (e.g., [email protected]) or the specific subdomain (e.g., @partner.onmicrosoft.com) to Safe Senders.
  3. Safe Senders overrides the domain block, so those messages land in Inbox.

1.4 Create a Client-Side Rule for Extra Safety

  1. Outlook desktop: Home → Rules → Create Rule → Advanced Options.
  2. Condition: "with specific words in the sender's address" → enter onmicrosoft.com.
  3. Action: "move it to the specified folder" → choose Junk Email or Deleted Items.
  4. Finish. This catches any messages that slip past the junk filter.

Step 2: Set Up Server-Side Transport Rules & Anti-Spam Policies (Admin)

2.1 Create an Exchange Transport Rule to Silently Delete onmicrosoft.com Mail

  1. Sign in to Exchange admin center → Mail flow → Rules → Add a rule → Create a new rule.
  2. Name: "Block Onmicrosoft Spam".
  3. Condition: "The sender's domain is" → enter onmicrosoft.com.
  4. Action: "Block the message" → choose "Delete the message without notifying anyone" (silent drop). Avoid NDRs—they confirm active addresses to spammers.
  5. Optional: Add exception for specific subdomains you trust (e.g., @trustedpartner.onmicrosoft.com).
  6. Save. Rule replicates across the tenant within minutes.
Pro tip: Test with "Audit this rule with severity level: Medium" first. Check message trace after 24 hours to ensure no false positives before enforcing deletion.

2.2 Tighten the Inbound Anti-Spam Policy

  1. Open Microsoft 365 Defender portal → Email & collaboration → Policies & rules → Threat policies → Anti-spam.
  2. Edit the default inbound policy (or create a custom one).
  3. Raise the Spam confidence level (SCL) threshold for "Move to Junk Email folder" from 5 to 4 or 3. Lower SCL = more aggressive.
  4. Enable "Bulk complaint level (BCL) filtering" and set threshold to 5 to catch mass-marketing mail.
  5. Turn on "Mark as spam" for messages that fail SPF/DKIM/DMARC (under Spoof settings).

2.3 Enable Microsoft Defender for Office 365 (If Licensed)

  1. In Defender portal → Email & collaboration → Policies & rules → Threat policies → Safe Attachments / Safe Links / Anti-phishing.
  2. Create a Safe Attachments policy: enable "Dynamic Delivery" so users see a placeholder while attachments are sandbox-scanned.
  3. Create a Safe Links policy: enable "Do not rewrite URLs, do checks via Safe Links API only" for minimal user disruption.
  4. Configure Anti-phishing policy: enable "Mailbox intelligence" and "Spoof intelligence" to catch look-alike domains and impersonation attempts.

Step 3: Enable Advanced Protection, Report Spam & Harden DNS

3.1 Report Every onmicrosoft.com Spam Message

  1. Outlook desktop: select message → Home → Junk → Report as Junk (or Report as Phishing for credential-harvesting mails).
  2. Outlook.com: select message → Junk toolbar → Report junk / Report phishing.
  3. Admin: use the Submissions portal to send a batch of reported messages to Microsoft's abuse team for tenant-level investigation.
Pro tip: Encourage all users to report via the built-in buttons—each report trains Microsoft's ML filters and speeds up takedown of abusive tenants.

3.2 Configure SPF, DKIM, and DMARC for Your Own Domain

  1. SPF: Add a TXT record: v=spf1 include:spf.protection.outlook.com -all (adjust if you use additional senders).
  2. DKIM: In Defender portal → Email & collaboration → Policies & rules → Threat policies → DKIM. Enable signing for your custom domains; publish the two CNAME records provided.
  3. DMARC: Add a TXT record at _dmarc.yourdomain.com: v=DMARC1; p=none; rua=mailto:[email protected]. Start with p=none to collect reports, then move to p=quarantine and finally p=reject after verifying legitimate mail passes.

3.3 Adopt Proactive Email Hygiene Habits

  • Never post your primary address in plain text on public sites. Use contact forms or an image of the address.
  • Use plus-addressing (e.g., [email protected]) or create aliases in Microsoft 365 for each service. When an alias attracts spam, disable it.
  • Enable MFA (Microsoft Authenticator app or FIDO2 key) on all accounts to prevent compromise—the #1 source of outbound onmicrosoft spam.
  • Review sign-in logs at https://account.live.com/ACXT monthly for unknown locations.
Warning: Blocking the entire @onmicrosoft.com domain at the client or transport level will also stop legitimate emails from any Microsoft 365 tenant you haven't explicitly allowlisted. This includes partner organizations, vendors, and even Microsoft's own service notifications (e.g., security alerts from [email protected]). Always test with audit mode first and maintain an up-to-date Safe Senders / transport rule exception list.

Pro Tips

  • Layer defenses: Client-side junk filter + transport rule + Defender policies = three independent catch points. A message that evades one often gets caught by the next.
  • Use message trace for forensics: In Exchange admin center → Mail flow → Message trace. Filter by sender domain onmicrosoft.com to see volume trends and identify the top spamming subdomains for targeted blocking.
  • Automate allowlist updates: If you have many partner tenants, script a PowerShell job that reads a CSV of approved subdomains and updates the transport rule exceptions daily.
  • Leverage Microsoft's "Tenant Allow/Block List": In Defender portal → Tenant Allow/Block List → Spoofed senders. Add known good onmicrosoft.com subdomains to the allow list to prevent false positives from spoof intelligence.
  • Secure your endpoints: Spam often leads to phishing sites that exploit browser or OS vulnerabilities. Keep devices patched; for hardware-level security, see our guide on Can a Trojan Work Without Internet? (2026 Guide) to avoid physical tampering, and consider a modern laptop from our Why Is My ZIP File the Same Size? (Compression Explained) list that supports Windows Hello and TPM 2.0.
  • M.2 drive encryption: If you store email archives locally, enable BitLocker on your M.2 SSD. Check whether to remove the factory sticker before installing a heatsink in our Does Best Buy Match Microcenter? (2026 Complete Guide).

Common Mistakes + Fixes

Mistake Solution
Blocking @onmicrosoft.com globally without allowlisting partners Audit first, then add every legitimate subdomain to Safe Senders (client) or transport rule exceptions (server).
Setting junk filter to "Safe Senders Only" without maintaining the list Use "Low" or "High" with a curated Safe Senders list; reserve "Safe Senders Only" for highly controlled environments.
Ignoring phishing reports (using only "Report Junk") Always choose "Report as Phishing" for credential-harvesting emails—it triggers deeper Microsoft investigation.
Skipping DMARC or leaving it at p=none indefinitely Analyze DMARC reports weekly; move to p=quarantine after 30 days of clean alignment, then p=reject.

Frequently Asked Questions

Why am I getting so much spam from onmicrosoft.com addresses?

Spammers create free Microsoft 365 trial tenants or compromise existing accounts to send bulk mail through Microsoft's reputable infrastructure. Because these messages originate from Microsoft's own IP space with valid SPF/DKIM, they often pass basic reputation filters. Blocking the domain and enabling advanced filtering are the most effective counters.

Can I block all emails from onmicrosoft.com in Outlook?

Yes. In Outlook desktop, go to Home → Junk → Junk E-mail Options → Blocked Senders tab and add @onmicrosoft.com. In Outlook.com, go to Settings → Mail → Junk email → Blocked senders and domains and add the same entry. Legitimate senders can be allowlisted via Safe Senders.

Is onmicrosoft spam dangerous?

Some is merely marketing, but many onmicrosoft.com messages are phishing lures, malware droppers, or business-email-compromise attempts. Treat every unsolicited onmicrosoft.com mail as suspicious: don't click links, don't open unexpected attachments, and report it.

How do I stop spam in Outlook without blocking legitimate emails?

Use the "Low" or "Medium" junk filter setting, maintain a complete Safe Senders list, and block only specific offending addresses or subdomains rather than the entire onmicrosoft.com domain. For admins, use transport rule exceptions for known partner tenants.

Does Microsoft do anything about onmicrosoft spam?

Microsoft actively monitors abuse of its trial and paid tenants. User reports via "Report Junk/Phishing" feed into automated takedown systems; confirmed abusive tenants are suspended, and Microsoft pursues legal action against repeat offenders. Reporting accelerates this process.

Can I create a rule to automatically delete onmicrosoft spam?

Yes. In Outlook, create a rule with condition "sender address contains onmicrosoft.com" and action "delete" or "move to Deleted Items." Admins should prefer a transport rule with silent deletion for organization-wide coverage.

Why are legitimate emails being flagged as spam when they come from onmicrosoft.com?

If you blocked the domain, all mail from it goes to Junk. Add the specific legitimate addresses to Safe Senders. If you didn't block the domain, the message may have failed SPF/DKIM/DMARC or triggered content filters—check the message header (X-Forefront-Antispam-Report) for the SCL and authentication results.

Will changing my email address stop onmicrosoft spam?

A new address provides temporary relief, but if it gets harvested via breaches or scraping, spam returns. Better: keep your primary address private, use aliases/plus-addressing for public sign-ups, and enforce strong filtering on your existing mailbox.

Sources

  1. Microsoft Learn: Anti-spam protection in Exchange Online
  2. Microsoft Learn: Configure anti-spam policies in Microsoft 365
  3. Microsoft Learn: Set up anti-phishing policies in Microsoft Defender for Office 365
  4. Microsoft Learn: Use DMARC to validate email in Microsoft 365

Conclusion

Onmicrosoft.com spam is a persistent nuisance because it rides on Microsoft's own trusted infrastructure, but you have all the tools to stop it. Start today by adding @onmicrosoft.com to your Blocked Senders list and allowlisting the few partner subdomains you actually need. If you manage a Microsoft 365 tenant, deploy a silent-delete transport rule and tighten the inbound anti-spam policy—then enable Microsoft Defender for Office 365 safe links and attachments for real-time click and attachment protection. Harden your domain with SPF, DKIM, and a DMARC policy that eventually reaches p=reject. Finally, make reporting a habit: every "Report Phishing" click helps Microsoft shut down abusive tenants faster. Layer these defenses, review message trace monthly, and you'll reduce onmicrosoft spam to near zero without losing legitimate mail. For more on securing your hardware and devices, revisit the pro tips section above.