[Rspamd-Users] mime types extension_map does not work

Andreas Wass - Glas Gasperlmair a.wass at glas-gasperlmair.at
Fri Jan 14 11:29:17 UTC 2022


and again, i got following line in Email_header, although i defined this 
Content-Type in /etc/rspamd/local.d/mime_types.conf

E-Mail Header:

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

Content-Type in E-Mail:

--_012_VI1PR08MB3806753A01B6335FA9BFEE3285549VI1PR08MB3806eurp_
Content-Type: application/x-unknown-content-type;
     name="=?iso-8859-1?Q?Schiestl_Gerhard,_Innent=FCren.dwg?="
Content-Description: =?iso-8859-1?Q?Schiestl_Gerhard,_Innent=FCren.dwg?=
Content-Disposition: attachment;
  filename="=?iso-8859-1?Q?Schiestl_Gerhard,_Innent=FCren.dwg?="; 
size=60040;
     creation-date="Fri, 14 Jan 2022 07:27:12 GMT";
     modification-date="Fri, 14 Jan 2022 11:15:03 GMT"
Content-ID: <7CFC5CAA7C412D44BF8872AE1E286DED at eurprd08.prod.outlook.com>
Content-Transfer-Encoding: base64

QUMxMDMyAAAA.... (and so on)

Definition in /etc/rspamd/local.d/mime_types.conf

extension_map = {
   dwg = [
     "application/octet-stream",
     "application/dwg",
     "application/x-unknown-content-type",
     "image/vnd.dwg"
   ];
}

Shure, the name in raw e-mails is 
name="=?iso-8859-1?Q?Schiestl_Gerhard,_Innent=FCren.dwg?=" but how can i 
define it right??

best regards, Andi

Am 10.01.2022 um 11:44 schrieb Andreas Wass - Glas Gasperlmair:
> 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