On 16/11/24 16:52, Phil via Postfix-users wrote:
On 16/11/24 16:38, Hua Y via Postfix-users wrote:
On 2024-11-16 13:05, Phil via Postfix-users wrote:
On 16/11/24 11:31, Phil via Postfix-users wrote:
On 16/11/24 11:25, jeff--- via Postfix-users wrote:
How can I setup recipient rate limit in postfix? or via a milter?
This setting should be against local users in our system.
Thank you.
you can put
default_extra_recipient_limit = 50
in main.cf & postfix reload
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org
should have been
default_destination_rate_delay = 3
default_extra_recipient_limit = 50
works for small setups . . .
Can you please explain the two options a bit more?
Yes - default_destination_rate_delay sets how many seconds between
sending messages, the server could have a 1000 messages in the queue
and it will send 1 message every 3 seconds. The
default_extra_recipient_limit sets how many recipients the message can
be sent to, ie 50 people max. HTH
Also from https://www.postfix.org/postconf.5.html
*default_destination_rate_delay (default: 0s)*
The default amount of delay that is inserted between individual
message deliveries to the same destination and over the same message
delivery transport. Specify a non-zero value to rate-limit those
message deliveries to at most one per
$default_destination_rate_delay
<https://www.postfix.org/postconf.5.html#default_destination_rate_delay>.
The resulting behavior depends on the value of the corresponding
per-destination recipient limit.
*
With a corresponding per-destination recipient limit > 1, the
rate delay specifies the time between deliveries to the /same
domain/. Different domains are delivered in parallel, subject to
the process limits specified in master.cf
<https://www.postfix.org/master.5.html>.
*
With a corresponding per-destination recipient limit equal to 1,
the rate delay specifies the time between deliveries to the
/same recipient/. Different recipients are delivered in
parallel, subject to the process limits specified in master.cf
<https://www.postfix.org/master.5.html>.
To enable the delay, specify a non-zero time value (an integral
value plus an optional one-letter suffix that specifies the time unit).
Time units: s (seconds), m (minutes), h (hours), d (days), w
(weeks). The default time unit is s (seconds).
NOTE: the delay is enforced by the queue manager. The delay timer
state does not survive "*postfix reload*" or "*postfix stop*".
Use /transport/_destination_rate_delay
<https://www.postfix.org/postconf.5.html#transport_destination_rate_delay>
to specify a transport-specific override, where /transport/ is the
master.cf <https://www.postfix.org/master.5.html> name of the
message delivery transport.
NOTE: with a non-zero _destination_rate_delay, specify a
/transport/_destination_concurrency_failed_cohort_limit
<https://www.postfix.org/postconf.5.html#transport_destination_concurrency_failed_cohort_limit>
of 10 or more to prevent Postfix from deferring all mail for the
same destination after only one connection or handshake error.
This feature is available in Postfix 2.5 and later.
*default_extra_recipient_limit (default: 1000)*
The default value for the extra per-transport limit imposed on the
number of in-memory recipients. This extra recipient space is
reserved for the cases when the Postfix queue manager's scheduler
preempts one message with another and suddenly needs some extra
recipient slots for the chosen message in order to avoid performance
degradation.
Use /transport/_extra_recipient_limit
<https://www.postfix.org/postconf.5.html#transport_extra_recipient_limit>
to specify a transport-specific override, where /transport/ is the
master.cf <https://www.postfix.org/master.5.html> name of the
message delivery transport.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org