Blog
Written By Sameer Asad, WhoisFreaks Team Published: June 22, 2026, Last Updated: November 18, 2026
Spam filters have a blindspot. They catch domains with known bad reputations: addresses that have been reported, blocklisted, and flagged across threat intelligence platforms. But the domain registered this morning? The one a threat actor spun up three days ago to run a phishing campaign before any reputation data exists? Most filters pass it straight through.
This is the newly registered domain (NRD) problem, and it accounts for a large share of the most damaging email threats reaching inboxes today.
This guide walks through integrating the WhoisFreaks NRD feed directly into Rspamd and Postfix on Ubuntu. The result is a fully open-source, server-level email filtering stack that catches NRD-sourced mail at the SMTP layer before it reaches any inbox.
The security industry has known for years that domain age is one of the strongest signals of malicious intent. Palo Alto Networks' Unit 42 found that more than 70% of newly registered domains are malicious, suspicious, or not safe for work, a rate roughly ten times higher than what they observed across the most popular established domains. The pattern holds in more recent data: Interisle Consulting Group's Phishing Landscape 2025 report, which analyzed nearly four million phishing reports between May 2024 and April 2025, found that 77% of all domain names used in phishing attacks were maliciously registered by cybercriminals, a 36% increase in such registrations year over year.
The math behind why attackers favor new domains is simple. A fresh domain has no reputation. It appears on no blocklist. Reputation-based filters, which form the backbone of most commercial and open-source spam filtering, have nothing to check it against. The attacker gets a clean window of several days, sometimes weeks, to run campaigns before any feed picks the domain up.
Attackers register lookalike domains in bursts, often using them for only a few hours to stay ahead of blocklists. This hit-and-run approach exploits the latency between registration, first use, and reputation feed propagation. By the time a domain lands on a blocklist, the campaign is over and the operator has moved to the next batch.
The financial stakes are large. According to the FBI's 2024 Internet Crime Report, business email compromise caused $2.77 billion in reported losses in 2024, part of $16.6 billion in total cybercrime losses that year. NRDs are a primary vehicle for BEC because they can be made to look like a legitimate company domain registered weeks ago, with no public record of abuse.
The defensive logic follows. If you can identify domains registered in the last N days and raise the cost of using them as mail senders, you neutralize an entire class of attack before any individual domain has to be manually reported or blocklisted.
There are several ways to act on NRD data: DNS blocklists, firewall rules, browser filtering through Pi-hole or AdGuard. Each has its place. But email is the primary delivery channel for NRD-based attacks, which makes the mail server the most precise place to intervene.
Rspamd and Postfix are the two most widely deployed open-source components of a self-hosted mail server. Here is why the combination fits NRD filtering specifically.
Rspamd operates at the SMTP layer. It does not wait for a message to hit an inbox, get opened, or trigger a downstream rule. It evaluates the message at the moment Postfix accepts the connection, before delivery. If the sender domain is on the NRD list, the score adjustment happens in that same transaction.
Rspamd uses a composite scoring model. This is the critical architectural difference from a plain blocklist. Rather than making a binary allow or block decision based only on domain age, Rspamd adds the NRD signal as one factor among many: SPF alignment, DKIM validity, DMARC policy, Bayesian analysis, URL reputation, and others. A newly registered domain that passes SPF and DKIM and sends a well-formed message might score 5 or 6. The same domain with a missing DKIM record, a forged From header, and a suspicious URL pattern might score 18 and get rejected. The integration raises the bar for NRD senders without breaking legitimate mail from a company that happens to have registered its domain recently.
Rspamd is fast. Per the official Rspamd performance documentation, it can process ten times the number of messages that SpamAssassin handles using the same ruleset, and migrating from SpamAssassin to Rspamd measurably reduces CPU load on scanning machines. For mail servers handling real volume, that headroom matters.
Postfix is the most widely deployed open-source MTA. It handles the SMTP conversation, queuing, and delivery. Rspamd connects to it through the milter protocol, the same interface used by commercial filtering appliances. The combination is production-proven at scale.
The architecture has three components that interact in a clean sequence.
A few design decisions here are worth understanding.
The map file is updated atomically. The fetch script builds the new domain list into a temporary file and renames it over the existing map. On Linux, rename() is atomic, so Rspamd reads either the old file or the new one, never a partial write. This matters at scale, where a map file holds millions of entries and a write takes a measurable fraction of a second.
Rspamd hot-reloads via inotify. When the cron job replaces the map file, the kernel notifies Rspamd of the change and Rspamd reloads the map in the background. No systemctl reload, no rspamc reload, no service restart. The daily cron job runs the fetch script and exits.
The rolling window is configurable. The WINDOW_DAYS variable controls how many days of NRD data feed into the map. The WhoisFreaks feed publishes a large volume of new domains every day across gTLDs and ccTLDs, so window size drives map size directly. At a 10-day window, the map holds roughly 3 million unique domains. At 30 days it grows to around 9 million. The caching layer means each daily run only downloads the newest day's data; the rest is already on disk.
The score is additive, not terminal. The WF_NRD_SENDER symbol adds 5.0 to the spam score. It does not reject on its own (Rspamd's default reject threshold is 15.0). A domain that is newly registered but sends well-formed, authenticated mail will likely score around 5 to 7, triggering a spam header rather than a rejection that could block a legitimate new sender.
The entire setup (Rspamd, Postfix, the fetch script, the multimap rule, the Postfix milter config, and the daily cron job) is automated by a single installer.
git clone https://github.com/WhoisFreaks/wf-rspamd-postfix-nrd-feed.git
cd wf-rspamd-postfix-nrd-feed
sudo ./install.sh
The installer walks through the setup steps, prompts for your WhoisFreaks API key once (stored at /etc/whoisfreaks/apikey with chmod 600), and exits with a working installation. On first run, the seeding step downloads the full window. At WINDOW_DAYS=10, that is 20 files covering 10 days of gTLD and ccTLD registrations, typically completing in 2 to 4 minutes.
After installation, verify the rule is firing:
wf-nrd-test.sh recently-registered.xyz # expect WF_NRD_SENDER(5.00)
wf-nrd-test.sh whoisfreaks.com # expect no WF_NRD_SENDER

The critical difference: WF_NRD_SENDER(5.00) appears in the symbol list for the NRD domain and is absent for the established domain. That discrimination is the integration working as designed.
A company running its own Postfix instance, whether on-premises or on a VPS, can deploy this integration to harden inbound filtering against phishing campaigns that target employees using freshly registered lookalike domains. payrol-processing-companyname.xyz registered yesterday triggers the rule. companyname.com registered years ago does not. The discrimination is automatic and runs daily.
A hosting provider managing mail for hundreds of customer domains processes all inbound mail through a shared Postfix and Rspamd stack. Deploying this integration once protects every hosted domain at the same time. The NRD feed becomes a platform-level feature with no per-customer configuration.
Academic institutions are heavily targeted by credential phishing, with attackers impersonating IT departments, grant bodies, or journal publishers using freshly registered domains that look plausible. A university running its own mail server can raise the spam score on any email from a domain registered in the last 10 to 30 days, catching campaigns before a student or researcher clicks a link.
Public sector entities often operate under data sovereignty constraints that prevent routing mail through commercial cloud filtering. A self-hosted Postfix and Rspamd stack with the WhoisFreaks NRD feed satisfies the filtering requirement and the on-premises data handling requirement at once, with no mail content leaving the organization's infrastructure.
SOC teams can tune the WINDOW_DAYS window tightly, to 3 to 5 days, and raise the score to 8.0 or 10.0 to create a near-block condition on very fresh domains. Combined with Rspamd's action logging, this produces a feed of NRD-sourced mail attempts that analysts can monitor for brand impersonation patterns. To pivot from a flagged sender domain to every other domain tied to the same registrant, pair this with the Reverse WHOIS API.
The two most important configuration parameters are score in multimap.conf and WINDOW_DAYS in the cron file.
The default score of 5.0 is deliberately conservative. It triggers a spam header on its own without rejecting. For environments with a low tolerance for NRD-sourced mail, raise it to 8.0 or 10.0. For environments where false positives are a concern, such as a server that regularly receives mail from new businesses, keep it at 3.0 and treat it as a tiebreaker.
Window tuning:
| Window | Approximate map size | Recommended for |
|---|---|---|
| 5 days | ~1.5M domains | Low false-positive environments |
| 10 days | ~3M domains | Balanced default |
| 30 days | ~9M domains | High-security environments |
Map sizes are approximate and track daily registration volume, which varies day to day.
Hard reject mode is available through the commented-out variant in multimap.conf. Switching to prefilter = true and action = "reject" causes Rspamd to refuse the SMTP connection entirely for any NRD sender. Only use this after two or more weeks of monitoring the scoring mode.
This only works on mail you control at the server level. If your domain's MX records point to Microsoft 365, Google Workspace, or another hosted provider, this integration does not apply. Those providers filter mail on their own infrastructure. This setup is for organizations and individuals running their own Postfix instance.
Newly registered does not always mean malicious. A legitimate startup that registered its domain last week will trigger this rule. The scoring model handles that gracefully. A well-formed, SPF-authenticated, DKIM-signed message from a new domain will score 5.0 from this rule and nothing else, landing in the add_header range rather than being rejected.
The feed covers what was registered, not what was weaponized. The NRD feed lists all newly registered domains, not only the malicious ones. This is by design. Threat intelligence on individual domains comes after the fact, too late to block the initial wave. The NRD signal is a proactive posture: treat new domains with elevated suspicion until they establish a reputation.
This Rspamd and Postfix integration is one layer of a broader NRD-aware security posture. The WhoisFreaks NRD feed can be applied at several points across your infrastructure.
DNS layer (Pi-hole or AdGuard Home). Block NRD domains at DNS resolution for your entire network. Any device that queries an NRD domain gets a blocked response, regardless of protocol. This catches web browsing, app connections, and email client lookups in addition to server-level mail.
Email layer (Rspamd and Postfix). Score or reject inbound mail from NRD senders at the SMTP layer, as described in this guide.
Threat intelligence layer. Feed NRD data into SIEM platforms, firewall rules, or endpoint detection tools to flag or block connections to NRD infrastructure across your environment. For historical pivots and registrant analysis, the WHOIS Database adds context that a daily feed alone does not carry.
Each layer catches what the others miss. DNS blocking is broad but does not see mail content. Email filtering is precise but only applies to SMTP. The combination is more resilient than any single layer alone.
The newly registered domain problem sits at the front of most phishing and BEC campaigns, not at the edge. Attackers register domains precisely because they are invisible to reputation-based filters during their operational window. The reliable counter is to act on domain age directly, before reputation data exists.
The Rspamd, Postfix, and WhoisFreaks NRD integration described here does that at the infrastructure level, without cloud dependencies, without commercial licensing, and without ongoing manual maintenance. A daily cron job keeps the map current, inotify reloads it automatically, and the scoring model gives new domains elevated scrutiny without breaking legitimate mail. If blocking is your only use case, the feed's Domains Only tier is the most economical starting point.
The full source is available at github.com/WhoisFreaks/wf-rspamd-postfix-nrd-feed. Setup details and configuration reference are in the NRD feed documentation.
This integration is part of the WhoisFreaks NRD tools series. Related integrations: Pi-hole NRD Feed and AdGuard Home NRD Feed.

Quick answer. A newly registered domain (NRD) feed in MISP flags how old a domain is at the moment an analyst looks at it. WhoisFreaks publishes NRD data as a local MISP feed directory, so MISP pulls it on its own schedule with no API key between the two systems. Run it in cache-only mode and you get the freshness signal and the exact registration date, with zero events, zero attributes, and zero correlation rows in the database. Cache or fetch? Start here MISP has two independent ways to con
14 min read
Every day, tens of thousands of new domains are registered across the internet. Most are legitimate: new businesses, personal projects, side ventures. But a meaningful share are registered for one purpose, to impersonate a bank, deliver malware, or phone home to a command-and-control server before security vendors have ever seen them. This is the Newly Registered Domain (NRD) problem, and it sits at the heart of a detection gap that traditional threat intelligence feeds consistently fail to clo
7 min read