File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments