Skip to content

Commit 0dfa506

Browse files
committed
installer: reject_unlisted_senders in smtpd_sender_restrictions
1 parent 72fbdda commit 0dfa506

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

install/lib/installer_base.lib.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1798,9 +1798,10 @@ public function configure_rspamd() {
17981798
if ($mail_config['reject_sender_login_mismatch'] == 'y') {
17991799
array_splice($new_options, 0, 0, array('reject_authenticated_sender_login_mismatch'));
18001800

1801+
// insert before permit_sasl_authenticated
18011802
for ($i = 0; isset($new_options[$i]); $i++) {
1802-
if ($new_options[$i] == 'permit_mynetworks') {
1803-
array_splice($new_options, $i+1, 0, array('reject_sender_login_mismatch'));
1803+
if ($new_options[$i] == 'permit_sasl_authenticated') {
1804+
array_splice($new_options, $i, 0, array('reject_sender_login_mismatch'));
18041805
break;
18051806
}
18061807
}

0 commit comments

Comments
 (0)