Skip to content

Commit 063932b

Browse files
author
Florian Schaal
committed
fixed last commit
1 parent 52bbc89 commit 063932b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/plugins-available/postfix_server_plugin.inc.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,19 +165,20 @@ function update($event_name, $data) {
165165
if ($mail_config["mailbox_virtual_uidgid_maps"] == 'y') {
166166
$temp = exec("postconf -n virtual_transport", $out);
167167
// If dovecot switch to lmtp
168-
if($out[0] != "virtual_transport = lmtp:unix:private/dovecot-lmtp" {
168+
if($out[0] != "virtual_transport = lmtp:unix:private/dovecot-lmtp") {
169169
exec("postconf -e 'virtual_transport = lmtp:unix:private/dovecot-lmtp'");
170170
exec('postfix reload');
171171
$app->system->replaceLine("/etc/dovecot/dovecot.conf", "protocols = imap pop3", "protocols = imap pop3 lmtp");
172172
exec($conf['init_scripts'] . '/' . 'dovecot restart');
173173
}
174174
} else {
175175
// If dovecot switch to dovecot
176-
if($out[0] != "virtual_transport = dovecot" {
176+
if($out[0] != "virtual_transport = dovecot") {
177177
exec("postconf -e 'virtual_transport = dovecot'");
178178
exec('postfix reload');
179179
$app->system->replaceLine("/etc/dovecot/dovecot.conf", "protocols = imap pop3 lmtp", "protocols = imap pop3");
180180
exec($conf['init_scripts'] . '/' . 'dovecot restart');
181+
}
181182
}
182183
}
183184

0 commit comments

Comments
 (0)