Skip to content

Commit 38751c0

Browse files
author
Till Brehm
committed
Fixed #5214 relayhost without authentication
1 parent 8287110 commit 38751c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/postfix_server_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function update($event_name, $data) {
8989
$content = file_exists('/etc/postfix/sasl_passwd') ? file_get_contents('/etc/postfix/sasl_passwd') : '';
9090
$content = preg_replace('/^'.preg_quote($old_ini_data['email']['relayhost']).'\s+[^\n]*(:?\n|)/m','',$content);
9191

92-
if (!empty($mail_config['relayhost']) || !empty($mail_config['relayhost_user']) || !empty($mail_config['relayhost_password'])) {
92+
if (!empty($mail_config['relayhost_user']) || !empty($mail_config['relayhost_password'])) {
9393
$content .= "\n".$mail_config['relayhost'].' '.$mail_config['relayhost_user'].':'.$mail_config['relayhost_password'];
9494
}
9595

0 commit comments

Comments
 (0)