I have set up my rspamd and redis server but the ratelimit doesn't work.
The Rspamd speaks to Postfix and my log file doesnt show anything unusual.
Even GTUBE works --> So, the spam protection works because rspamd won't accept e-mails with the following content: XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X
The ratelimit file is stored in /etc/rspamd/local.d/ratelimit.conf and its actually the configuration, which rspamd provides --> https://rspamd.com/doc/modules/ratelimit.html
# local.d/ratelimit.conf
servers="127.0.0.1";
rates {
# Selector based ratelimit
some_limit = {
selector = 'user.lower';
# You can define more than one bucket, however, you need to use array syntax only
bucket = [
{
burst = 1;
rate = "1 / 1min";
}
]
}
}
The rspamd-log shows the following lines:
2022-01-02 11:04:26 #64526(main) ; lua; ratelimit.lua:767: enabled ratelimit:
some_limit [1 msgs burst, 0.016666666666667 msgs/sec rate]
2022-01-02 11:04:26 #64526(main) ; cfg; rspamd_init_lua_filters: init lua
module ratelimit
The command
"rspamadm configtest" says --> syntax OK
I've added the following lines into the main.cf:
milter_protocol = 6
milter_mail_macros = i {mail_addr} {client_addr} {client_name}
{auth_authen}
milter_default_action = accept
smtpd_milters = inet:127.0.0.1:11332
non_smtpd_milters = inet:127.0.0.1:11332
However, if i open the redis-cli and search for keys, no keys are stored regarding the redis chache.
I've set up the redis configuration as well and i used the following tutorial:
https://linuxize.com/post/install-and-integrate-rspamd/
Thank you for your help in advance
Asked by cd4user
(33 rep)
Jan 2, 2022, 11:27 AM
Last activity: Jan 2, 2022, 02:08 PM
Last activity: Jan 2, 2022, 02:08 PM