TriBaL HardCoRE !

March 12, 2005

Reject Spam EmaiL

Filed under: Security

Postfix body checks Howto
——————————————————————————–

Postfix body checks .. Reject Spam Mail

Example Error:

reject: body Microsoft Consumer from kellylake96-79.cyberbeach.net[216.104.96.79];
from= to=
proto=ESMTP helo=:
We Dont Accept Mail From Spammers - Go Away

How To Do It!

Postfix config dir is /usr/local/etc/postfix/

cd /usr/local/etc/postfix

Open the main.cf file in vi or ee

add this line to the file

body_checks = regexp:/usr/local/etc/postfix/body_checks

exit save changes.

open a new file in vi or ee named body_checks

Add this content to the file use your imagination :)

### start file body_checks

# Banned Words Phrases

/Microsoft Consumer/ REJECT We Dont Accept Mail From Spammers - Go Away
/viagra/ REJECT We Dont Accept Mail From Spammers - Go Away
/Penis enlargement/ REJECT We Dont Accept Mail From Spammers - Go Away
/get your free/ REJECT We Dont Accept Mail From Spammers - Go Away

#### end file

Do postfix reload

Cheers

Original by Talon Edited By Pascal and mobi @ Unix Dot Org Dot au

1 Comment »

The URI to TrackBack this entry is: http://mobi.blogsome.com/2005/03/12/reject-spam-email/trackback/

  1. http://stories.anzwers.net/voyeurs/dildo-cam-voyeur.html complimentwhosewondered

    Comment by induced — February 28, 2006 @ 4:04 pm

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>























Get free blog up and running in minutes with Blogsome | Theme designs available here