[Rspamd-Users] Need some help with FILENAME_BLACKLISTED

Andreas Wass - Glas Gasperlmair a.wass at glas-gasperlmair.at
Mon Sep 5 08:20:42 UTC 2022


Hello all,

wanna reject emails wich include filenames with double extensions like 
"Testfile.xlsx.txt" an so on.

In my multimap.conf i added following definition

FILENAME_BLACKLISTED {
   type = "filename";
   filter = "extension";
   map = "${LOCAL_CONFDIR}/local.d/gasp_filename_blacklist.map";
   action = "reject";
   message = "A restricted file type was found";
}

in my gasp_filename_blacklist.map i added this string:

xlsx.txt

But this does not work.
It seems to work with simple extensions like "Filename.test"

Can somebody help me?

Best regards, Andi


More information about the Users mailing list