Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

body_checks

Status
Not open for further replies.

iwanalearn

Technical User
Sep 21, 2001
22
US
I'm just learning linux/postfix/etc. I've been working with body_checks to stop the flow of spam. It seems to work for me with one exception. I can't get any phrases with a "period" to be rejected.
e.g.
/ REJECT Spam
/ REJECT Spam

Neither of these works to stop when it is in the content of the body.
What could I be doing wrong.
Thanks
 
Thanks for the responses.
Actually I found something that does work well.
I've been using the following.
/ REJECT

I found this on a different forum.

Yes I do have regex built into postfix.
Again Thanks
 
You need to be aware that the .* in the regex you are matching may not be doing what you think it is doing.

. means 'match any character'
* means 'match zero or more instances of the preceding character'

So will match all the following:


Which I think is different from your intention.

As in ISManager007's post, backslashing the . takes away it's special meaning and makes it match a dot.

Though it does take the discussion full circle as to why your original rules didn't work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top