[Rspamd-Users] mime types extension_map does not work

Andreas Wass - Glas Gasperlmair a.wass at glas-gasperlmair.at
Mon Jan 10 10:44:26 UTC 2022


Hi all,

defined extension_map in /etc/rspamd/local.d/mime_types.conf to avoid following line in E-Mail Header

X-Spamd-Result: default: False [0.80 / 15.00];
	MIME_BAD_ATTACHMENT(4.00)[jpeg:application/x-unknown-content-type];


This is an excerpt from the raw E-Mail-Code:

...
Content-Type: application/x-unknown-content-type; name="Kastner.jpeg"
Content-Disposition: attachment; filename="Kastner.jpeg"
Content-Transfer-Encoding: base64
....


This is how i defined my extension_map:

extension_map = {

   jpeg = [

     "application/octet-stream",

     "image/jpeg",

     "application/x-unknown-content-type",

   ];

}


So, why does it not work, although the Content-Type matches?

best regards, Andi


More information about the Users mailing list