On 17/11/24 03:23, Matus UHLAR - fantomas via Postfix-users wrote:
On Sat, Nov 16, 2024 at 05:04:32PM +1100, Phil via Postfix-users wrote:
Is default_extra_recipient_limit not limiting the number of
recipients in a
given message ?
On 16/11/24 17:12, Viktor Dukhovni via Postfix-users wrote:
No. And, what did you have in mind anyway?
- Limiting the recipient count of incoming SMTP message envelopes?
- Limiting the recipient count of outbound SMTP deliveries
(splitting the envelope for larger messages by doing multiple
deliveries each with at most that many recipients)?
On 16.11.24 17:17, Phil via Postfix-users wrote:
My concern is a customers trying to send email to 100s of recipients
and getting blocked for bulk mailing so
- Limiting the recipient count of outbound SMTP deliveries
This is what postfwd can do, which Wietse already advised.
you can configure postfwd as postfix policy server and configure
multiple rules for different authenticated clients, IP addresses etc.
postfix options smtpd_client_auth_rate_limit
smtpd_client_connection_rate_limit
smtpd_client_message_rate_limit
smtpd_client_new_tls_session_rate_limit
smtpd_client_recipient_rate_limit
and
smtpd_client_event_limit_exceptions
can do similar, bot only for IP addresses and single time unit.
Postfwd supports combination of usernames, IP addresses and multiple
limits.
So you can limit number of messages, limit of recipients
Note that directives like default_extra_recipient_limit and
default_destination_rate_delay apply mail that is already in your
queue, not incoming mail.
I cant even remember where i got this from, those settings have been in
my main cf for a decade or more now, ill look into postfwd, thanks
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org