<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 10 Aug 2019 at 10:41, <a href="mailto:korsar182@gmail.com">korsar182@gmail.com</a> <<a href="mailto:korsar182@gmail.com">korsar182@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Ralph Seichter <<a href="mailto:abbot@monksofcool.net" target="_blank">abbot@monksofcool.net</a>> писал(а) в своём письме Sat, 10 Aug <br>
2019 00:05:12 +0300:<br>
<br>
> * korsar:<br>
><br>
>> 1) ACE has no support at all, need to add it<br>
><br>
> Not having seen ACE archives in the wild for more than 10 years, I don't<br>
> think so. Besides, to my knowledge ACE is a proprietary format with a<br>
> Windows focus and a license that does not permit including it in free<br>
> software.<br>
><br>
>> 2) gzip - gzip -d command changes original file names of extracted<br>
>> files, [...] 7z, please.<br>
><br>
> You can adjust filetype-to-decoder mappings in your amavisd.conf if you<br>
> don't like the defaults.<br>
><br>
> -Ralph<br>
<br>
I mean 7zip supports 35 archive type, any of them may be used to hide <br>
ransomware in the .rar or .zip file and opened by end user. So the mail <br>
system is only half protected.<br>
<br>
How I can make filetype-to-decoder mappings in amavisd.conf?<br>
Set "$gzip = '7z';"?<br></blockquote><div><br></div><div style="font-size:small" class="gmail_default">Example:</div><div style="font-size:small" class="gmail_default">@decoders = (</div><div style="font-size:small" class="gmail_default">[snip]</div><div style="font-size:small" class="gmail_default"> ['7z', \&do_7zip, ['7zr','7za','7z'] ],<br> ['rar', \&do_unrar, ['unrar-free','7zr','7za','7z'] ],<br></div><div style="font-size:small" class="gmail_default">[snip]<br></div><div style="font-size:small" class="gmail_default">);</div><div style="font-size:small" class="gmail_default"></div></div></div>