On Fri, Jul 07, 2023 at 11:47:35AM -0400, postfix--- via Postfix-users wrote:

> > Currently Postfix do not show in log the Recipient of emails that
> > exceed Meesage_size_limit becasue MAIL FROM comes before RCPTO TO...
> > but is there any nice way of forcing Postfix to reject that email
> > after the RCPTO TO?
> 
>    http://www.postfix.org/postconf.5.html#smtpd_delay_reject

Rejection of "MAIL FROM:" when the advertised estimated message size
exceeds limits is not subject to "smtpd_delay_reject", which covers
access(5) checks, but not the built-in enforcement of message size
limits.

If the client uses PIPELINING, the pipeline "RCPT TO" after the rejected
"MAIL FROM" will presumably be logged.  If the recipient list is long
enough, some recipients might not be logged, because the client
eventually reads the "MAIL FROM" reply before sending more "RCPT TO"
commands.

-- 
    Viktor.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to