What the message looks like
421-4.7.0 [203.0.113.10] Our system has detected an unusual rate of unsolicited mail originating from your IP address.Common causes
- A sudden spike in volume, e.g. a newsletter from a new IP without reputation.
- Missing or mismatched PTR (reverse DNS) record; Gmail is especially strict for IPv6.
- Spam complaints, or a compromised mailbox sending spam.
- Missing SPF/DKIM authentication makes the rating worse.
Check
- Check the queue size
mailq | tail -n 1 - Find the senders with the most mails in the queue
mailq | awk '/^[0-9A-F]/ {print $7}' | sort | uniq -c | sort -rn | head - Check the PTR of the outgoing IP
- Count 421 deferrals in the log
Fix
- Let Postfix handle retries – do not run
postqueue -fover and over, it makes throttling worse. - Set a PTR that matches the HELO name and make that name resolve back to the IP (forward-confirmed rDNS).
- Lock compromised accounts, reset passwords and remove spam with
postsuper -d <QueueID>. - Slow down delivery to large providers, e.g. with a dedicated transport and
smtp_destination_rate_delayor a lowersmtp_destination_concurrency_limit. - Warm up new IPs gradually and watch reputation in Google Postmaster Tools.
Typical scenario
A shop moves to a new server with a fresh IP and on day one sends invoice mails plus a newsletter to several thousand recipients. Mail to Gmail addresses piles up, the log shows '421-4.7.0 ... unusual rate of unsolicited mail' and mailq lists many deferred entries. First check how long this IP has been sending and how many messages per minute go to the same destination domain; on new IPs the sending speed is usually the trigger.
FAQ
Are messages lost on a 421?
No. 4xx is a temporary error. Postfix keeps the mails in the queue and retries until maximal_queue_lifetime (5 days by default).
Why does it only happen over IPv6?
Gmail requires a valid PTR and authentication for IPv6 senders. Without a PTR, either add one or make Postfix prefer IPv4 with smtp_address_preference = ipv4.
Are the deferred messages lost?
No. 4xx codes are temporary and Postfix retries at growing intervals. Only after maximal_queue_lifetime (five days by default) does it generate a bounce to the sender. So fix the cause before the queue expires.
Why does it only hit large providers like Gmail?
Large receivers apply their own volume and reputation limits per sending IP and domain. Small servers mostly check blocklists and basics. The same volume can pass at one provider and be throttled at another.
How do I prevent this permanently?
Introduce new IPs gradually and raise volume over several days. In addition, throttle per destination domain in Postfix, for example with default_destination_rate_delay and default_destination_concurrency_limit, and keep SPF, DKIM and PTR clean.