Hi

I'm building my 1st Postfix server and working on getting Postscreen setup.

I RTFM here

  http://www.postfix.org/POSTSCREEN_README.html 

Where it says

 The third layer performs light-weight content inspection with the Postfix
 built-in header_checks and body_checks. This can block unacceptable 
attachments such as
 executable programs, and worms or viruses with easy-to-recognize signatures. 

So in my main.cf I added

 body_checks = /etc/postfix/body_checks.pcre

Checked that it's in there

 postconf -n | grep body_checks
  body_checks = /etc/postfix/body_checks.pcre

and edited

 /etc/postfix/body_checks.pcre
  /TEST BAD CONTENT/  REJECT  554 5.7.1 Message not allowed

Then I test it with

 postmap -q "TEST BAD CONTENT" pcre:/etc/postfix/body_checks.pcre 
  REJECT  554 5.7.1 [P5] Message not allowed

So it looks ok to me.

But then I send myself a test message from gmail, making sure the text "TEST 
BAD CONTENT" is in the body.

And it passes right through :-(

I'm not sure what to look at as to why or how it's getting through.  Just 
coming up to speed on how to debug stuff.

I'd appreciate a hand.

Thanks,

Billy

Reply via email to