1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-08-10 22:31:47 +02:00

Block executable file extensions (closes #2511)

This commit is contained in:
Florent Daigniere
2022-11-24 12:09:15 +01:00
parent 709023ab5a
commit 612db96209
2 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
scr
lnk
exe
msi
msp
mst
msu
jar
com
bat
cmd
ps1
cab
vbs
vbe
vbscript
hta
shs
wsc
wsf
wsh
iso
img
bin
cpl
jse
ace
arj

View File

@@ -9,3 +9,16 @@ IS_LOCAL_DOMAIN_E {
selector = "from('smtp'):domain";
map = "http://{{ ADMIN_ADDRESS }}/internal/rspamd/local_domains";
}
FORBIDDEN_FILE_EXTENSION {
type = "filename";
filter = "extension";
map = [
"/etc/rspamd/override.d/forbidden_file_extension.map",
];
prefilter = true;
action = "reject";
symbol = "FORBIDDEN_FILE_EXTENSION";
description = "List of forbidden file extensions";
message = "Forbidden attachment extension";
}