From ad2bd99476fbbe5452223a2462e0e6e7736f5757 Mon Sep 17 00:00:00 2001 From: gau1991 Date: Mon, 1 Sep 2014 19:11:19 +0530 Subject: [PATCH] Fixed Amavis not writing mail scanning header --- src/modules/stack/install/mail/ee_mod_setup_mailscan.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/stack/install/mail/ee_mod_setup_mailscan.sh b/src/modules/stack/install/mail/ee_mod_setup_mailscan.sh index a5d85462..833ad583 100644 --- a/src/modules/stack/install/mail/ee_mod_setup_mailscan.sh +++ b/src/modules/stack/install/mail/ee_mod_setup_mailscan.sh @@ -13,6 +13,8 @@ function ee_mod_setup_mailscan() sed -i "s/use strict;/use strict;\n\$sa_spam_subject_tag = undef;\n\$spam_quarantine_to = undef;\n\$sa_tag_level_deflt = undef;\n\n# Prevent spams from automatically rejected by mail-server\n\$final_spam_destiny = D_PASS;\n# We need to provide list of domains for which filtering need to be done\n@lookup_sql_dsn = (\n ['DBI:mysql:database=vimbadmin;host=127.0.0.1;port=3306',\n 'vimbadmin',\n 'password']);\n\n\$sql_select_policy = 'SELECT domain FROM domain WHERE CONCAT("@",domain) IN (%k)';/" /etc/amavis/conf.d/50-user \ || ee_lib_error "Unable to setup Amavis, exit status = " $? + sed -i "s'\@local_domains_acl = ( \".\$mydomain\" );'\@local_domains_acl = ( \".\" );'" /etc/amavis/conf.d/05-domain_id \ + || ee_lib_error "Unable to setup Amavis, exit status = " $? # Configure Postfix to use Amavis # For postfix main.cf