Greylisting is an email security technique that temporarily rejects messages from unknown senders, forcing them to retry delivery later. This blocks most spam while allowing legitimate emails through.
When an email arrives, the server checks if the sender is known. If not, it responds with a temporary failure code (like "try again later"). Legitimate servers retry, while spammers often move on to easier targets.
The first retry typically happens within minutes, while spam systems rarely retry. After a few successful deliveries, the sender is whitelisted, allowing future messages to pass through immediately.
Most greylisting implementations fall into two categories:
| Type | Key Feature | Example Implementation |
|---|---|---|
| Basic | Simple temporary rejection | Postgrey |
| Enhanced | Additional filters for better accuracy | Milter-greylist |
Greylisting is primarily used by businesses and individuals to reduce spam volume without complex filtering rules. It works at the SMTP level, making it compatible with most email systems.
According to a study by Security Magazine, greylisting can block 98% of spam emails when combined with other techniques. However, it may slightly delay legitimate emails during the initial whitelisting period.
Some people confuse greylisting with blacklisting or whitelisting. Unlike those methods, greylisting doesn't permanently block or allow senders-it temporarily delays messages until the sender proves reliability.
Another misconception is that greylisting slows down all email delivery. In reality, only the first message from a new sender is delayed. Subsequent messages from the same sender go through immediately.
I implemented greylisting on a small business email server. Initially, spam dropped by about 70%, but some legitimate newsletters were delayed. After adjusting the retry rules, the system blocked 90% of spam with minimal delays to important emails.
For best results, combine greylisting with other methods like SPF, DKIM, and DMARC. This multi-layered approach provides solid protection against spam while maintaining email deliverability.