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 i
On 10/20/2011 4:07 AM, Ian Masters wrote:
>> That's wrong syntax...
>>
>> /name=*\.*/ REJECT no attachments allowed
>>
>> means:
>>
>> "name" followed by an arbitrary number of "="
>> followed by an arbitrary number of "."
>>
>> You probably meant:
>>
>> /name=/ REJECT no attachments allowed
>
> T
> Except when an attachment does not have a name. Eg inline images in a html
> email.
>
> Sorry about the top post.. my current mail client leaves much to be desired.
ah, that's interesting ... the inline part anyway ... thanks
* Ian Masters :
> > That's wrong syntax...
> >
> > /name=*\.*/ REJECT no attachments allowed
> >
> > means:
> >
> > "name" followed by an arbitrary number of "="
> > followed by an arbitrary number of "."
> >
> > You probably meant:
> >
> > /name=/ REJECT no attachments allowed
>
> Thanks for
> That's wrong syntax...
>
> /name=*\.*/ REJECT no attachments allowed
>
> means:
>
> "name" followed by an arbitrary number of "="
> followed by an arbitrary number of "."
>
> You probably meant:
>
> /name=/ REJECT no attachments allowed
Thanks for pointing that out. I wonder why it worked .
* Ian Masters :
> > Preferably reject but removing the attachment might be acceptable.
>
> Well, this seems to have done it:
>
> /name=*\.*/ REJECT no attachments allowed
That's wrong syntax...
/name=*\.*/ REJECT no attachments allowed
means:
"name" followed by an arbitrary number of "="
fol
> Preferably reject but removing the attachment might be acceptable.
Well, this seems to have done it:
/name=*\.*/ REJECT no attachments allowed
How embarrassingly simple.
Sorry for the noise.
> Do you want to REJECT all emails containing an attachment? Or do you
> want to remove the attachment and let the message go trough?
Thanks for the reply.
Preferably reject but removing the attachment might be acceptable.
Ian
On 10/20/2011 12:44 AM, 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.
Do you want to REJECT all emails containing an attachment? Or do you