You've already forked Mailu
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:
28
core/rspamd/conf/forbidden_file_extension.map
Normal file
28
core/rspamd/conf/forbidden_file_extension.map
Normal 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
|
@@ -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";
|
||||
}
|
||||
|
Reference in New Issue
Block a user