rspamd persistent config changes

Discussion in 'ISPConfig 3 Priority Support' started by tilman, Aug 1, 2024.

  1. tilman

    tilman Member HowtoForge Supporter

    Hi,
    I modified the config file
    /etc/rspamd/scores.d/mime_types_group.conf
    and would like to now, if these changes are persitent across reboots/updates.

    Thks. in advance for your time.

    BR
    Tilman
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    They are persistent across reboots.
    Reading the file you modified, it says at the beginning
    Code:
    # Please don't modify this file as your changes might be overwritten with
    # the next update.
    
    So changes may not be persistent across updates of rspamd.
    However, text in the file continues with:
    Code:
    # You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
    # parameters defined on the top level
    
     
    till likes this.
  3. pyte

    pyte Well-Known Member HowtoForge Supporter

    If you want to edit just the scoring for these symbols, simply set them in the rspamd webinterface in the tab "Symbols". This way the new settings get written to the dynamic map which persists reboots and rspamd upgrades. The file itself is located at "/var/lib/rspamd/rspamd_dynamic", howerver do not edit this file directly.

    Another option for mime_types is user settings and a custom symbol with your custom score.
     

Share This Page