[Mailman-Users] Simple SPAM protection

Brad Knowles brad.knowles at skynet.be
Sat Aug 23 15:20:23 CEST 2003


At 3:38 PM -0500 2003/08/22, kevinc at seaplace.org wrote:

>  Looking for a method to block specific attachment types like .pif and .exe.
>
>  Any suggestions for a Postfix/Mailman user?

	In main.cf, use:

body_checks = regexp:/var/postfix/body_checks.regexp


	In /var/postfix/body_checks.regexp, use:

# Spam Blocking
/^[[:blank:]]*name\=(.*)\.(ad[ep]|ba[st]|chm|cmd|com|cpl|crt|eml|exe|hlp|hta|in[
fs]|isp|js|jse|jse?|lnk|md[be]|ms[cipt]|pcd|pif|reg|scr|sct|shs|url|vb[se]|vxd|w
s[fhc]|zip)/    REJECT


	In case that gets line-wrapped, that's supposed to be a long 
regular expression on a single line.

-- 
Brad Knowles, <brad.knowles at skynet.be>

"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
     -Benjamin Franklin, Historical Review of Pennsylvania.

GCS/IT d+(-) s:+(++)>: a C++(+++)$ UMBSHI++++$ P+>++ L+ !E-(---) W+++(--) N+
!w--- O- M++ V PS++(+++) PE- Y+(++) PGP>+++ t+(+++) 5++(+++) X++(+++) R+(+++)
tv+(+++) b+(++++) DI+(++++) D+(++) G+(++++) e++>++++ h--- r---(+++)* z(+++)




More information about the Mailman-Users mailing list