Skip to content
iBlockSpam
Choosing a filter

How to stop spam for your whole domain, not one inbox at a time

By iBlockSpam Team How we check our guides Updated 8 min read 5 sources
Short answer

Filter at the MX level. When your domain's MX records point to a filtering service, every message for every mailbox is checked before it reaches your mail server. Inbox rules and blocked-sender lists act after delivery and per user. Add SPF, DKIM and DMARC for your own domain, and close the direct route to your server.

Spam reaches a business through one door: the mail server that accepts mail for your domain. Where you put the filter relative to that door decides how much it can do. This guide compares the four approaches people usually try, and shows how they fit together.

What does "MX-level filtering" mean?

Every domain that receives email publishes MX records. A sending server looks them up and delivers to the listed host with the lowest preference number (RFC 5321, section 5.1). With MX-level filtering, those records point to a filtering service instead of your mail server. The service accepts each message, checks it, and delivers only clean mail to Microsoft 365, Google Workspace, cPanel or Exchange.

Because it sits in front of the server, it covers every mailbox and every alias on the domain, with one policy, without installing anything on users' devices.

How do the four approaches compare?

Approach Where it runs Scope Stops spam before delivery? Handles spoofing of your domain? Main weakness
MX-level filtering In front of your mail server Whole domain Yes Yes, with sender verification and authentication checks Can be bypassed if the server still accepts direct mail
Inbox or client rules Mail client or mailbox One user No, sorts after delivery No Per user, easy to break, no protection from malware
Blocking senders Mailbox or tenant block list User or tenant Partly, for listed senders only No, and may block forged victims Spammers rotate addresses
SPF, DKIM and DMARC on your domain DNS, enforced by receivers Your outbound identity Not for your inbox Yes, at receivers that enforce DMARC Protects others from fakes of you, not you from spam

Why aren't inbox rules enough?

Client rules run after the message is already in the mailbox. By then, links can be clicked, attachments opened on mobile, and the message has used storage and attention. Rules also live with each user, so ten users means ten different, partly broken rule sets. They're good for sorting newsletters, not for security.

Why doesn't blocking senders work for long?

Blocklists of senders work on the address in the message. Spammers change addresses and domains for each campaign, and they often forge real addresses. Blocking a forged address hurts the real owner and does nothing about the next campaign. Use block lists for a persistent sender who ignores unsubscribe requests, not as a spam strategy.

A stronger version is an approved-sender list that requires sender verification: the address is only trusted if the message also passes authentication. That stops a spammer from riding on a partner's address.

Where do SPF, DKIM and DMARC fit?

These are records you publish for your own domain:

  • SPF lists the servers allowed to send mail using your domain in the envelope (RFC 7208).
  • DKIM signs your outgoing mail so receivers can verify it wasn't altered.
  • DMARC tells receivers what to do when mail claiming your From domain fails those checks. RFC 7489 described it originally; it was replaced in 2026 by RFC 9989, which keeps the v=DMARC1 record format.

They protect your customers and partners from mail that impersonates you. They don't filter what arrives in your own inboxes. An inbound filter, on the other hand, checks the SPF, DKIM and DMARC of every sender that writes to you. You want both.

You can check your records with the SPF Checker, DMARC Checker and DKIM Checker. A DKIM selector we can't find is unknown, not broken: selectors aren't listed publicly, so we can only check the ones we know or you tell us.

What does an MX-level filter check that the others can't?

Because it sees every message before delivery, a domain-wide filter can act on things a mailbox rule never sees:

  • The connection itself. The sending IP, its reputation, and whether it behaves like a real mail server.
  • Authentication of the sender. SPF, DKIM and DMARC results for the claimed sender, so mail forged to look like a partner can be held.
  • Attachments before anyone opens them. Virus and malware scanning, plus rules by file type, such as blocking Office files with macros.
  • Policy for the whole company. Geographic rules, attachment rules and custom domain rules apply to every mailbox and alias at once.
  • Availability. If your mail server is down, the filter can hold mail and deliver it later, instead of senders getting bounces.

It also gives you one place to answer "did we receive this message?" Message history at the filter shows what arrived, what was held and why.

