Skip to content
iBlockSpam

Spam filter setup guides for Microsoft 365, Google Workspace and cPanel

Step-by-step instructions for running a spam filter in front of Microsoft 365, Google Workspace and cPanel/WHM.

63 guides

Setup guides

How do you configure Gmail spam and phishing settings in Google Workspace?

Configure Gmail spam, phishing and malware settings in the Google Workspace Admin console: safety settings, approved senders, quarantine and gateway caveats.

9 min read
Setup guides

How do you run a Microsoft 365 anti-phishing assessment?

Check your Microsoft 365 anti-phishing setup against Microsoft's Standard and Strict baselines with Configuration analyzer, ORCA and a DNS check.

8 min read
Setup guides

Email security for freelancers and solopreneurs: a one-person setup

Email security for freelancers and one-person businesses: protect the inbox that resets everything, stop payment redirection and fake clients, own your domain.

10 min read
Setup guides

How do you require TLS for email in Google Workspace with Secure transport compliance?

Require TLS for chosen partners in Google Workspace with Secure transport (TLS) compliance: steps, certificate options, bounces, MTA-STS and how to test.

10 min read
Setup guides

Microsoft 365 anti-malware policy settings: what each one does

Every Microsoft 365 anti-malware policy setting: common attachments filter, reject vs quarantine, ZAP, quarantine policy, admin alerts, defaults and PowerShell.

10 min read
Setup guides

Microsoft 365 connection filter: how to use the IP Allow List safely

How the Microsoft 365 connection filter IP Allow List works, what it skips, how to add IPs in the portal or PowerShell, its limits, and when not to use it.

9 min read
Setup guides

Microsoft 365 priority accounts: how to tag and protect your VIPs

How to tag Microsoft 365 priority accounts, what the tag does with each license, how to check priority account protection is on, and the 250-account limit.

9 min read
Setup guides

What are the Gmail SMTP server settings, and how do app passwords work?

Gmail SMTP settings that work: smtp.gmail.com, ports 465 and 587, app passwords and 2-Step Verification, sending limits, and fixes for 535 and 534 errors.

9 min read
Setup guides

How do you disable automatic email forwarding in Google Workspace?

Turn off or limit Gmail auto-forwarding in Google Workspace: the End User Access path, the internal-only option, OU exceptions, other leak paths and audits.

9 min read
Setup guides

How does email encryption work in Google Workspace: S/MIME, confidential mode or client-side encryption?

How Gmail encrypts mail in Google Workspace: TLS by default, hosted S/MIME, confidential mode and client-side encryption, with editions, admin paths and limits.

10 min read
Setup guides

How do you set up data loss prevention for email in Microsoft 365?

Set up Microsoft Purview DLP for Exchange Online email: licenses, roles, portal steps, templates, PowerShell, simulation mode and blocking sensitive mail.

10 min read
Setup guides

How do you encrypt email in Microsoft 365 with Purview Message Encryption?

How Purview Message Encryption works in Microsoft 365: included plans, Encrypt vs Do Not Forward, auto-encrypt rules, what recipients see, revoke and expiry.

10 min read
Setup guides

What are Microsoft 365 security defaults, and how do they enforce MFA?

What Microsoft 365 security defaults enforce, how to check and enable them, what breaks (legacy auth, device code), and when to switch to Conditional Access.

10 min read
Setup guides

Passkeys for email: how do they stop phishing, and how do you turn them on?

How passkeys stop the email phishing that beats SMS and app codes, synced vs device-bound keys, and how to turn them on in Microsoft 365 and Google Workspace.

10 min read
Setup guides

How do you add email DNS records in Azure DNS?

How to add MX, SPF, DKIM and DMARC records in Azure DNS with the portal, Azure CLI or PowerShell: record sets, @ for the apex and 255-character TXT strings.

10 min read
Setup guides

How do you add email DNS records in Bluehost?

How to add MX, SPF, DKIM and DMARC records in Bluehost DNS, replace the default SPF and MX records, and set cPanel Email Routing so mail isn't kept locally.

9 min read
Setup guides

How do you add email DNS records in Hostinger?

How to add MX, SPF, DKIM and DMARC records in Hostinger hPanel, what goes in the Name field, how to replace Hostinger Email records, and how to check them.

9 min read
Setup guides

How do you add email DNS records in Hover?

