@@ -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 {
0 commit comments