Skip to content

Commit b0ea7a6

Browse files
committed
Fix bug with Array-String in postfix main.cf
1 parent 23d5e9d commit b0ea7a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/plugins-available/postfix_server_plugin.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function update($event_name, $data) {
193193
}
194194
}
195195
if ($i == count($new_options)) {
196-
$new_options[] = array('reject_unknown_client_hostname');
196+
$new_options[] = 'reject_unknown_client_hostname';
197197
}
198198

199199
$app->system->exec_safe("postconf -e ?", 'smtpd_client_restrictions = '.implode(", ", $new_options));
@@ -231,7 +231,7 @@ function update($event_name, $data) {
231231
}
232232
}
233233
if ($i == count($new_options)) {
234-
$new_options[] = array('reject_unknown_helo_hostname');
234+
$new_options[] = 'reject_unknown_helo_hostname';
235235
}
236236

237237
$app->system->exec_safe("postconf -e ?", 'smtpd_helo_restrictions = '.implode(", ", $new_options));

0 commit comments

Comments
 (0)