Greylisting is supposed to be invisible: an unknown sender is told to retry, it retries a few minutes later, and the mail arrives. So when one particular sender keeps hitting a 451 4.2.0 greylisting defer on your cPanel box and their messages never land, the question is not “is greylisting on” — it is “why does this sender never satisfy the retry.” Almost always the answer is that the sender comes from a rotating pool of IP addresses, so every retry looks like a brand-new triplet and resets the clock.
What’s happening
cPanel’s greylisting works on a triplet: the sending IP, the envelope sender, and the envelope recipient. The first time Exim sees a new triplet it returns a temporary 451 defer and records the triplet with a timestamp. A legitimate server waits out the configured retry minimum (default a few minutes) and tries again; on the second attempt within the allowed window the triplet is now “known” and the message is accepted and added to the auto-allowlist.
That model breaks when the sending IP changes between attempts. Large senders — Microsoft 365, Google Workspace, marketing platforms, ticketing systems — deliver from a wide pool of outbound IPs. The first attempt comes from 40.92.x.x, the retry comes from 40.107.y.y, and to greylisting that is a different triplet that starts the timer over. The sender is behaving correctly; it just never lands on the same IP twice inside the window, so it is deferred indefinitely until it gives up and bounces. The same symptom appears when a sender retries too fast (before the retry minimum elapses) or too slow (after the record expires), but the rotating-pool case is by far the most common single-sender complaint.
How to verify
Confirm greylisting is active and then prove the defer is hitting this specific sender.
# Is greylisting enabled on this server at all?
whmapi1 get_greylisting_status
# Tunables: retry min/max and record expiry
cat /var/cpanel/greylist.sqlite >/dev/null 2>&1 && echo "db present"
whmapi1 load_greylisting_config
Now watch Exim refuse the sender. The defer is logged in the main log, not the reject log, because a 451 is temporary:
# Tail while the sender (or a test from their platform) tries
tail -f /var/log/exim_mainlog | grep -i greylist
# Pull historical defers for the sender's domain
grep -i greylist /var/log/exim_mainlog | grep 'sender-domain.com' | tail -40
A defer line looks like H=mail-... [40.92.1.2] ... 451 ... greylisted. List the IPs that appeared for that sender — if they differ on every attempt, you have the rotating-pool case:
# Distinct sending IPs greylisted for this sender today
grep -i greylist /var/log/exim_mainlog | grep 'sender-domain.com' \
| grep -oE '\[[0-9.]+\]' | sort -u
Check whether the sender ever made it onto the auto-allowlist (the “common mail providers” list cPanel ships, plus learned hosts):
# Trusted hosts file used by cPanel greylisting
cat /var/cpanel/greylist/trusted_hosts.json 2>/dev/null | head
The fix
-
Add the sender to Trusted Hosts — the targeted fix. In WHM » Email » Greylisting » Trusted Hosts, add the sender’s sending networks (Microsoft and Google publish their SPF include ranges; use those CIDRs). Trusted hosts skip greylisting entirely, so a rotating pool no longer matters. This is the right move for known business correspondents and SaaS platforms.
-
Enable “Automatically allowlist common mail providers” — WHM » Greylisting has a toggle that pre-trusts the large providers cPanel tracks. Turning it on resolves most Microsoft 365 / Google Workspace defers without you maintaining CIDR lists by hand. Confirm it is enabled before adding entries manually.
-
Widen the retry window — if many small senders are deferring forever, the retry maximum (how long a triplet stays valid for a successful retry) may be too short, or the minimum too long for impatient senders. In WHM » Greylisting, raise the maximum so slow retriers still match their earlier triplet, and keep the minimum modest (a few minutes) so legitimate fast retriers are not blocked.
-
Exclude the receiving domain if greylisting is not worth it here — for a low-volume domain where every deferred minute is a support call, you can disable greylisting for that domain only in the Greylisting interface’s per-domain settings, accepting slightly more spam in exchange for no defers.
-
Confirm the sender is actually retrying — if the IPs in the log are identical but the message still never arrives, the sender may be retrying inside the retry minimum (and being deferred again) or only once before bouncing. You cannot fix the sender’s retry schedule; trust their network instead (step 1).
-
Do not confuse greylisting with an RBL or ACL defer — a
451from greylisting saysgreylisted; a451/450from an RBL or a custom ACL names the list or rule. Check WHM » Exim Configuration Manager » RBLs and any custom ACLs if the log text is not a greylisting message — the fix there is different.
After allowlisting the sender, have them resend and watch tail -f /var/log/exim_mainlog for the <= accept line instead of a greylist defer. Greylisting is a reasonable default, but a single trusted correspondent should never be held hostage by a rotating IP pool. Stack Harbor tunes mail-gate policy under managed cPanel operations — start a conversation.