Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


Filtering Exes w/ Postfix

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> Email/SMTP Related Forum
Author Message
miallen



Joined: 08 Jan 2004
Posts: 13
Location: New York

Posted: Sun Aug 29, 2004 3:19 am    Post subject: Filtering Exes w/ Postfix  

I have been running postfix on debian for some time with

body_checks = pcre:/etc/postfix/mime_header_checks

where mime_header_checks has:

/name=[^>]*\.exe/ REJECT Files attached to emai...

The full file is from:

http://www.securitysage.com/files/header_checks

This worked great for a long time but suddenly I'm geting exes all the time. How can this happen? What is the correct way to filter executables efficiently with postfix?

Thanks,
Mike

PS: I tried to send a message to postfix-users but the yahoo groups thing was apparently too much overhead. Everything I sent bounced. Someone pls help.
Back to top  
pclissold



Joined: 24 Oct 2003
Posts: 481
Location: Netherlands

Posted: Sun Aug 29, 2004 11:21 am    Post subject:  

You seem to have the Postfix filter body_checks pointed to the mime_header_checks file.

The content of your mime_header_checks file looks correct, if it is applied via header_checks or mime_header-checks.
Back to top  
miallen



Joined: 08 Jan 2004
Posts: 13
Location: New York

Posted: Sun Aug 29, 2004 4:19 pm    Post subject:  

pclissold wrote: You seem to have the Postfix filter body_checks pointed to the mime_header_checks file.

Yeah, I don't know why I used body_checks but this used to work. I tested it. Since then I have updated the debian install. Maybe it's no longer valid....
Back to top  
 
       Linode.com Forum Forum Index -> Email/SMTP Related Forum
Page 1 of 1