1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-06-27 00:41:00 +02:00

Forbidden_file_extension.map could not be overridden.

This commit is contained in:
Dimitri Huisman
2023-10-10 08:19:36 +00:00
parent 118a91256c
commit 16e9d152dd
2 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,8 @@ env = system.set_env()
config_files = [] config_files = []
for rspamd_file in glob.glob("/conf/*"): for rspamd_file in glob.glob("/conf/*"):
conf.jinja(rspamd_file, env, os.path.join("/etc/rspamd/local.d", os.path.basename(rspamd_file))) conf.jinja(rspamd_file, env, os.path.join("/etc/rspamd/local.d", os.path.basename(rspamd_file)))
config_files.append(os.path.basename(rspamd_file)) if rspamd_file != '/conf/forbidden_file_extension.map':
config_files.append(os.path.basename(rspamd_file))
for override_file in glob.glob("/overrides/*"): for override_file in glob.glob("/overrides/*"):
if os.path.basename(override_file) not in config_files: if os.path.basename(override_file) not in config_files:

View File

@ -0,0 +1,2 @@
forbidden_file_extension.map could not be overridden. This file can be overriden to tweak with file extensions are allowed.
The instructions on https://mailu.io/master/antispam.html#can-i-change-the-list-of-authorized-file-attachments work again.