Skip to content
Snippets Groups Projects
Commit b0ea7a67 authored by Dominik's avatar Dominik
Browse files

Fix bug with Array-String in postfix main.cf

parent 23d5e9dc
No related branches found
No related tags found
No related merge requests found
......@@ -193,7 +193,7 @@ class postfix_server_plugin {
}
}
if ($i == count($new_options)) {
$new_options[] = array('reject_unknown_client_hostname');
$new_options[] = 'reject_unknown_client_hostname';
}
$app->system->exec_safe("postconf -e ?", 'smtpd_client_restrictions = '.implode(", ", $new_options));
......@@ -231,7 +231,7 @@ class postfix_server_plugin {
}
}
if ($i == count($new_options)) {
$new_options[] = array('reject_unknown_helo_hostname');
$new_options[] = 'reject_unknown_helo_hostname';
}
$app->system->exec_safe("postconf -e ?", 'smtpd_helo_restrictions = '.implode(", ", $new_options));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment