Страница 1 из 1

Exim ограничение отправки определенных вложений

Добавлено: 2010-02-02 18:27:43
Oleg
Подскажите плиз, как в exim запретить отправлять письма с определенными вложениями, например если вложенный файл архив. Заранее огромное спасибо за ответ.

Re: Exim ограничение отправки определенных вложений

Добавлено: 2010-02-03 10:37:49
Laa
Это же в доке есть! ;-)

Код: Выделить всё

41.6 The demime condition
-------------------------

The demime ACL condition provides MIME unpacking, sanity checking and file
extension blocking. It is usable only in the DATA and non-SMTP ACLs. The demime
condition uses a simpler interface to MIME decoding than the MIME ACL
functionality, but provides no additional facilities. Please note that this
condition is deprecated and kept only for backward compatibility. You must set
the WITH_OLD_DEMIME option in Local/Makefile at build time to be able to use
the demime condition.

The demime condition unpacks MIME containers in the message. It detects errors
in MIME containers and can match file extensions found in the message against a
list. Using this facility produces files containing the unpacked MIME parts of
the message in the temporary scan directory. If you do antivirus scanning, it
is recommended that you use the demime condition before the antivirus (malware)
condition.

On the right-hand side of the demime condition you can pass a colon-separated
list of file extensions that it should match against. For example:

deny message = Found blacklisted file attachment
     demime  = vbs:com:bat:pif:prf:lnk
...

Re: Exim ограничение отправки определенных вложений

Добавлено: 2010-02-03 10:56:30
Oleg
Спасибо огромное.