Skip to content

Commit d9cd0ab

Browse files
committed
Merge branch 'develop' of git.ispconfig.org:ispconfig/ispconfig3 into develop
2 parents 495868a + 5cbfd76 commit d9cd0ab

File tree

6 files changed

+10
-3
lines changed

6 files changed

+10
-3
lines changed

install/lib/installer_base.lib.php

Lines changed: 5 additions & 2 deletions
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"));
@@ -2838,7 +2841,7 @@ public function make_ispconfig_ssl_cert() {
28382841
$ip_address_match = false;
28392842
if(!(($svr_ip4 && in_array($svr_ip4, $dns_ips)) || ($svr_ip6 && in_array($svr_ip6, $dns_ips)))) {
28402843
swriteln('Server\'s public ip(s) (' . $svr_ip4 . ($svr_ip6 ? ', ' . $svr_ip6 : '') . ') not found in A/AAAA records for ' . $hostname . ': ' . implode(', ', $dns_ips));
2841-
if(strtolower($inst->simple_query('Ignore DNS check and continue to request certificate?', array('y', 'n') , 'n','ignore_hostname_dns')) == 'y') {
2844+
if(strtolower($this->simple_query('Ignore DNS check and continue to request certificate?', array('y', 'n') , 'n','ignore_hostname_dns')) == 'y') {
28422845
$ip_address_match = true;
28432846
}
28442847
} else {

install/tpl/debian_postfix.conf.master

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ smtp_tls_exclude_ciphers = RC4, aNULL
4949
smtpd_tls_mandatory_ciphers = medium
5050
tls_medium_cipherlist = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
5151
tls_preempt_cipherlist = no
52+
address_verify_negative_refresh_time=60s
5253
# needed for postfix < 3.3 when using reject_unverified_recipient (lmtp):
5354
enable_original_recipient = yes

install/tpl/fedora_postfix.conf.master

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,6 @@ smtp_tls_exclude_ciphers = RC4, aNULL
4545
smtpd_tls_mandatory_ciphers = medium
4646
tls_medium_cipherlist = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
4747
tls_preempt_cipherlist = no
48+
address_verify_negative_refresh_time=60s
4849
# needed for postfix < 3.3 when using reject_unverified_recipient (lmtp):
4950
enable_original_recipient = yes

install/tpl/gentoo_postfix.conf.master

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@ smtp_tls_exclude_ciphers = RC4, aNULL
4444
smtpd_tls_mandatory_ciphers = medium
4545
tls_medium_cipherlist = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
4646
tls_preempt_cipherlist = no
47+
address_verify_negative_refresh_time=60s
4748
# needed for postfix < 3.3 when using reject_unverified_recipient (lmtp):
4849
enable_original_recipient = yes

install/tpl/opensuse_postfix.conf.master

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ smtp_tls_exclude_ciphers = RC4, aNULL
4747
smtpd_tls_mandatory_ciphers = medium
4848
tls_medium_cipherlist = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
4949
tls_preempt_cipherlist = no
50+
address_verify_negative_refresh_time=60s
5051
# needed for postfix < 3.3 when using reject_unverified_recipient (lmtp):
5152
enable_original_recipient = yes

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)