From a6db6170b1473bab859ac0cb449aee4c309dc8ef Mon Sep 17 00:00:00 2001 From: "Dr. Yves Kreis" Date: Mon, 4 Sep 2023 17:21:17 +0300 Subject: [PATCH] rspamd --- lib/os/class.ISPConfigDebianOS.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/os/class.ISPConfigDebianOS.inc.php b/lib/os/class.ISPConfigDebianOS.inc.php index 309971d..433f11f 100644 --- a/lib/os/class.ISPConfigDebianOS.inc.php +++ b/lib/os/class.ISPConfigDebianOS.inc.php @@ -1551,6 +1551,13 @@ mailman-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe mailman"'; if(ISPConfig::shallInstall('mail') && !ISPConfig::wantsAmavis()) { ISPConfigLog::info('Stopping Rspamd.', true); $this->stopService('rspamd'); + + $replacements = array( + '/^\s*nrows\s*=.*$/m' => 'nrows = 2500;', + '/^\s*compress\s*=.*$/m' => 'compress = true;', + '/^\s*subject_privacy\s*=.*$/m' => 'subject_privacy = false;', + ); + $this->replaceContents('/etc/rspamd/local.d/history_redis.conf', $replacements, true); } if(ISPConfig::wantsUnbound()) { -- GitLab