My apologies, I didn’t read your last sentence. If you are running a recent version of Postfix you can use postscreen.
http://www.postfix.org/postscreen.8.html Most likely the access list http://www.postfix.org/postconf.5.html#postscreen_access_list From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Jason Sent: Wednesday, June 08, 2016 11:35 AM To: postfix-users@postfix.org Subject: Forcibly disconnect spammers I have Postfix, Dovecot and Amavis on my Ubuntu server. Recently, I get every 4 minutes a connection from IP 155.133.82.96, which appears to be Windows XP and maybe has a virus. Anyway, I found the way (after a lot of Googling) to make my Postfix not delay client access checks and I reject that IP based on a custom blacklist. However, it stays around for a while. I want to find a more radical way to forcibly disconnect the IP when the check has finished and the IP hasn't passed it. How can I do that? (I seek a Postfix solution, not iptables or similar) ________________________________ Since 1982, Starpoint Solutions has been a trusted source of human capital and solutions. We are committed to our clients, employees, environment, community and social concerns. We foster an inclusive culture based on trust, respect, honesty and solid performance. Learn more about Starpoint and our social responsibility at http://www.starpoint.com/social_responsibility ________________________________ This email message from Starpoint Solutions LLC is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. Opinions, conclusions and other information in this message that do not relate to the official business of Starpoint Solutions shall be understood as neither given nor endorsed by it.