I have done some rate control for postfix:
Code:
# initial_destination_concurrency = 1
default_destination_concurrency_limit = 1
smtp_destination_concurrency_limit = 1
in_flow_delay = 4s
default_process_limit = 80
maximal_queue_lifetime = 10d
# default_destination_recipient_limit = 20
Thus I think the rate to a destination such as example.com would be:
60/$in_flow_delay = 15 letters/min
But in the maillog, I still found many "too many letters during this connection" messages. I lookup the postfix documentation, and I think these parameters have influences:
smtp_connection_reuse_time_limit (300s)
smtp_connection_cache_reuse_limit (10s)
smtp_connection_cache_time_limit (2s)
default_destination_recipient_limit (50)
I'm not very clear about the parameters, the smtp_connection_reuse_time_limit availabe for postfix-2.3, my verstion is postfix-2.2.5, but when I add
smtp_connection_cache_reuse_limit = 5s
These 2 parameters was not highlight in editor and when I reload postfix, I found in the maillog that they are "bad" parameters. But the documentation says it's available after 2.2.
What is wrong?
And I want to know if $initial_destination_concurrency > $default_destination_concurrency_limit, what will happen?
Thanks.