From b8c9896cd62246a09ca40882cb0e46727220591e Mon Sep 17 00:00:00 2001 From: Dominik <info@profi-webdesign.com> Date: Fri, 3 Apr 2015 23:39:57 +0200 Subject: [PATCH] fixed problem with nonempty array --- server/plugins-available/postfix_server_plugin.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/plugins-available/postfix_server_plugin.inc.php b/server/plugins-available/postfix_server_plugin.inc.php index b8391d3c3f..a5451e7701 100644 --- a/server/plugins-available/postfix_server_plugin.inc.php +++ b/server/plugins-available/postfix_server_plugin.inc.php @@ -115,6 +115,7 @@ class postfix_server_plugin { $rbl_hosts = explode(",", $rbl_hosts); } $options = explode(", ", exec("postconf -h smtpd_recipient_restrictions")); + $new_options = array(); foreach ($options as $key => $value) { if (!preg_match('/reject_rbl_client/', $value)) { $new_options[] = $value; @@ -140,6 +141,7 @@ class postfix_server_plugin { if($mail_config['reject_sender_login_mismatch'] != $old_ini_data['mail']['reject_sender_login_mismatch']) { $options = explode(", ", exec("postconf -h smtpd_sender_restrictions")); + $new_options = array(); foreach ($options as $key => $value) { if (!preg_match('/reject_authenticated_sender_login_mismatch/', $value)) { $new_options[] = $value; -- GitLab