Block executable file extensions (closes #2511)

main
Florent Daigniere 2 years ago
parent 709023ab5a
commit 612db96209

@ -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

@ -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";
}

Loading…
Cancel
Save