Skip to content
Snippets Groups Projects
Commit 063932b0 authored by Florian Schaal's avatar Florian Schaal
Browse files

fixed last commit

parent 52bbc896
No related branches found
No related tags found
No related merge requests found
...@@ -165,7 +165,7 @@ class postfix_server_plugin { ...@@ -165,7 +165,7 @@ class postfix_server_plugin {
if ($mail_config["mailbox_virtual_uidgid_maps"] == 'y') { if ($mail_config["mailbox_virtual_uidgid_maps"] == 'y') {
$temp = exec("postconf -n virtual_transport", $out); $temp = exec("postconf -n virtual_transport", $out);
// If dovecot switch to lmtp // If dovecot switch to lmtp
if($out[0] != "virtual_transport = lmtp:unix:private/dovecot-lmtp" { if($out[0] != "virtual_transport = lmtp:unix:private/dovecot-lmtp") {
exec("postconf -e 'virtual_transport = lmtp:unix:private/dovecot-lmtp'"); exec("postconf -e 'virtual_transport = lmtp:unix:private/dovecot-lmtp'");
exec('postfix reload'); exec('postfix reload');
$app->system->replaceLine("/etc/dovecot/dovecot.conf", "protocols = imap pop3", "protocols = imap pop3 lmtp"); $app->system->replaceLine("/etc/dovecot/dovecot.conf", "protocols = imap pop3", "protocols = imap pop3 lmtp");
...@@ -173,11 +173,12 @@ class postfix_server_plugin { ...@@ -173,11 +173,12 @@ class postfix_server_plugin {
} }
} else { } else {
// If dovecot switch to dovecot // If dovecot switch to dovecot
if($out[0] != "virtual_transport = dovecot" { if($out[0] != "virtual_transport = dovecot") {
exec("postconf -e 'virtual_transport = dovecot'"); exec("postconf -e 'virtual_transport = dovecot'");
exec('postfix reload'); exec('postfix reload');
$app->system->replaceLine("/etc/dovecot/dovecot.conf", "protocols = imap pop3 lmtp", "protocols = imap pop3"); $app->system->replaceLine("/etc/dovecot/dovecot.conf", "protocols = imap pop3 lmtp", "protocols = imap pop3");
exec($conf['init_scripts'] . '/' . 'dovecot restart'); exec($conf['init_scripts'] . '/' . 'dovecot restart');
}
} }
} }
......
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