What is Greylisting?

Greylisting is an anti-spam technique where a server temporarily rejects unknown senders, expecting legitimate ones to retry.

Greylisting is a spam-defense method used by receiving mail servers that temporarily rejects a message from an unfamiliar sender the first time it arrives. The server issues a temporary 4xx deferral and records a triplet of the sender's IP, the envelope sender, and the recipient. It is essentially a test of whether the sender behaves like real mail infrastructure.

The technique works because legitimate mail servers, following the SMTP standard, will queue a deferred message and retry it after a short delay. Many spam-sending tools, by contrast, fire and forget - they do not bother retrying - so the message never arrives. When the legitimate sender retries after the greylisting window, the server accepts it and usually remembers the triplet so future mail passes immediately.

The main downside is delay. The first message from any new sender is postponed by minutes to sometimes an hour or more, depending on the retry schedule, which can be a problem for time-sensitive mail like password resets or one-time codes. After the initial acceptance, subsequent mail flows normally, so the delay is a one-time cost per sender.

For senders, greylisting registers as a soft bounce on the first attempt, and a properly configured system will simply retry and get through. Problems arise only when a sender fails to retry correctly or when misconfiguration causes the retry to come from a different IP than the first attempt, breaking the triplet match and prolonging the delay.

Examples

  • 421 4.7.1 Greylisted, please try again later - a first-attempt deferral
  • A password-reset email delayed several minutes on first contact with a domain
  • A retry from the same IP after the window that the server then accepts and remembers

Common questions

Is greylisting a bounce?
It registers as a soft bounce on the first attempt because it returns a temporary 4xx deferral. A correctly configured sender retries and the message is accepted, so it is not a permanent failure.
Why does greylisting cause delays?
The first message from an unknown sender is deferred until it is retried after the greylisting window, which can take minutes to an hour. This is a one-time delay per sender; later mail passes without deferral.
How can senders avoid greylisting problems?
Use a proper mail server that retries deferrals reliably and sends retries from a consistent IP. Since the delay is one-time, the main goal is ensuring your system retries correctly rather than dropping the message.

Related tools

Related terms for Greylisting