Yahoo Groups archive

Milter-greylist

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

Message

Re: [milter-greylist] Re: Limit message size and number of recipients at the same time

2011-11-22 by Emmanuel Dreyfus

On Tue, Nov 22, 2011 at 09:31:31AM -0000, MARENTXU wrote:
>   Is there a way to set the limit and be applied only to users
> who send big messges many times , but no users sending many small 
> messages, or few very big messages ?

You can ratelimit by recipients with a condition on message size,
and ratelimit by size with a condition on recipients:

 dacl ratelimit "RCPT-LIMIT-SMALL" msgsize < 2M msg "RCPT-LIMIT-SMALL"
 dacl ratelimit "RCPT-LIMIT-BIG" msgsize > 2M msg "RCPT-LIMIT-BIG"

 dacl ratelimit "DATA-LIMIT-SMALL" rcptcount < 10 msg "DATA-LIMIT-SMALL"
 dacl ratelimit "DATA-LIMIT-BIG" rcptcount > 10 msg "DATA-LIMIT-BIG"

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