2016-08-02 17:50:23 UTC
I am testing anvil by setting these variables:
1. smtpd_client_connection_rate_limit = 100 connections
2. mtpd_client_recipient_rate_limit = 100 recipients addresses
3. smtpd_client_message_rate_limit = 100 delivery requests
4. smtpd_client_new_tls_session_rate_limit = 100 connections
5. smtpd_client_event_limit_exceptions = 127.0.0.1
anvil is set to:
anvil_rate_time_unit = 60s
anvil_status_update_time = 600s
#5 is so I can test and not be exempt
#1 and #2 I was able to test and worked perfectly.
When I got around to testing #3 I noticed the current values would never trigger that setting so I changed it to this.
smtpd_client_connection_rate_limit = 150
smtpd_client_message_rate_limit = 100
This allowed me to see in the Postfix log files that the messages are in fact getting blocked by the "message_rate_limit" and not something else.
My question is what would be a good explanation for having BOTH smtpd_client_message_rate_limit and smtpd_client_connection_rate_limit
Set at the same time?
As I see it, having either of them set provides the same result of blocking mail.
When would a person choose one or the other ?
The man page clearly states what each option does, but it's not clear to me in what scenario you would pick to set one of them or both of them ?
Thank you for your time.
Operating Systems Programmer / Analyst
University of Connecticut, UITS, SSG-Linux/ M&C