Excluded via: smtpd_client_event_limit_exceptions That fixed it - thanks!
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Noel Jones Sent: Monday, August 11, 2014 12:14 PM To: [email protected] Subject: Re: smtpd_client_message_rate_limit not working On 8/10/2014 8:21 PM, John Mancuso wrote: > I'm testing out rate control using the "smtpd_client_message_rate_limit" > parameter. I'm successfully able to relay mail through this server however I > do not see any mention of anvil in the logs when I send out mails > > smtpd_client_message_rate_limit. What should be my troubleshooting steps? I > already have verbose logging on and restarted the daemon quite a few times. > > !1153 # postconf -d | grep mail_version mail_version = 2.6.6 > > !1150 # postconf -n > alias_database = hash:/etc/aliases > alias_maps = hash:/etc/aliases > anvil_rate_time_unit = 30 > command_directory = /usr/sbin > config_directory = /etc/postfix > daemon_directory = /usr/libexec/postfix data_directory = > /var/lib/postfix debug_peer_level = 3 html_directory = no > inet_interfaces = all inet_protocols = all mail_owner = postfix > mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man > mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain > mydomain = xxxx.net mynetworks = 127.0.0.0/8, 10.0.0.0/8, 172.0.0.0/8, > 192.168.0.0/16, 64.47.108.0/24, 70.35.42.178.0/24, 70.35.42.181.0/24, > 108.12.148.0/24, 208.36.133.0/24, 74.217.66.0/24, 24.103.35.0/24, > 66.128.14.0/24 newaliases_path = /usr/bin/newaliases.postfix > queue_directory = /var/spool/postfix readme_directory = > /usr/share/doc/postfix-2.6.6/README_FILES > sample_directory = /usr/share/doc/postfix-2.6.6/samples > sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop > smtpd_client_message_rate_limit = 3 > unknown_local_recipient_reject_code = 550 > Turn off debug logging!!! It's not necessary for this and will fill the log with thousands of lines of unrelated information, hiding the important stuff. How are you testing? Note that rate limits only work with mail received via SMTP, and by default IPs listed in $mynetworks are excluded. -- Noel Jones
