OnlineThere are 1 unlogged user and 0 registered users online.You can log-in or register for a user account here. LoginPast Articles
|
Postfix spam prevention! Email to a friend
![]() 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|(
|
|||||