Webiano Digital & Marketing Agency
Webiano Digital & Marketing Agency
  • Home
  • About Us
  • Services
    • Strategy
    • Digital Platforms
    • Performance
    • Communication
    • Infrastructure
    • Consulting
    • Education
    • All Services
  • Clients
  • Insights
    • Agency Journal
    • AI Search & Discoverability
    • Artificial Intelligence
    • Brand Positioning & Authority
    • Digital Platforms
    • Infrastructure & Security
    • Performance & Digital Marketing
    • Linux & Open Source
    • Visual Content & Production
    • Digital Work & Society
    • Web Radar
    • Robotics & Embodied AI
    • All Insights
  • FAQ
  • Knowledge base
  • Contact
Menu
  • Home
  • About Us
  • Services
    • Strategy
    • Digital Platforms
    • Performance
    • Communication
    • Infrastructure
    • Consulting
    • Education
    • All Services
  • Clients
  • Insights
    • Agency Journal
    • AI Search & Discoverability
    • Artificial Intelligence
    • Brand Positioning & Authority
    • Digital Platforms
    • Infrastructure & Security
    • Performance & Digital Marketing
    • Linux & Open Source
    • Visual Content & Production
    • Digital Work & Society
    • Web Radar
    • Robotics & Embodied AI
    • All Insights
  • FAQ
  • Knowledge base
  • Contact
Home » Knowledge base » Internet » Email infrastructure » Greylisting

Greylisting

6 min read · 7 sections

In short

Greylisting is an anti-spam technique in email infrastructure that temporarily rejects mail from unknown senders and accepts it when the server retries.

On this page 7
  1. How greylisting uses SMTP temporary failures
  2. Timing parameters and their effects
  3. Greylisting compared with other filtering methods
  4. Deploying greylisting in practice
  5. Limitations, risks and common mistakes
  6. A plain-language summary
  7. An example from practice

Greylisting is an anti-spam technique in which a receiving mail server temporarily rejects the first delivery attempt from an unfamiliar sender and accepts the same message only when the sending server retries after a delay. Within Email infrastructure on the Internet, it exploits a simple behavioral difference: legitimate mail transfer agents queue and retry deferred messages as SMTP requires, while many bulk spam tools fire once and move on.

The method was proposed in 2003 and spread quickly because it is cheap, needs no content analysis and blocks a large share of botnet traffic. Its main cost is delayed first-time delivery, which ranges from a few minutes to more than an hour depending on the sender’s retry schedule.

How greylisting uses SMTP temporary failures

Greylisting works by answering an unknown delivery with a 4xx temporary failure code, usually 451 4.7.1 Try again later, instead of accepting or permanently refusing it. RFC 5321 obliges a compliant sender to keep the message in its queue and try again, so genuine mail still arrives, only later.

The receiving server identifies each delivery attempt by a triplet: the IP address of the connecting client, the envelope sender from MAIL FROM and the envelope recipient from RCPT TO. The decision is made at the RCPT TO stage, before the message body is transferred, which keeps bandwidth and processing cost very low.

The following table shows the states a triplet passes through in a typical implementation.

StateTriggerServer response
New tripletFirst attempt from an unseen combination451 temporary failure, record created
Blocked windowRetry before the minimum delay expires451 again, record unchanged
PassedRetry after the minimum delay250 accepted, triplet whitelisted
Auto-whitelistedLater mail from a known triplet or hostAccepted immediately
ExpiredNo retry within the retry windowRecord deleted
Life cycle of a greylisting triplet

Timing parameters and their effects

The effectiveness and user impact of greylisting depend almost entirely on three timers. Administrators balance them to block one-shot senders without holding up real correspondence or bloating the triplet database.

ParameterCommon rangeWhat it controls
Minimum delay1 to 5 minutesHow soon a retry is accepted
Retry window4 to 48 hoursHow long an unconfirmed triplet is kept
Whitelist lifetime30 to 60 daysHow long a passed sender skips the check
Auto-whitelist threshold3 to 10 deliveriesWhen a whole client host is trusted
Typical greylisting timers

A short minimum delay of one to five minutes is usually enough, because spamware rarely retries at all. Raising it to 15 or 30 minutes gains little filtering and noticeably delays legitimate mail, since large senders often space their retries at 15 minutes or more.

