Dominik
2015-04-03 b8c9896cd62246a09ca40882cb0e46727220591e
fixed problem with nonempty array
1 files modified
2 ■■■■■ changed files
server/plugins-available/postfix_server_plugin.inc.php 2 ●●●●● patch | view | raw | blame | history
server/plugins-available/postfix_server_plugin.inc.php
@@ -115,6 +115,7 @@
                $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 @@
        
        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;