From: ms Date: Sat, 3 Nov 2007 20:16:46 +0000 (+0000) Subject: Added the postfix body checks. X-Git-Tag: v2.3-beta1~262 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a50af3d14586d2f3335d59124db3034844633c74;p=ipfire-2.x.git Added the postfix body checks. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@1051 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 --- diff --git a/config/postfix/body_checks b/config/postfix/body_checks new file mode 100644 index 0000000000..e2eeacc24d --- /dev/null +++ b/config/postfix/body_checks @@ -0,0 +1 @@ +/^((Content-(Disposition: attachment;|Type:).*|\ +)| *)(file)?name\ *=\ *"?.*\.(lnk|asd|hlp|ocx|reg|bat|c[ho]m|cmd|exe|dll|vxd|pif|scr|hta|jse?|sh[mbs]|vb[esx]|ws[fh]|wmf)"?\ *$/ REJECT attachment type not allowed diff --git a/config/rootfiles/packages/postfix b/config/rootfiles/packages/postfix index 871b6596f5..1559427473 100644 --- a/config/rootfiles/packages/postfix +++ b/config/rootfiles/packages/postfix @@ -2,6 +2,7 @@ etc/aliases #etc/postfix #etc/postfix/LICENSE #etc/postfix/TLS_LICENSE +etc/postfix/body_checks #etc/postfix/bounce.cf.default etc/postfix/header_checks etc/postfix/main.cf