From d2aef8a785b06d1b383ef52915e18e6bd4ffbc77 Mon Sep 17 00:00:00 2001 From: Marcello Coutinho Date: Sat, 10 Sep 2011 09:39:42 -0300 Subject: Postfix forwarder - change regex from REGEXP to PCRE format. --- config/postfix/postfix_acl.xml | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'config/postfix/postfix_acl.xml') diff --git a/config/postfix/postfix_acl.xml b/config/postfix/postfix_acl.xml index 9c59c102..f3f944e5 100644 --- a/config/postfix/postfix_acl.xml +++ b/config/postfix/postfix_acl.xml @@ -127,39 +127,39 @@ Header header_maps - REGEXP filters that are applied to initial message headers(except for the headers that are processed with mime_header_checks Hint:
- /^Subject: viagra|cialis|levitra|day price:/i REJECT
- /^From: spammer@myspam.net/i REJECT
- /^From: *@mytrustdomain OK
+ PCRE filters that are applied to initial message headers(except for the headers that are processed with mime_header_checks Hint:
+ /^Subject:.*(viagra|cialis|levitra|day price):/ REJECT
+ /^From:.*spammer@myspam.net/ REJECT
+ /^From:.*@mytrustdomain OK
See http://www.postfix.org/header_checks.5.html for more help]]>
textarea - 80 - 10 + 83 + 15 base64
MIME mime_maps - REGEXP filters that are applied to MIME related message headers only. Hint:
+ PCRE filters that are applied to MIME related message headers only. Hint:
/^name=[^>]*\.(com|vbs|js|jse|exe|bat|cmd|vxd|scr|hlp|pif|shs|ini|dll)/ REJECT W do not allow files of type "$3" because of security concerns - "$2" caused the block.
/^Content-(Disposition|Type):\s+.+?(?:file)?name="?.+?\.(386|ad[ept]|drv|em(ai)?l|ex[_e]|xms|\{[\da-f]{8}(?:-[\da-f]{4}){3}-[\da-f]{12}\})\b/ REJECT ".$2" file attachment types not allowed]]>
textarea - 80 - 10 + 83 + 15 base64
body body_maps - REGEXP filters that are applied to all other content, including multi-part message boundaries. Hint:
+ PCRE filters that are applied to all other content, including multi-part message boundaries. Hint:
# First skip over base 64 encoded text to save CPU cycles.
~^[[:alnum:]+/]{60,}$~ OK]]>
textarea - 80 - 10 + 83 + 15 base64
@@ -175,21 +175,21 @@ 192.168.3.2 OK
spammer.junkdomain.com REJECT]]> textarea - 80 - 10 + 83 + 15 base64 - REGEXP - cal_regexp - + PCRE + cal_pcre + This list is used by postfix to check who has access or not to this relay.Hint:
/.*\.dsl\..*/ REJECT DSLs not allowed
/.*\.adsl\..*/ REJECT DSLs not allowed]]>
textarea - 80 - 10 + 83 + 15 base64
-- cgit v1.2.3