How to add MX, SPF, DKIM and DMARC records in Hover: Hostname and Content fields, @ for the root, Hover's limit on 2048-bit DKIM keys, and checking results.

9 min read
Setup guides

How do you add email DNS records in IONOS?

How to add MX, SPF, DKIM and DMARC records in IONOS DNS: the Domains & SSL path, Host name rules, service conflicts, IONOS SPF and DKIM defaults, and checks.

9 min read
Setup guides

How do you add email DNS records in Network Solutions?

How to add MX, SPF, DKIM and DMARC records in Network Solutions DNS: the Refers to and Other Host fields, the 2-hour default TTL, and the default SPF record.

9 min read
Setup guides

How do you add email DNS records in Porkbun?

How to add MX, SPF, DKIM and DMARC records in Porkbun DNS: a blank Host for the root, removing Porkbun's default forwarding MX, and checking the result.

9 min read
Setup guides

How do you add email DNS records in Amazon Route 53?

How to add MX, SPF, DKIM and DMARC records in Amazon Route 53: blank apex names, one TXT record set per name, 255-character strings, and the AWS CLI way.

9 min read
Setup guides

How do you add email DNS records in Squarespace?

How to add MX, SPF, DKIM and DMARC records in Squarespace Domains: Custom Records, presets, how SPF records merge, and which defaults Squarespace removes.

9 min read
Setup guides

How do you add email DNS records in Wix?

How to add MX, SPF, DKIM and DMARC records in Wix: Manage DNS Records, the Edit MX Records wizard, a blank Host Name for the root, and when Wix can't help.

9 min read
Setup guides

What is High Volume Email in Exchange Online, and how do you set it up?

What Exchange Online High Volume Email (HVE) is, its limits and billing, how to create an HVE account in the admin center or PowerShell, and how to fix errors.

9 min read
Setup guides

How do Gmail routing rules work in Google Workspace?

How Gmail Routing and Default routing work in Google Workspace: every option and default, which rule wins, mail routes to other servers, and fixes.

10 min read
Setup guides

How do you set up the Google Workspace SMTP relay service?

Set up Google Workspace's SMTP relay (smtp-relay.gmail.com) for printers, apps and servers: Admin console options, ports, limits and relay error fixes.

10 min read
Setup guides

How do you set up spoofing and authentication protection in Google Workspace?

Set up Gmail's five spoofing and authentication protections in Google Workspace: what each catches, default actions, false positives and how to test.

9 min read
Setup guides

Authoritative vs Internal relay: which accepted domain type should you use in Microsoft 365?

Authoritative or Internal relay? What each Microsoft 365 accepted domain type does, how DBEB fits in, how to change it, and how to fix 550 5.4.1 and 5.4.14.

9 min read
Setup guides

How do you set the bulk complaint level (BCL) threshold in Microsoft 365?

Choose and change the Microsoft 365 bulk complaint level (BCL) threshold: defaults, how to test with the bulk senders insight, portal steps and PowerShell.

9 min read
Setup guides

Does Microsoft 365 honor DMARC p=reject, and how do you control it?

Does Microsoft 365 reject mail that fails a sender's DMARC p=reject? How the Honor DMARC setting works, its defaults, overrides, headers and common fixes.

9 min read
Setup guides

How do you configure the outbound spam policy in Microsoft 365?

Configure the Microsoft 365 outbound spam policy: recipient limits, block actions, external forwarding, custom policies per group and the PowerShell for each.

10 min read
Setup guides

MX record priority and backup MX: how they work and whether you need one

How MX priority (preference) numbers work, what equal priorities do, why a backup MX can bypass your spam filter, and when a secondary MX still makes sense.

9 min read
Setup guides

Null MX record: how to tell the world a domain receives no email

How to publish a null MX record (MX 0 .) for a domain that gets no email, what senders see (556 5.1.10), when not to use it, and how to check it worked.

9 min read
Setup guides

How do you configure cPanel spam filters and SpamAssassin?

What each cPanel Spam Filters setting does: threshold score, Spam Box, Auto-Delete, whitelist and blacklist, plus the WHM SpamAssassin and RBL options.

9 min read
Setup guides

How does spam protection work in GoDaddy Microsoft 365?

What spam protection Microsoft 365 from GoDaddy includes, where to change its settings, and how to add an external spam filter without breaking mail flow.

