Bluehost.com Web Hosting $6.95

Re: Ignore attachements with body_checks?

This is a discussion on Re: Ignore attachements with body_checks? within the mailing.postfix.users forums, part of the Mail Servers and Related category; At 02:36 PM 11/11/2004, Kevin Collins wrote: >The biggest problem with this is that the attachment ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-11-2004
Noel Jones
 
Posts: n/a
Default Re: Ignore attachements with body_checks?

At 02:36 PM 11/11/2004, Kevin Collins wrote:

>The biggest problem with this is that the attachment is seen as a giant
>string of ASCII garbage that *sometimes* spell words that my
>'body_checks' are hitting. Like the other day I had a legit e-mail with
>an attachment that got killed because of the string "POrN" was in that
>random conglomeration that the attachment was encoded with.
>
>I want Postfix to kill the e-mails that do NOT have attachments, but do
>have the words "porn" in them.
>
>If I could get postfix to simply not apply the rules in 'body_checks' to
>ALL the e-mails that have attachments with them, that would accomplish
>what I'm after.



Add this near the top of your body_checks. It prevents postfix from
looking for matches within base64 encoded lines.

# Skip over base 64 encoded blocks. This saves lots of CPU cycles.
# Expressions by Liviu Daia, amended by Victor Duchovni.
~^[[:alnum:]+/]{60,}\ *$~ OK

--
Noel Jones

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:03 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0