Hello, I have few questions about how to rate limit works in rspamd. Maybe some has working config to share? 1. How to apply global rate limit for each domain? 2. How to apply individual rate limit per specific domain? 3. How to apply rate limit per mailbox? 4. Is it possible to apply rate limit per user template maybe?
This has been discussed in the forum before, a quick search showed me https://forum.howtoforge.com/threads/ratelimiting-with-ispconfig-3-and-rspamd.88018/ This is possible with rspamd, but I don't have a simple config for this to share. Nothing is impossible. But there's currently no integration with ISPConfig.
Yes, I found that topic and started from it. Now I have this config: Code: rates { user = { selector = "user.lower"; bucket = [{ burst = 1; rate = "500 / 60min"; }] } to = { bucket = { burst = 100; rate = 0.01666666666666666666; # leak 1 message per minute } } } What I don't understand is "to" part. rspamd documentation is insanely sparse on info. I know that "to" part control delivery rate. But if I have 500 / 60min. how this will apply in real world?
I'm not that familiar with Rspam config, so I do not have a config for this as well. If you have a test server, then maybe it's worth writing a small script to issue larger numbers of emails to see how limits get applied.