From f3a1d81347e8931f792cda017b4e115c8b73f432 Mon Sep 17 00:00:00 2001 From: andryyy Date: Tue, 23 May 2017 21:50:05 +0200 Subject: [PATCH] Rate extensions --- data/conf/rspamd/local.d/mime_types.conf | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 data/conf/rspamd/local.d/mime_types.conf diff --git a/data/conf/rspamd/local.d/mime_types.conf b/data/conf/rspamd/local.d/mime_types.conf new file mode 100644 index 00000000..6a5ed408 --- /dev/null +++ b/data/conf/rspamd/local.d/mime_types.conf @@ -0,0 +1,34 @@ +# Extensions that are treated as 'bad' +# Number is score multiply factor +bad_extensions = { + scr = 4, + lnk = 4, + exe = 1, + jar = 2, + com = 4, + bat = 4, + ace = 4, + arj = 4, + cab = 3, +}; + +# Extensions that are particularly penalized for archives +bad_archive_extensions = { + pptx = 0.5, + docx = 0.5, + xlsx = 0.5, + pdf = 1.0, + jar = 3, + js = 0.5, + vbs = 7, +}; + +# Used to detect another archive in archive +archive_extensions = { + zip = 1, + arj = 1, + rar = 1, + ace = 1, + 7z = 1, + cab = 1, +};