I am having this weird Postfix issue with Spamhaus excess volume error. First off I checked what the error suggested to check here
I followed the instructions and changed my configuration as follows:
smtpd_recipient_restrictions =
...
reject_rbl_client zen.spamhaus.org=127.0.0.[2..11]
reject_rhsbl_sender dbl.spamhaus.org=127.0.1.[2..99]
reject_rhsbl_helo dbl.spamhaus.org=127.0.1.[2..99]
reject_rhsbl_reverse_client dbl.spamhaus.org=127.0.1.[2..99]
warn_if_reject reject_rbl_client zen.spamhaus.org=127.255.255.[1..255]
It did not help, the error was still bugging me.
Then I followed Spamhaus's next advise like this, removing my above first attempt with smtpd_recipient_restrictions
postscreen_dnsbl_sites = zen.spamhaus.org=127.0.0.[2..11]
Alas, it did not help either, the error was still popping up. Then I totally removed and erased everything about spamhaus in my Postfix main.cf. No postcreen_dnsbl_sites, no smtpd_recipient_restrictions at all, etc. I also specifically checked every single setting of Postfix for the word spamhaus making sure that nothing even mentions spamhaus. Then restarted Postfix. But that did not help either.
Then I cleaned up postscreen cache thinking that it might help, even though restarting and reloading Postfix should do the trick of clearing this cache, but for the purpose of checking I did it too.
postmap -clean
But.. still no dice. The error of excess volume is still there. I have it running live on my command line tail -f /var/log/syslog and it pops up there time to time, without going anywhere.
Then I cleared my DNS cache like so resolvectl flush-caches - no use.
I also checked Postfix queue like this mailq and it says there is nothing, queue is empty.
Meanwhile, the error still there, no matter what. I am already going totally nuts at it. What am I missing? I am by now fine to remove that spamhaus completely, but it's stuck and looks unremovable and won't let this server receive mail.
I would be really grateful for any suggestions, any help at all. Many thanks in advance!
The error itself looks like this:
NOQUEUE: reject: RCPT from mail-qk1-f180.google.com[209.85.222.180]: 554 5.7.1 Service unavailable; Client host [209.85.222.180] blocked; Error: excess volume; https://check.spamhaus.org/returnc/vol/209.126.15.52/; from=<mymail@gmail.com> to=<post@somemail.com> proto=ESMTP helo=<mail-qk1-f180.google.com>