Re: [Exim] ACL to ALLOW only mentioned attachments type and …

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Tom Kistner
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [Exim] ACL to ALLOW only mentioned attachments type and block *
Tom Kistner wrote:

> deny message = We only allow .zip and .pdf file attachments
>      !condition = $mime_is_rfc822
>      !condition = ${if eq{$mime_content_disposition}{inline}{1}{0}}
>      condition = $mime_filename
>      condition = ${if match \
>                         {${lc:$mime_filename}} \
>                         {\N(\.zip|\.pdf)$\N} \
>                      {1}{0}}


Brain fart. This must be:

deny message = We only allow .zip and .pdf file attachments
      !condition = $mime_is_rfc822
      !condition = ${if eq{$mime_content_disposition}{inline}{1}{0}}
      condition = $mime_filename
      !condition = ${if match \
                         {${lc:$mime_filename}} \
                         {\N(\.zip|\.pdf)$\N} \
                      {1}{0}}