MailSpecto
Deliverability 3 min read

Greylisting – how it works and why it delays mail

Greylisting is a simple anti-spam technique: the receiving server rejects the first delivery attempt from an unknown sender and waits for it to try again. We explain how it works, why it sometimes delays important messages and how to deal with it as a sender and as an administrator.

MailSpecto Engineering Team

Mail infrastructure and deliverability

Attempt 1 unknown triplet 451 4.7.1 try again later Attempt 2 a few minutes later 250 OK accepted

1. How greylisting works

A server with greylisting (RFC 6647) remembers a so-called triplet for each delivery attempt: the sender's IP address, the sender address (MAIL FROM) and the recipient address (RCPT TO). When it sees a triplet for the first time, it replies with a temporary error:

RCPT TO:<[email protected]>
451 4.7.1 Greylisted, please try again later

A proper mail server has a queue and retries after a few minutes. The greylisting server sees a known triplet that has waited the minimum time and accepts the message. Further messages from that sender usually go through without delay.

Many simple bulk spam tools do not retry, so their messages are simply lost.

2. Drawbacks of greylisting

  • A delayed first message: usually a few to a dozen or so minutes, but longer depending on the sender's retry schedule.
  • One-time codes and password resets: a message with a code that expires after 10 minutes may arrive too late.
  • Senders with many servers: large platforms send from a pool of IP addresses. A retry from a different IP is a new triplet for greylisting, so the delay grows. That is why most deployments have exception lists for large providers.

3. Tips for administrators

  1. Consider whether greylisting is still needed. Modern spam filters and sender reputation often work better without delaying mail.
  2. Maintain exception lists for large mailbox providers and sending platforms.
  3. Group IP addresses (e.g. a whole /24 network) so a retry from a neighbouring server does not restart the process.
  4. Set a short minimum wait (e.g. 1–5 minutes).

4. Tips for senders

  • Send through a server or platform that retries according to the standard and has a queue.
  • Send one-time-code messages from the same IP pool every time, and let users request the code again.
  • Do not treat a 451 code as a bounce: it is a temporary error (see Hard bounce vs soft bounce).

5. Greylisting and address verification

Greylisting also affects SMTP verification: the server answers 451 even to the question about the mailbox. A temporary reply says nothing about whether the address exists, so it must not be treated as invalid.

MailSpecto treats such a result as undecided. In CSV jobs, addresses the server temporarily refused to check are retried automatically after 5, 15 and 45 minutes. The progress of these retries is shown in progress.waiting_rows, and the job finishes when all addresses are decided or the attempts run out.

  1. A 451 code is a delay, not a rejection: do not remove the address.
  2. As a sender, use a server with a queue and retries.
  3. As an administrator, maintain exception lists and a short wait time.
  4. When verifying lists, allow retries before deciding on an address.

Keep your contact list clean

Verify email addresses before you send, and explore our upcoming SPF/DKIM/DMARC diagnostics module.

Try MailSpecto

MailSpecto Engineering Team

We build tools for email address verification, deliverability monitoring and mail infrastructure security diagnostics for companies in Poland and Europe.

Related articles

Deliverability

Double opt-in and the GDPR – why confirm sign-ups and how to do it well

Whether the GDPR requires double opt-in, how to document consent and how to design a good confirmation email.

Read article →
Deliverability

Gmail, Yahoo and Microsoft requirements for bulk senders

SPF, DKIM and DMARC, one-click unsubscribe and the spam complaint threshold: what bulk senders must meet.

Read article →
Deliverability

Hard bounce vs soft bounce – the difference and what to do

5xx and 4xx codes, hard and soft bounces, and the rules for when to remove an address from your list.

Read article →