Skip to content

Commit 1110abe

Browse files
committed
address verification not needed for rspamd
1 parent 39e6974 commit 1110abe

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

install/lib/installer_base.lib.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,9 @@ public function add_database_server_record() {
391391
}
392392
}
393393

394+
// preserve needed values in $conf (should just array_merge $tpl_ini_array into $conf?)
395+
$conf['mail']['content_filter'] = $tpl_ini_array['mail']['content_filter'];
396+
394397
$server_ini_content = array_to_ini($tpl_ini_array);
395398

396399
$mail_server_enabled = ($conf['services']['mail'])?1:0;
@@ -1475,7 +1478,7 @@ public function configure_dovecot() {
14751478
}
14761479
$new_options[] = $value;
14771480
}
1478-
if ($configure_lmtp) {
1481+
if ($configure_lmtp && $conf['mail']['content_filter'] === 'amavisd') {
14791482
for ($i = 0; isset($new_options[$i]); $i++) {
14801483
if ($new_options[$i] == 'reject_unlisted_recipient') {
14811484
array_splice($new_options, $i+1, 0, array("check_recipient_access proxy:mysql:${quoted_config_dir}/mysql-verify_recipients.cf"));

server/plugins-available/postfix_server_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ function update($event_name, $data) {
326326
}
327327
$new_options[] = $value;
328328
}
329-
if (defined($configure_lmtp) && $configure_lmtp) {
329+
if (defined($configure_lmtp) && $configure_lmtp && $mail_config['content_filter'] == 'amavisd') {
330330
for ($i = 0; isset($new_options[$i]); $i++) {
331331
if ($new_options[$i] == 'reject_unlisted_recipient') {
332332
array_splice($new_options, $i+1, 0, array("check_recipient_access proxy:mysql:${quoted_postfix_config_dir}/mysql-verify_recipients.cf"));

0 commit comments

Comments
 (0)