[Rspamd-Users] ratelimit-module behaves differently in rspamd 3.5

Vsevolod Stakhov vsevolod at rspamd.com
Fri Mar 31 10:40:28 UTC 2023

On 31/03/2023 11:17, Simbürger, Andreas wrote:
> Hi,
> rspamd 3.5 introduced a new behavior when checking ratelimit prefixes.
> Since 3.5 it will consider the messages that will be sent out in the current
> task as 'pending' messages. This will trigger the ratelimit earlier.
> In the released 3.5 version exists a small bug in the check lua code that is
> fixed in master: https://github.com/rspamd/rspamd/pull/4448
> Here rspamd will factor in the number of recipients of the current task twice,
> resulting in an even higher burst value for incoming messages.
> As the leak rate has a lower bound between tries (the burst value is always clamped
> to 0, if it becomes negative between tasks), you can end up in a situation where
> you cannot send any new messages, no matter what rate you specified.
> The fix is pretty easy, if you want to repair it in your deployed installation.
> Cheers,
> Andreas

It is probably worth to include this patch in the stable packages to 
avoid confusion. What do you think?

More information about the Users mailing list