A
A
Andrey Mikhalev2018-04-02 09:48:04
Mail server
Andrey Mikhalev, 2018-04-02 09:48:04

Amavisd-new how to block attachments by extension and not by file type?

Использую фильтрацию почты по типу почтовых вложений.
Настроил amavisd, указал типы файлов которые нужно блокировать (exe,scr и т.д.) в том числе и в архивах.
Все работало, вирусы на почту не проходили. Но вдруг заметил, что если прилетает вложение, в котором не верно указан тип файла, amavisd его не не проверят.
Например:

Content-Type: application/octet-stream;name="=?windows-1251?B?x+Dv7uvt6PL8IOTu4+7i7vAg7eD34OvuIODv?==?windows-1251?B?8OXr/y5yYXI=?="

File: Fill in the contract beginning of April.rar, the archive contains a virus with the .scr extension, which is not detected by any antivirus program at the moment.
Because cases of sending such letters from hacked mailboxes (including from Yandex and mail) have become more frequent, I am looking for a way to force the filter to check not by Content-Type, but by file extension.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question