Re: blocking all attachments

2011-10-20 Thread Viktor Dukhovni
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

Re: blocking all attachments

2011-10-20 Thread Noel Jones
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

Re: blocking all attachments

2011-10-20 Thread Ian Masters
> 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

Re: blocking all attachments

2011-10-20 Thread Ralf Hildebrandt
* 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

Re: blocking all attachments

2011-10-20 Thread 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 pointing that out. I wonder why it worked .

Re: blocking all attachments

2011-10-20 Thread Ralf Hildebrandt
* 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

Re: blocking all attachments

2011-10-20 Thread Ian Masters
> 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.

Re: blocking all attachments

2011-10-20 Thread Ian Masters
> 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

Re: blocking all attachments

2011-10-19 Thread Stan Hoeppner
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