Glossary · Deliverability
What is greylisting?
The short answer
Greylisting is a spam-fighting method where a mail server refuses the first email from a sender it has not seen before and asks it to try again later. A real mail server tries again after a few minutes and the email is accepted. Most spam software never retries, so the spam is never delivered.
Also called: greylisting email, email greylisting, graylisting, greylisted
By Ali Tahir Sajjad · Updated · 4 min read
Greylisting: what to remember
- Greylisting means: not now, try again in a few minutes.
- It is a temporary refusal, not a block. Normal mail servers retry on their own and the email gets through.
- The only effect you notice is a delay, usually from a few minutes to about an hour, on the first email to that server.
- You do not need to fix anything. Google Workspace and Microsoft 365 retry greylisted emails automatically.
What does greylisting mean?
Greylisting is a simple trick mail servers use to keep spam out. When an email arrives from a sender the server has never seen before, the server says:
“I am busy. Try again in a few minutes.”
That is the whole idea. A real mail server follows the rules of email, waits a few minutes and tries again. The second time, the door opens. Most spam is sent by quick, cheap software that fires off millions of emails and never comes back for a second try. So the spam is never delivered.
Think of a shop with a sign on the door: “Back in 5 minutes.” A real customer waits or returns. Someone who was only walking past, trying every door, moves on.
The name comes from colours. A whitelist is a list of senders that are always let in. A blacklist is a list of senders that are always kept out. A greylist is the space in between, for senders the server has not made up its mind about yet.
How greylisting works, step by step
- Your mail server tries to deliver an email.
- The receiving server checks three things: the address of the sending server, the sender’s email address and the recipient’s email address.
- It has never seen this combination before, so it replies with a temporary error and saves a note of the attempt.
- Your mail server waits, then tries again, as the rules of email require.
- The receiving server recognises the combination, sees that enough time has passed and accepts the email.
- It remembers you. Your next emails to that server go straight through.
A greylisting example
You send a first email to maria@example.org. Her company’s mail server uses greylisting, so it answers:
451 4.7.1 Greylisted, please try again in 5 minutes
The code starts with a 4, which means “temporary”. That makes it a kind of soft bounce, not a permanent failure.
Your mail server waits and tries again ten minutes later. This time the answer is:
250 2.0.0 OK, message accepted
Maria gets the email about ten minutes later than she otherwise would have. She never knows anything happened.
Why mail servers use greylisting
Greylisting is popular with smaller companies and universities that run their own mail servers, for three reasons.
- It is cheap. The server does not have to scan the content of the email to turn away a lot of spam.
- It is effective. A large share of spam is sent by software that does not retry.
- It is safe. No genuine email is lost, only delayed.
The cost is the delay. That is why the biggest inbox providers rely more on reputation and content than on greylisting.
Greylisting vs blacklisting
| Greylisting | Blacklisting | |
|---|---|---|
| What it is | A short delay for unknown senders | A refusal of known bad senders |
| How long it lasts | Minutes | Until you are removed from the list |
| Error code starts with | 4 (temporary) | 5 (permanent) |
| What you do | Nothing. It clears by itself | Find the cause and ask to be removed |
Greylisting and cold email
Cold email runs into greylisting more than normal email does, because every email is the first one you have ever sent to that person’s server.
In practice, this is what you will notice:
- A short delay. The first email in a sequence may arrive later than the time you scheduled.
- A temporary warning. Your cold email tool may show the message as delayed or as a soft bounce until the retry succeeds.
- No harm to your reputation. Being greylisted is normal and is not counted against you.
The important thing is that the retry happens. Mailboxes on Google and Microsoft retry for you automatically, which is one advantage of sending from real Google Workspace inboxes or Microsoft 365 inboxes instead of a home-made mail server that may not be set up to retry properly.
What to do about greylisting
- Wait. Most greylisted emails are delivered within the hour.
- Do not send the email again by hand. A duplicate just starts the clock again and may look like spam.
- Check the error code. A code starting with 4 is temporary. A code starting with 5 is a different problem.
- Look at the timestamps. If you want proof of the delay, the email header of the delivered message shows when each server handled it.
- Worry only about patterns. If the same emails stay “delayed” for days, something other than greylisting is going on.