Real delay is set by the sender, not the receiver. Postfix and Exim commonly retry within 5 to 15 minutes, while some hosted platforms back off for 30 to 60 minutes, so the observed wait can exceed the configured minimum by a wide margin.

Greylisting compared with other filtering methods

Greylisting is a reputation-free, behavior-based filter, which sets it apart from content scanning and domain authentication. It is best treated as one layer among several rather than a replacement for a full spam filter.

MethodWhat it checksMain weakness
GreylistingWhether the sender retriesDelays first contact
DNSBL lookupSending IP against public blocklistsFalse positives from listed shared IPs
SPF, DKIM and DMARCDomain authorization and signaturesSpammers can authenticate their own domains
Content filteringMessage text, links and attachmentsHigher CPU cost and tuning effort
NolistingWhether the sender tries a secondary MXBreaks with careless DNS changes
How greylisting differs from related controls

Nolisting is a close relative: a dead primary MX record forces a fallback to the working secondary host, which bots often skip. Both techniques rely on the same insight that compliant SMTP behavior is itself a signal of legitimacy.

Deploying greylisting in practice

Greylisting is normally implemented as a policy service consulted by the mail transfer agent. Postfix uses external daemons such as Postgrey through its policy delegation protocol, Exim can express the logic in its access control lists, and filtering suites such as Rspamd offer score-based greylisting applied only to doubtful messages.

A careful deployment reduces delay for known senders. The decision table below summarizes recommended settings for common situations.

SituationRecommended approachReason
Small business serverGreylist all unknown tripletsCheap and highly effective against bots
Large provider poolsMatch the client by /24 subnetRetries often come from a different IP
Time-sensitive mailWhitelist known sendersAvoids delayed codes and receipts
Modern filtering stackGreylist only messages with medium scoresLimits delay to suspicious traffic
Backup MX hostApply the same policy and shared dataPrevents bypass through the secondary
Configuration choices by situation

Operators should also exempt authenticated submission on port 587 and internal relays, because greylisting is meant for inbound server-to-server traffic only.

Limitations, risks and common mistakes

The largest drawback is the unpredictable first-delivery delay, which hurts one-time passwords, password reset links and confirmation messages that expire within minutes. Users may request the code repeatedly and receive several at once later.

Effectiveness has also declined over time. Many botnets and spam services now retry, and spammers increasingly route through compromised accounts at major providers that behave like any compliant MTA, so greylisting alone stops a smaller share than it did in the mid-2000s.

  • Large sender pools: retries from different IP addresses restart the timer and can delay mail for hours unless subnet matching or provider whitelists are used.
  • Misbehaving legitimate senders: some older appliances and scripts treat a 4xx reply as permanent and never retry, causing silent message loss.
  • Unsynchronized MX hosts: a secondary server without greylisting becomes an easy bypass path.
  • Overlong delays: minimum delays above 15 minutes add user frustration with little extra filtering benefit.

A plain-language summary

Greylisting is like a doorkeeper who politely tells every unfamiliar visitor to come back in a few minutes. Real visitors with a genuine reason simply wait and knock again, so they get in. Many junk-mail machines never return, so their messages are never delivered.

Once a sender has passed the test, the doorkeeper remembers it and lets it straight in next time. The key trade-off is that the very first message from a new sender may arrive several minutes to an hour late.

An example from practice

A regional accounting firm runs its own Postfix server for 40 employees and receives roughly 6,000 inbound connection attempts per day, most of them spam from residential botnet addresses. The administrator enables a Postgrey policy service with a five-minute minimum delay, a 36-hour retry window and a 35-day whitelist lifetime, and adds subnet matching for large providers.

Within a week, the number of messages reaching the content filter falls by about two thirds, and CPU load on the server drops accordingly. Complaints arise only when clients receive verification codes from a tax portal, so the administrator whitelists that sending domain. The outcome is a much lighter spam load with only occasional delays for genuinely new correspondents.

Published November 28, 2026

Filed under

  • Internet

    Subject

  • Email infrastructure

    Topic

Growth is engineered, not improvised.

All rights reserved © 2002–2026 | Webiano Digital & Marketing Agency

Social Media

  • Facebook
  • LinkedIn
  • YouTube

GDPR, Privacy and Cookies Policy

Copyright and Content Use Policy

Webiano Code of Ethics

  • Slovakia
  • Czechia
  • Europe
  • Global

Daily News & Insights via RSS