9 min read
Setup guides

How do you set up the email spam filter in Plesk?

Set up Plesk's spam filter: server-wide SpamAssassin, per-mailbox actions, DNSBL, SPF, DKIM, DMARC and greylisting, plus how to add an external MX-level filter.

9 min read
Setup guides

How do you configure spam protection in Zoho Mail?

Every Zoho Mail admin spam setting explained: SPF, DKIM and DMARC actions, allowed, blocked and trusted lists, quarantine, and how to add an inbound gateway.

9 min read
Setup guides

Email security for startups: what to set up on day one

Email security for startups: founder impersonation, fake remote hires, OAuth consent phishing, product email and a setup that grows from 3 to 50 people.

9 min read
Setup guides

How do you protect the domain your email depends on?

Protect the domain your email depends on: registrar MFA, transfer lock vs registry lock, auto-renew, contact addresses and DNS host security, plus a checklist.

10 min read
Setup guides

How do Exchange Server's built-in anti-spam agents work, and are they enough?

Exchange Server's built-in anti-spam agents: what each does, Mailbox vs Edge, installing with Install-AntiSpamAgents.ps1, their limits, and adding a hosted gateway.

10 min read
Setup guides

How do you enforce 2-Step Verification in Google Workspace without locking people out?

How to enforce 2-Step Verification in Google Workspace without lockouts: enrollment periods, security key and passkey only mode, backup codes, and admin rules.

10 min read
Setup guides

How do you set up advanced phishing and malware protection in Google Workspace?

What each Gmail Safety setting in Google Workspace does, how warning, spam and quarantine actions affect users, and which editions get Security Sandbox.

10 min read
Setup guides

How do you use Gmail content compliance rules to improve email security in Google Workspace?

Use Gmail content compliance, objectionable content and attachment compliance rules for security: expressions, actions, rule order and three worked examples.

10 min read
Setup guides

How do you set up the advanced delivery policy for phishing simulations in Microsoft 365?

Set up the Microsoft 365 advanced delivery policy for third-party phishing simulations and SecOps mailboxes: domains, sending IPs, URLs, limits and pitfalls.

9 min read
Setup guides

Microsoft 365 anti-phishing policy settings: what each one does

Every Microsoft 365 anti-phishing setting explained: spoof, impersonation, mailbox intelligence, phishing thresholds 1 to 4, safety tips and Standard vs Strict.

10 min read
Setup guides

How do you configure anti-spam policies in Microsoft 365?

Every Microsoft 365 anti-spam policy setting explained: bulk threshold, verdict actions, ZAP, quarantine policies, allow lists, outbound limits and IP Allow List.

10 min read
Setup guides

How do you set up Attack simulation training in Microsoft 365?

Run phishing simulations with Microsoft 365 Attack simulation training: licensing, the seven techniques, payloads, training assignment, reports and fair use.

10 min read
Setup guides

Microsoft 365 connectors explained: when you need them and how they work

When Exchange Online needs inbound or outbound connectors: Partner vs on-premises types, TLS certificate and IP matching, smart hosts, validation and mistakes.

9 min read
Setup guides

What are Microsoft 365 preset security policies, and should you use them?

Built-in protection, Standard and Strict preset security policies in Microsoft 365: what each covers, how they override custom policies, and when to go custom.

9 min read
Setup guides

How do Safe Links and Safe Attachments work in Microsoft 365, and how do you set them up?

What Safe Links and Safe Attachments do, who is licensed, what Built-in protection sets, Dynamic Delivery, URL rewriting, and how they work behind a gateway.

10 min read
Setup guides

What does the SMTP AUTH Basic auth retirement mean for your Microsoft 365 tenant?

Microsoft turns off Basic auth for SMTP AUTH by default at the end of December 2026. The timeline, how to find affected devices, the settings and alternatives.

11 min read
Setup guides

How does spoof intelligence work in Microsoft 365?

Use the Microsoft 365 spoof intelligence insight, allow or block spoofed sender pairs, read compauth reason codes and explain the ? and via tags in Outlook.

9 min read
Setup guides

How do you add SPF, DKIM and DMARC records in Cloudflare?

Step-by-step: add SPF, DKIM, DMARC and MX records in Cloudflare DNS, why mail hostnames must be DNS only, how TXT quoting works, and how to check your records.

