← All posts
Managed ITEmail security

Email Filtering Guide: How to Keep Your Inbox Spam-Free

What happens to a message in the second before it reaches your inbox, and how to keep the good mail coming.

Two complaints reach every IT help desk sooner or later, sometimes on the same day. One person is getting far too much junk. Another is missing an invoice from a supplier that turns out to have been sitting in quarantine since Tuesday. Both come down to the same thing: how your email filtering is set up.

Email filtering is the set of checks every incoming message goes through before it reaches an inbox. For a business, the point isn’t tidiness. Most attacks on a small office start with an email, so filtering is the first and busiest layer of your security.

Two kinds of filtering, often confused

People use “email filter” for two different things.

Server-side filtering

This happens before mail reaches anyone’s inbox, at your email provider or a security service in front of it. It checks every message for spam, phishing and malware, and decides where it goes. This is the protective kind, and it’s what the rest of this post is about.

Inbox rules

These are the rules a person sets up in Outlook or Gmail to sort their own mail: newsletters to a folder, anything from the boss flagged. Useful for organizing, no help with security, and worth knowing about for another reason: attackers who get into a mailbox often create inbox rules to forward or hide messages. A rule nobody remembers making is a warning sign.

How a filter decides

In the second or so between a message arriving and landing in an inbox, a filter runs through several checks.

Who sent it

Is the sending server known for spam? Has it ever sent mail before, or is it suddenly sending thousands of messages an hour? Is the domain brand new? A lot of junk is turned away at this stage.

Then the filter checks whether the sender is who they claim to be. Email was designed with no proof of who sent it, so anyone can put any name in the From line. Three standards fill that gap, and Microsoft describes them as building blocks that work together (Microsoft Learn):

  • SPF (Sender Policy Framework) is a published list of the servers allowed to send mail for a domain.
  • DKIM (DomainKeys Identified Mail) is a digital signature on the message, showing it came from the domain and wasn’t changed on the way.
  • DMARC (Domain-based Message Authentication, Reporting and Conformance) tells receiving servers what to do with mail that fails those checks, and sends the domain owner reports.

Mail that fails those checks is much more likely to be fake. They matter in both directions: if your own domain doesn’t have them set up properly, other companies’ filters are more likely to junk your real mail, and someone can more easily send email pretending to be you.

Whether it’s pretending to be someone

Lookalike domains (a zero instead of an “o”), a display name that matches your CEO’s but an address that doesn’t, or a first-time sender using the name of one of your regular suppliers.

What’s in it

Wording, structure and patterns typical of spam or phishing, compared against what the filter has learned from huge volumes of other mail.

Links are checked against lists of known bad sites, and better filters check them again at the moment someone clicks, because attackers often change where a link points after the email is delivered (Microsoft Learn). Attachments are scanned for malware, and some services open them in a safe test area first.

Each check adds to a score, and the score decides what happens next.

Inbox, junk or quarantine

A filter usually has four choices for a message:

  • The inbox, for mail it’s confident is fine.
  • The junk folder, for likely spam. The person can see it and move it back.
  • Quarantine, a holding area outside the mailbox, for mail that’s probably dangerous: phishing and malware. Depending on the settings, people may get a summary of what was held and be able to release some of it themselves, or only an administrator can.
  • Rejected outright, for messages that are clearly malicious.

The quarantine release settings are worth a look. If staff can release anything themselves, a determined person will release the fake invoice. If they can’t release anything, they’ll stop reporting missing mail and start using personal email to get things done.

Quarantine doesn’t last forever. In Microsoft 365, quarantined messages are kept for a set number of days, up to 30, and then deleted for good (Microsoft Learn). That’s why the missing invoice needs finding quickly.

Filtering also doesn’t stop at delivery. Microsoft 365 can pull a message back out of inboxes after it’s been delivered if it’s later found to be phishing or spam, a feature called zero-hour auto purge, which is on by default (Microsoft Learn). It’s worth leaving on.

Outbound filtering

