From 873244e795356d77426cbff4224f7b8a55a6835f Mon Sep 17 00:00:00 2001
From: Marius Cramer <m.cramer@pixcept.de>
Date: Tue, 08 Dec 2015 10:42:51 -0500
Subject: [PATCH] - added letsencrypt arguments to exec call to avoid need of ini file - added cron for letsencrypt renewal

---
 server/plugins-available/postfix_server_plugin.inc.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/plugins-available/postfix_server_plugin.inc.php b/server/plugins-available/postfix_server_plugin.inc.php
index ddd56a9..64c5571 100644
--- a/server/plugins-available/postfix_server_plugin.inc.php
+++ b/server/plugins-available/postfix_server_plugin.inc.php
@@ -162,8 +162,8 @@
 		}		
 		
 		if($app->system->is_installed('dovecot')) {
+			$temp = exec("postconf -n virtual_transport", $out);
 			if ($mail_config["mailbox_virtual_uidgid_maps"] == 'y') {
-				$temp = exec("postconf -n virtual_transport", $out);
 				// If dovecot switch to lmtp
 				if($out[0] != "virtual_transport = lmtp:unix:private/dovecot-lmtp") {
 					exec("postconf -e 'virtual_transport = lmtp:unix:private/dovecot-lmtp'");

--
Gitblit v1.9.1