On Wed, Aug 11, 2021 at 09:48:24AM +1000, raf wrote:

> If you want postfix to reject a connection immediately
> after the first SMTP protocol error it encounters,
> without the need to construct in advance a list of all
> possible errors, just set smtpd_hard_error_limit = 0.
> 
>   http://www.postfix.org/postconf.5.html#smtpd_hard_error_limit
>   (Immediately underneath smtpd_forbidden_commands)

Careful there, the documentation is perhaps slightly misleading, it says
"disconnects when the limit is exceeded", but it is in fact when the
limit is reached.  The Postfix smtpd(8) server requires the limit to be
at least 1.

-- 
    Viktor.

Reply via email to