Filtering also watches what leaves. If a mailbox in your company suddenly starts sending hundreds of messages, that usually means the account has been taken over, and Microsoft 365 will block it from sending and alert an administrator (Microsoft Learn). That protects your reputation: if your domain is seen sending spam, other companies start blocking your legitimate email too. When a staff member says “I can’t send email and I got an odd warning,” check the account before unblocking it. Our post on Microsoft 365 account takeover covers what to look for.

A rule nobody remembers making is a warning sign.

Why good mail gets caught

No filter is perfect in both directions. Set it strict and real mail gets held; set it loose and more junk gets through. The usual reasons legitimate mail is caught:

  • The sender’s own email setup is incomplete, such as a missing or wrong SPF or DKIM record, so their mail fails the checks that prove it’s genuine. It’s their problem to fix, but you feel it.
  • Mail sent through a service on someone’s behalf, such as an invoicing system or e-signature platform, that the sender’s records don’t account for.
  • Messages that look like phishing, because they contain an invoice, a payment link or an urgent request. Which is to say, real business mail.
  • Bulk-looking mail. Newsletters, statements and automated notices can score as bulk. Microsoft rates each message on a scale for this, and the threshold can be adjusted.
  • Forwarding and mailing lists that change messages on the way through, which can break the signature checks.

Switching filtering off is rarely the answer. Add trusted senders carefully, ask the sender to fix their records, and review quarantine regularly.

A safe way to handle allow lists

Allow lists, which tell the filter to always deliver mail from a sender, are the most common way good filtering gets undone. A few rules keep them safe:

  1. Allow specific senders or domains you genuinely deal with, never whole email services such as gmail.com.
  2. Don’t allow a sender just because one message was caught. Check why it was caught first.
  3. Review the list every few months and remove anyone you no longer deal with.
  4. Never allow your own domain. Attackers fake it precisely because people trust it.

What your staff should do

Filtering catches most of it; people catch the rest. Three habits help:

  • Report, don’t just delete. Use the Report button in Outlook. It removes the message and teaches the filter, and it tells whoever looks after your IT that something got through.
  • Check the junk folder when expecting something important, before asking the sender to resend.
  • Never act on a payment change by email alone. Call the sender on a number you already have.

What filtering doesn’t catch

Filtering is one layer, and it has limits worth knowing.

  • Mail from a real account that’s been hijacked. If a vendor’s mailbox is taken over, the fake invoice comes from their genuine address and passes every check. Business email compromise of this kind cost US businesses just over $3 billion in reported losses in 2025, according to the FBI (IC3 2025 report). A phone call to confirm bank changes is the only reliable defense.
  • Clean messages with no link or attachment. “Are you at your desk? I need a quick favor” has nothing for a filter to scan.
  • Pages that turn bad later. Click-time checks help, and so does DNS filtering, which blocks known bad sites whatever route the link took. See our post on DNS filtering.

Six questions to ask about your filtering

  1. Are SPF, DKIM and DMARC set up for our domain, and is DMARC set to act on failures, not just report them?
  2. Are links checked when someone clicks, or only when the email arrives?
  3. Who can release mail from quarantine, and who reviews what’s held?
  4. Is post-delivery removal switched on?
  5. What’s on our allow list, and when was it last reviewed?
  6. Will someone be alerted if one of our accounts starts sending spam?

When the built-in filtering is enough

Microsoft 365 and Google Workspace both include filtering that stops most ordinary spam and malware. For a small office with no sensitive information and no money moving by email, that may be enough, as long as it’s set up properly.

Businesses that handle client funds, sensitive records or regular payments usually need more: stronger impersonation protection, link checking at the time of click and attachment testing. Our post on secure email software covers that wider package, and our guide to email spam filtering solutions compares the main approaches.

How we set up filtering

We manage Microsoft 365 for our Managed IT customers, including SPF, DKIM and DMARC for your own domain, and we set up filtering that keeps phishing and malicious messages away from your team, including after they reach the inbox. When good mail gets caught, you call or email us and a person who knows your setup finds it. If you’d like to know how your email is protected now, our free technology review checks your Microsoft 365 settings and puts it in writing. Call (386) 252-2292.

More on Managed IT

Let's build your foundation.

Tell us where your business is today and we'll help map the next step.