Seemingly simple postfix chore

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: plug
Date:  
To: plug-discuss
Subject: Seemingly simple postfix chore
I have a machine filtering spam on SuSE 9.0. I followed the
instructions from
http://www.geocities.com/scottlhenderson/spamfilter.html, other than
putting everything on SuSE 9.0, rather than Redhat. So, the machine is
running Postfix, AMaViS and Spamassassin. I am trying to block incoming
e-mail messages with files attached with specific attachments. For the
sake of troubleshooting, I'm using ".jeb". After googling about how to
do it, I got the impression this would be a fairly easy task to get
Postfix to do. Following the instructions, I added the following line
to my /etc/postfix/header_checks file:

/^content-(type|disposition):.*name*=.*\.(jeb)/ REJECT We don't accept
.jeb files

Then, I reloaded Postfix. After doing so, Postfix will log the
offending file coming in, but still delivers it:

May 12 09:13:26 spamfilter postfix/cleanup[831]: 764A099E53: reject:
header Content-Type: application/octet-stream;??name="test.jeb" from
OUTSIDE_HOST[OUTSIDE_HOST_IP]; from=<MY_OUTSIDE_ADDRESS>
to=<MY_INSIDE_ADDRESS> proto=ESMTP helo=<OUTSIDE_HOST>: We don't accept
.jeb files

Sorry for the book, but I figured I'd get all that out of the way,
now... Does anyone have a good idea on how one can use either postfix,
amavis or spamassassin to block incoming attachment with specific
extentions? I thank you, in advance, for your time!
-Erik Bixby

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss