Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-13 23:57 UTC

Message

Re: [milter-greylist] Ratelimit per authenticated user

2016-09-08 by Emmanuel Dreyfus

On Thu, Sep 08, 2016 at 12:12:38AM -0700, maren.zubizarreta@... [milter-greylist] wrote:
>   We want to implement an ACL with a ratelimit per authenticated user, this is to prevent SPAMMing when one of our  user's credentials are stolen, and a SPAMMER using different IPs and the same user credentials tries to send SPAm throuh our system.
>  Is it possible to do it using milter-greylist? I haven't found how.

I use that, assuming users post from 192.0.2.0/24

ratelimit "users" rcpt 100 / 10m key "%M{auth_authen}"
racl blacklist addr 192.0.2.0/24 ratelimit "users" \
        msg "Too many recipients (%M{auth_authen}), please retry later"

In sendmail.cf, you need O Milter.macros.envfrom to contain {auth_authen}

-- 
Emmanuel Dreyfus
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.