Who should own each layer?

In a small business, one person often owns all of this. It still helps to separate the layers:

Layer Typical owner Review cadence
MX-level filter policy IT admin or MSP When rules or partners change
Quarantine digests Each user As digests arrive
Mailbox rules and blocked senders Each user As needed
SPF, DKIM, DMARC for your domain IT admin, with whoever runs your DNS When you add a sending service

How do you set up domain-wide filtering?

  1. Check your current state. Run the Email Health Check to see your MX, SPF and DMARC today.
  2. Add the domain at the filtering service and set your mail server as the delivery destination.
  3. Prepare the mail server. Tell it the filter is a trusted gateway: a Partner inbound connector with Enhanced Filtering in Microsoft 365, the Inbound gateway setting in Google Workspace, or trusted IPs in cPanel/WHM. See the platform pages.
  4. Change MX using a short TTL. Our MX cutover checklist covers the details.
  5. Close the direct route so spammers can't skip MX and deliver to your server. See Block direct-to-tenant bypass.
  6. Set up quarantine digests so users can see and release anything held.
  7. Keep the built-in filter on as a second layer.

What are the risks and how do you roll back?

  • False positives. Any filter can hold a good message. Quarantine digests and admin release are the safety net. Start with a regular digest so users learn the routine.
  • Bypass. An MX change alone doesn't stop direct delivery to Microsoft 365, Google or your server. Lock the server down after the MX change.
  • Double filtering. If your mail server doesn't know about the gateway, it may treat all mail as coming from the gateway's IP and mark good mail as spam. Use the platform's gateway settings rather than spam-bypass rules.
  • Rollback. Remove any lockdown first, point MX back to your mail server, and keep the filtering service active until the old TTL has expired.

If your business has several domains, roll out one at a time; our multi-domain email security guide covers the inventory and staging.

How iBlockSpam helps

iBlockSpam is an MX-level filter for business domains. It checks inbound mail for spam, viruses, malware, phishing and spoofing before it reaches your server, and its approved and blocked sender lists can require sender verification. Each user gets a personal quarantine with scheduled digests (hourly, daily, a chosen weekday or custom), and admins get a shared domain quarantine. Pricing is per domain with unlimited mailboxes; 100,000 inbound messages per month are included. iBlockSpam doesn't publish SPF, DKIM or DMARC for you. Our free Check tools show where those records stand, and DMARC monitoring is included with every plan.

Next steps

  1. See where your mail goes today with the free Email Health Check.
  2. Compare the costs with per-domain vs per-user pricing.
  3. If you add a gateway, plan the MX change with changing MX records without losing email.

You can see what domain-wide filtering looks like from the admin side in the iBlockSpam portal demo, with sample data for three domains.

Read our other guides on choosing a spam filter.

Frequently asked questions

Is blocking a sender address enough?

Rarely. Spammers change sender addresses and domains constantly, and blocking a forged address can block the real person whose address was forged. Blocked lists are useful for persistent, known senders, not for spam in general.

Do I still need my mail provider's built-in filtering?

Keep it on. An MX-level filter is the first layer. Microsoft 365, Google Workspace or SpamAssassin can act as a second layer, provided they're told about the gateway so they judge the real sender.

Does DMARC stop spam?

DMARC stops others from using your exact domain in the From line, at receivers that enforce it. It does not stop spam from other domains. It protects your brand; a filter protects your inbox.

Can any filter catch all spam?

No. Every filter makes trade-offs between missed spam and false positives. That's why quarantines, digests and release options matter as much as the filter itself.

Sources

  1. RFC 5321: Simple Mail Transfer Protocol (section 5.1, MX)
  2. RFC 7208: Sender Policy Framework (SPF)
  3. RFC 7489: DMARC (obsoleted by RFC 9989)
  4. RFC 9989: DMARC
  5. Microsoft Learn: Integrate non-Microsoft security services with Microsoft 365

See how your domain measures up

Run a free Email Health Check: MX, SPF, DKIM, DMARC and transport security in one scan, with the raw records shown. No sign-up.

Keep reading