[Rspamd-Users] Question Mime Types Module

Grooz, Marc (regio iT) Marc.Grooz at regioit.de
Fri Dec 7 08:20:33 UTC 2018



-----Ursprüngliche Nachricht-----
Von: Users <users-bounces at lists.rspamd.com> Im Auftrag von Carsten Rosenberg
Gesendet: Mittwoch, 5. Dezember 2018 20:22
An: users at lists.rspamd.com
Betreff: Re: [Rspamd-Users] Question Mime Types Module

Hey

On 23.11.18 14:11, Grooz, Marc (regio iT) wrote:
> Hi List,
> 
> I had some questins about the Mime Types Module.
> 
> For example I want to block allways MIME_DOUBLE_BAD_EXTENSION. So I set the weight to 50. I think it would be nicer if I could say allways reject instead of put the weight that high, like the virus module does.
> 

You could use force actions to do this.

> I also want to block .exe Files with also weight of 50 and then the with a pdf.exe the score explodes (1200).
> I block .exe files with bad_extensions -> exe = 25.
> 
> 
> When I send a calc.tmp with Mimetype application/x-dosexec the only thing rspamd detects is "MIME_UNKNOWN (0.1) [application/x-dosexec]".
> But I set:
> 
> extension_map = {
> ...
>     exe = 'application/x-dosexec',
> };
> 
> So I assume that this should trigger my .exe block with weight of 25?
> 
> If I define "application/x-dosexec" in /var/lib/rspamd/mime_types.inc.local, rspamd ignores the https://maps.rspamd.com/rspamd/mime_types.inc.zst. :-(
> 
> I'm confused oft hat behavior.
> 

Never tried that :/

regards

Carsten Rosenberg

---------------------------------------------------

Thanks Carsten that is what I need.

Regards Marc

-- 
Users mailing list
Users at lists.rspamd.com
https://lists.rspamd.com/mailman/listinfo/users


More information about the Users mailing list