8 min read
Setup guides

How do you add email DNS records in GoDaddy?

How to add and edit SPF, DKIM, DMARC and MX records in GoDaddy DNS: exact fields, the one-SPF-record rule, Domain Protection checks and how to verify them.

8 min read
Setup guides

How do you add email DNS records in Namecheap?

How to add SPF, DKIM and DMARC TXT records and custom MX records in Namecheap Advanced DNS, what goes in the Host field, and how to check that they work.

8 min read
Setup guides

How do you set up DMARC for Microsoft 365 domains?

Publish DMARC for your custom domains and the onmicrosoft.com domain in Microsoft 365, roll out safely to p=reject, and check how inbound DMARC is enforced.

9 min read
Setup guides

How to put an external spam filter in front of cPanel/WHM

Put an external MX-level spam filter in front of cPanel/WHM: Email Routing, trusted SMTP IPs, blocking direct-to-server spam and SpamAssassin tuning.

9 min read
Setup guides

How to set up a Google Workspace inbound gateway for a spam filter

Configure Gmail's Inbound gateway for an MX-level spam filter: gateway IPs, external IP detection, direct-mail rejection, TLS, DMARC and rollback.

9 min read
Setup guides

How do you set up scan to email and app SMTP with Microsoft 365?

Set up a printer, scanner or app to send through Microsoft 365: SMTP AUTH on port 587, a relay connector, Direct Send or HVE, and the Basic auth retirement.

11 min read
Setup guides

How to use an external spam filter with Microsoft 365 and Enhanced Filtering for Connectors

How to run an MX-level spam filter in front of Exchange Online: Partner connector, Enhanced Filtering for Connectors, why not SCL -1, headers and rollback.

10 min read
Setup guides

How do you set up email on a new business domain?

Setting up email on a new business domain? Follow this checklist: MX, SPF, DKIM, DMARC from p=none to enforcement, optional MTA-STS and BIMI, PTR and warm-up.

10 min read
Setup guides

How do you add an external email warning tag in Outlook and Microsoft 365?

Turn the Outlook External tag on or off with Set-ExternalInOutlook, exempt partner domains, or add a mail flow rule banner. Client support and timing explained.

11 min read

About these guides

Putting a filtering service in front of your mailboxes takes the same three moves on every platform. First, tell your mail platform to trust mail arriving from the filter. Second, point your MX records at the filter. Third, close the side door, so senders can't deliver straight to your mailboxes and skip the filter. What differs between platforms is where each setting lives and what it's called.

These step-by-step guides cover each platform in detail:

  • Microsoft 365: an inbound connector for the filter's IP addresses, and Enhanced Filtering for Connectors so Microsoft evaluates the original sender rather than the filter.
  • Google Workspace: an inbound gateway with the filter's IP ranges, then "Reject all mail not from gateway IPs" once mail is flowing through the filter.
  • cPanel/WHM: Email Routing set to Local Mail Exchanger, the filter's ranges trusted by Exim and SpamAssassin, and inbound port 25 restricted.

Do the steps in that order. Before you change anything, note your current records so you can roll back, and lower the TTL on your MX records a day ahead; changing MX records without losing email covers the timing. Afterwards, send a test message from an outside account and check its headers with the free Email Header Analyzer. Closing the side door has its own guide, including how to test it.

Frequently asked questions

In what order should I set up a spam filter in front of my mail platform?

First add the filter to your platform as a trusted inbound source, such as a connector or inbound gateway. Then lower your MX TTL, change MX to the filter and watch mail arrive through it. Only after that, close direct delivery so senders can't skip the filter. Doing it in a different order risks rejected or misjudged mail.

Do my users or mailboxes change when I add a gateway filter?

Usually not. Mailboxes, addresses and passwords stay where they are on Microsoft 365, Google Workspace or cPanel, and users keep the same mail apps. The changes are to DNS (your MX records) and to a few admin settings that tell your platform to trust mail from the filter.

Why should I block direct delivery after changing MX?

Because MX records only tell senders where to deliver; they don't stop anyone connecting to your mailbox provider directly. Spammers use that route to skip the filter. A connector rule in Microsoft 365, Reject all mail not from gateway IPs in Google Workspace, or a port 25 restriction on cPanel makes the filter the only way in.