Specify Rspamd version #3922
-
When using the Helm chart, the docker-mailserver pod name changes with each update/reinstall because the host name changes (ie,the pod name changes). This causes Rsampd to lose its history because it uses a redis key to store the history which is based on the host name. I submitted an issue to rsampd - see rspamd/rspamd#4801. They were nice enough to fix this by allowing the redis variable name to be set via a template. This change was released in version 3.8.2 - see https://github.com/rspamd/rspamd/releases/tag/3.8.2. I would like to be able to use this new version of rspamd and also be able to set history key_prefix. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
That is managed by @georglauterbach , AFAIK we use packages from official Rspamd PPA: docker-mailserver/target/scripts/build/packages.sh Lines 166 to 179 in 899b644 There might be some changes there that you have to wait for until v14. Doesn't seem like we have any version pinning in place so I'm not sure how @georglauterbach manages that. DMS doesn't update existing tagged releases when published, so they may not always be equivalent to a local build. Perhaps try a local build with
That is an example of the concerns with plans for #3520 It is not always obvious or clear when software is relying on the hostname implicitly for config/operation unfortunately. Thanks for identifying another one and getting that resolved upstream! 🙏 |
Beta Was this translation helpful? Give feedback.
-
When the changes have been published in the PPA, theoretically, the next build for key_prefix = "rs_history{{COMPRESS}}"; The file should be created in this function: docker-mailserver/target/scripts/startup/setup.d/security/rspamd.sh Lines 120 to 146 in d227d6d Because there might exist users who use a dedicated Redis instance. I.e., we need a second HERDOC: cat >"${RSPAMD_LOCAL_D}/history_redis.conf" << "EOF"
# documentation: https://rspamd.com/doc/modules/history_redis.html
key_prefix = "rs_history{{COMPRESS}}";
EOF I can provide a PR for that. |
Beta Was this translation helpful? Give feedback.
When the changes have been published in the PPA, theoretically, the next build for
:edge
should catch the latest version of Rspamd (note: it's not Rsampd but Rspamd 😄). Then, it should be an easy fix, just adding the file intarget/rspamd/local.d/history_redis.conf
with contentsThe file should be created in this function:
docker-mailserver/target/scripts/startup/setup.d/security/rspamd.sh
Lines 120 to 146 in d227d6d