On Thu, Oct 20, 2011 at 02:44:16PM +0900, Ian Masters wrote:

> Is it possible to block all attachments with postfix? I'm using
> /etc/postfix/mime_header_checks but I can't seem to block all attachments,
> especially ones without file suffixes.

Be careful what you wish for: The question of what is an "attachment" is
not so simple to answer.

 -      Is there an attachment in a multipart/alternative message with
        text/plain and text/html alternative parts?

 -      Is there an attachment in a multipart/related message with
        a text/html parts and related images referenced through "cid:"?

 -      Is there an attachment in a message part that has
        "Content-Disposition: inline" and a Content-Type of "image/jpeg"?

 -      Is there an attachment in a message part that has
        "Content-Disposition: inline" and a Content-Type of "application/pdf"?

Why is having a "name" or "filename" a reason to reject a message
that you would permit if the MIME part in question had no explicit
name and were instead "inline", or allowed the mail client to choose
a default name?

-- 
        Viktor.

Reply via email to