Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

new rate limiting feature

2010-04-12 by manu@netbsd.org

Hello

After some clients in our internal network started using our mail relays
to send spam, I decided to create a rate limiting feature in
milter-greylist. For now it is experimental, and available from CVS.
Feedbacks are welcome

Here is an excerpt from the man page:

RATE LIMIT
       The ratelimit keyword specifies a ratelimit configuration to be
       used in access lists. It must be followed by the rate limit
       configuration name, the maximum of messages, the sampling period.
       Example:

                ratelimit "internalclients" 100 / 1m

                racl blacklist addr 192.0.2.0/24 \
          ratelimit "internalclients" \
                   msg "you speak too much"

       The  ratelimit  keyword  can  also  have an option key statement,
       which determine the set of key for message accounting. The
       default is %i  for per IP address accounting (see the FORMAT
       STRINGS sections for the pos- sible syntax of this field). Here
       is an example that configures a  rate limit of 100 messages per
       hour for each individual recipient-IP set.

              ratelimit "internalclients" 100 / 1h key "%r%i"

              racl blacklist addr 192.0.2.0/24 \
          ratelimit "internalclients" \
                   msg "you speak too much"

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@...

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.