From 535a69cff3cd79395c2afd6b62f00f4b31a75a03 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Mon, 02 Sep 2013 11:45:43 -0400
Subject: [PATCH] - Improved dkim support. - Added dkim installation to installer. - Added backup filesize in backup cronjob.

---
 install/lib/installer_base.lib.php |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php
index e43d0bb..2781322 100644
--- a/install/lib/installer_base.lib.php
+++ b/install/lib/installer_base.lib.php
@@ -1048,7 +1048,20 @@
 		// Add the clamav user to the amavis group
 		exec('adduser clamav amavis');
 
-
+		// Create the director for DKIM-Keys
+		mkdir("/var/lib/amavis/dkim",0750);
+		// get shell-user for amavis
+		$amavis_user=exec('grep -o "^amavis:\|^vscan:" /etc/passwd');
+		if(!empty($amavis_user)) {
+			$amavis_user=rtrim($amavis_user,":");
+			exec('chown '.$amavis_user.'/var/lib/amavis/dkim');
+		}
+		// get shell-group for amavis
+		$amavis_group=exec('grep -o "^amavis:\|^vscan:" /etc/group');
+		if(!empty($amavis_group)) {
+			$amavis_group=rtrim($amavis_group,":");
+			exec('chgrp '.$amavis_group.'/var/lib/amavis/dkim');
+		}
 	}
 
 	public function configure_spamassassin() {

--
Gitblit v1.9.1