[Rspamd-Users] Ratelimit settings for different users.

P.V.Anthony anthony at mindmedia.com.sg
Mon Apr 15 18:08:40 UTC 2019


On 16/4/19 1:32 AM, P.V.Anthony wrote:

> Here are my configs that worked for me. Hope it helps others.
> 
> In file /etc/rspamd/local.d/logging.inc
> debug_modules=[ratelimit];
> 
> In file /etc/rspamd/local.d/ratelimit.conf
> rates {
>        authenticated_user_limit = {
>                                   selector = 'user.lower';
>                                   bucket = [
>                                            {
>                                            burst = 60;
>                                            rate = "1 / 1min";
>                                            }
>                                   ]
>        }
> 
> }
> 
> Having the logging set was super useful.

Now I have another question on ratelimit.

If I want to set a different ratelimit for some users, do I set it in 
settings.conf? If yes, does anyone have an example of the syntax?

I assume it should be in the actions section. I just do not know how to 
write it.

P.V.Anthony



More information about the Users mailing list