From ec571625a4dee99acff1a2cef75a48aa57df82cb Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 22 Aug 2013 07:56:36 -0400
Subject: [PATCH] Updated dkim support. Thanks to Florian for the patch.

---
 install/dist/lib/gentoo.lib.php |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/install/dist/lib/gentoo.lib.php b/install/dist/lib/gentoo.lib.php
index 382689c..f5358dd 100644
--- a/install/dist/lib/gentoo.lib.php
+++ b/install/dist/lib/gentoo.lib.php
@@ -156,6 +156,19 @@
 			$command = 'mkdir '.$cf['vmail_mailbox_base'].'/mailfilters';
 			caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
 		}
+
+		//* postfix-dkim
+		$full_file_name=$config_dir.'/tag_as_originating.re';
+		if(is_file($full_file_name)) {
+			copy($full_file_name, $config_dir.$configfile.'~');
+	        }
+        	$this->write_config_file($full_file_name,'/^/ FILTER amavis:[127.0.0.1]:10026');
+
+	        $full_file_name=$config_dir.'/tag_as_foreign.re';
+        	if(is_file($full_file_name)) {
+                	copy($full_file_name, $config_dir.$configfile.'~');
+	        }
+		$this->write_config_file($full_file_name,'/^/ FILTER amavis:[127.0.0.1]:10024');
 		
 		//* Chmod and chown the .mailfilter file
 		$command = 'chown -R '.$cf['vmail_username'].':'.$cf['vmail_groupname'].' '.$cf['vmail_mailbox_base'].'/.mailfilter';

--
Gitblit v1.9.1