On 12/23/2015 7:29 AM, Olivier CALVANO wrote:
> Hi
> 
> it's possible to deny a attachment extension directly into postfix ?

You can block attachment extensions using either header_checks or
mime_header_checks.  There's a nice working example at the end of
the header_checks man page (the example also works with
mime_header_checks).
http://www.postfix.org/header_checks.5.html

header_checks and mime_header_checks rules will apply to all mail
without exception. There is no bypass or whitelist function for
specific domains/recipients/senders/etc.


> 
> and create a database :
> 
> domaine1.com <http://domaine1.com> .exe;.bat;.cab
> domaine2.com <http://domaine2.com> .exe

To perform blocking with exceptions, you'll need a milter,
smtpd_proxy_filter, or content_filter outside of postfix, such as
mimedefang or amavisd-new.



  -- Noel Jones

Reply via email to