From 54fb5932b92ab1dcd914340edd61f36bc01c0845 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Sat, 11 Aug 2007 12:53:40 -0400 Subject: [PATCH] Added postfix header- and body check filters. --- install/lib/installer_base.lib.php | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php index c7bf3fd..3c1933a 100644 --- a/install/lib/installer_base.lib.php +++ b/install/lib/installer_base.lib.php @@ -284,9 +284,20 @@ 'smtpd_client_restrictions = check_client_access mysql:'.$conf["dist_postfix_config_dir"].'/mysql-virtual_client.cf', 'maildrop_destination_concurrency_limit = 1', 'maildrop_destination_recipient_limit = 1', - 'virtual_transport = maildrop' + 'virtual_transport = maildrop', + 'header_checks = regexp:/etc/postfix/header_checks', + 'mime_header_checks = regexp:/etc/postfix/mime_header_checks', + 'nested_header_checks = regexp:/etc/postfix/nested_header_checks', + 'body_checks = regexp:/etc/postfix/body_checks' ); + // Create the header ynd body check files + touch('/etc/postfix/header_checks'); + touch('/etc/postfix/mime_header_checks'); + touch('/etc/postfix/nested_header_checks'); + touch('/etc/postfix/body_checks'); + + // Make a backup copy of the main.cf file copy($conf["dist_postfix_config_dir"].'/main.cf',$conf["dist_postfix_config_dir"].'/main.cf~'); -- Gitblit v1.9.1