Filtering Exes w/ Postfix

I have been running postfix on debian for some time with

bodychecks = pcre:/etc/postfix/mimeheader_checks

where mimeheaderchecks 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.

2 Replies

You seem to have the Postfix filter bodychecks pointed to the mimeheader_checks file.

The content of your mimeheaderchecks file looks correct, if it is applied via headerchecks or mimeheader-checks.

@pclissold:

You seem to have the Postfix filter bodychecks pointed to the mimeheader_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….

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct