Welcome to stinkfoot.org
   Topics

Online

There are 1 unlogged user and 0 registered users online.

You can log-in or register for a user account here.

Login







 Log in Problems?
 New User? Sign Up!

Past Articles

Older articles

Postfix spam prevention!

Posted by: e-d0uble on Oct 25, 2002 - 11:29 PM (6318 Reads) Print article Printer-friendly page  Email to a friend

All Topics

We all know that postfix is (IMHO) the best mailserver out there.. not just for performance, but for SPAM PREVENTION!!
I thought I'd post my collection of body_checks and header_checks for it.
Some of these were ripped from mailing lists, others from newsgroups, and some I crafted myself.
To use these particular checks, you must have PCRE support built into postfix.
To find out if you do, execute: postconf -m
In your main.cf, you should also have: (body|header)_checks=pcre:/etc/postfix/(body|header)_checks (don't mind my regexes, heh).
Stay cool.

Ethan

body_checks:

~^[[:alnum:]+/]{60,}[:space:]*$~ OK
/-----BEGIN PGP PUBLIC KEY BLOCK-----/ OK
/(ftp|https?):\/\/([^\/]*@)?([01]{10,})?(\d+|00+\d+(\.00+\d+){3}|
[\%0-9a-zA-Z\.\?_-]*\%[\%0-9a-zA-Z\.\?_-]+)(:\d+)?(\/|"|\s|$)/ REJECT
/(href=3D=22)?(ftp|https?)=3A=2F=2F|(
Postfix spam prevention! | Log-in or register a new user account | 0 Comments
  
Comments are statements made by the person that posted them.
They do not necessarily represent the opinions of the site editor.