Skip to content

Commit f2c7c21

Browse files
author
Florian Schaal
committed
add "postfix reload"
1 parent b3c7c7b commit f2c7c21

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/plugins-available/postfix_server_plugin.inc.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ function update($event_name, $data) {
139139
}
140140
}
141141
exec("postconf -e 'smtpd_recipient_restrictions = ".implode(", ", $new_options)."'");
142+
exec('postfix reload');
142143
}
143144

144145
if($mail_config['reject_sender_login_mismatch'] != $old_ini_data['mail']['reject_sender_login_mismatch']) {
@@ -157,18 +158,21 @@ function update($event_name, $data) {
157158
array_splice($new_options, $i, 0, array('reject_authenticated_sender_login_mismatch'));
158159
}
159160
exec("postconf -e 'smtpd_sender_restrictions = ".implode(", ", $new_options)."'");
161+
exec('postfix reload');
160162
}
161163

162164
if ($mail_config["mailbox_virtual_uidgid_maps"] == 'y') {
163165
// If dovecot switch to lmtp
164166
if($app->system->is_installed('dovecot')) {
165167
exec("postconf -e 'virtual_transport = lmtp:unix:private/dovecot-lmtp'");
168+
exec('postfix reload');
166169
}
167170
}
168171
else {
169172
// If dovecot switch to dovecot
170173
if($app->system->is_installed('dovecot')) {
171174
exec("postconf -e 'virtual_transport = dovecot'");
175+
exec('postfix reload');
172176
}
173177
}
174178

0 commit comments

Comments
 (0)