Skip to content

Commit 00c8162

Browse files
author
Marius Burkard
committed
Merge branch 'stable-3.1'
2 parents 70148ec + 835351b commit 00c8162

34 files changed

+70
-42
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Which code branch to use
2+
3+
The master branch is used for code (mostly new features) that shall go into the next major release (e.g. 3.2, 3.3 and so on). The stable branch (e.g. stable-3.1, stable-3.2) is the branch for the current intermediate and bugfix releases. Bugfixes shall be committed to the current stable branch and not the master branch. The stable branch is merged to the master automatically from time to time, please do not submit bugfixes a second time against the master.
4+
15
# Some guidelines for web development with php.
26
-----------------------------------------------------
37
* Unix Line Breaks Only, NO windows breaks please.

install/dist/lib/debian60.lib.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ public function configure_dovecot()
109109
if(version_compare($dovecot_version,2.1) < 0) {
110110
removeLine($config_dir.'/'.$configfile, 'ssl_protocols =');
111111
}
112+
if(version_compare($dovecot_version,2.2) >= 0) {
113+
// Dovecot > 2.2 does not recognize !SSLv2 anymore on Debian 9
114+
replaceLine($config_dir.'/'.$configfile, 'ssl_protocols = !SSLv2 !SSLv3', 'ssl_protocols = !SSLv3', 1, 0);
115+
}
112116
} else {
113117
if(is_file($conf['ispconfig_install_dir'].'/server/conf-custom/install/debian6_dovecot.conf.master')) {
114118
copy($conf['ispconfig_install_dir'].'/server/conf-custom/install/debian6_dovecot.conf.master', $config_dir.'/'.$configfile);

install/install.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@
114114
if($path_parts['extension'] == 'php') {
115115
include_once $cmd_opt['autoinstall'];
116116
} elseif($path_parts['extension'] == 'ini') {
117-
$tmp = ini_to_array(file_get_contents($cmd_opt['autoinstall']));
117+
if(is_file('autoinstall.ini')) {
118+
$tmp = ini_to_array(file_get_contents('autoinstall.ini'));
119+
} else {
120+
$tmp = ini_to_array(file_get_contents($cmd_opt['autoinstall']));
121+
}
118122
if(!is_array($tmp['install'])) $tmp['install'] = array();
119123
if(!is_array($tmp['ssl_cert'])) $tmp['ssl_cert'] = array();
120124
if(!is_array($tmp['expert'])) $tmp['expert'] = array();
@@ -441,6 +445,7 @@
441445

442446
}
443447

448+
if($install_mode == 'expert') swriteln('The Web Server option has to be enabled when you want run a web server or when this node shall host the ISPConfig interface.');
444449
if($install_mode == 'standard' || strtolower($inst->simple_query('Configure Web Server', array('y', 'n'), 'y','configure_webserver')) == 'y') {
445450
//* Configure Apache
446451
if($conf['apache']['installed']){

install/lib/installer_base.lib.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,6 +1357,10 @@ public function configure_dovecot() {
13571357
if(version_compare($dovecot_version, 2.1, '<')) {
13581358
removeLine($config_dir.'/'.$configfile, 'ssl_protocols =');
13591359
}
1360+
if(version_compare($dovecot_version,2.2) >= 0) {
1361+
// Dovecot > 2.2 does not recognize !SSLv2 anymore on Debian 9
1362+
replaceLine($config_dir.'/'.$configfile, 'ssl_protocols = !SSLv2 !SSLv3', 'ssl_protocols = !SSLv3', 1, 0);
1363+
}
13601364
}
13611365

13621366
//* dovecot-lmtpd
@@ -2455,11 +2459,9 @@ public function install_ispconfig() {
24552459
$command = 'chown -R ispconfig:ispconfig '.$install_dir.'/interface';
24562460
caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
24572461

2458-
//* Chmod the files and directories in the acme dir with nginx installed
2459-
if($conf['nginx']['installed'] == true) {
2460-
$command = 'chmod -R 755 '.$install_dir.'/interface/acme';
2461-
caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
2462-
}
2462+
//* Chmod the files and directories in the acme dir
2463+
$command = 'chmod -R 755 '.$install_dir.'/interface/acme';
2464+
caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
24632465

24642466
//* chown the server files to the root user and group
24652467
$command = 'chown -R root:root '.$install_dir.'/server';

install/sql/incremental/upd_dev_collection.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ ALTER TABLE `dns_rr` CHANGE `type` `type` ENUM('A','AAAA','ALIAS','CAA','CNAME',
6060
ALTER TABLE `dns_rr` CHANGE `data` `data` TEXT NOT NULL;
6161
ALTER TABLE `web_database` CHANGE `database_quota` `database_quota` INT(11) NULL DEFAULT NULL;
6262
ALTER TABLE `web_domain` ADD `log_retention` INT NOT NULL DEFAULT '30' ;
63+
ALTER TABLE spamfilter_policy CHANGE spam_tag_level spam_tag_level DECIMAL(5,2) NULL DEFAULT NULL, CHANGE spam_tag2_level spam_tag2_level DECIMAL(5,2) NULL DEFAULT NULL, CHANGE spam_kill_level spam_kill_level DECIMAL(5,2) NULL DEFAULT NULL, CHANGE spam_dsn_cutoff_level spam_dsn_cutoff_level DECIMAL(5,2) NULL DEFAULT NULL, CHANGE spam_quarantine_cutoff_level spam_quarantine_cutoff_level DECIMAL(5,2) NULL DEFAULT NULL;

install/sql/ispconfig3.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,11 +1532,11 @@ CREATE TABLE `spamfilter_policy` (
15321532
`bad_header_quarantine_to` varchar(255) default NULL,
15331533
`clean_quarantine_to` varchar(255) default NULL,
15341534
`other_quarantine_to` varchar(255) default NULL,
1535-
`spam_tag_level` float default NULL,
1536-
`spam_tag2_level` float default NULL,
1537-
`spam_kill_level` float default NULL,
1538-
`spam_dsn_cutoff_level` float default NULL,
1539-
`spam_quarantine_cutoff_level` float default NULL,
1535+
`spam_tag_level` DECIMAL(5,2) default NULL,
1536+
`spam_tag2_level` DECIMAL(5,2) default NULL,
1537+
`spam_kill_level` DECIMAL(5,2) default NULL,
1538+
`spam_dsn_cutoff_level` DECIMAL(5,2) default NULL,
1539+
`spam_quarantine_cutoff_level` DECIMAL(5,2) default NULL,
15401540
`addr_extension_virus` varchar(64) default NULL,
15411541
`addr_extension_spam` varchar(64) default NULL,
15421542
`addr_extension_banned` varchar(64) default NULL,

install/tpl/debian_postfix.conf.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ relay_recipient_maps = mysql:{config_dir}/mysql-virtual_relayrecipientmaps.cf
2525
smtpd_sender_login_maps = proxy:mysql:{config_dir}/mysql-virtual_sender_login_maps.cf
2626
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $sender_bcc_maps $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $smtpd_sender_login_maps
2727
smtpd_helo_required = yes
28-
smtpd_helo_restrictions = permit_sasl_authenticated, permit_mynetworks, check_helo_access regexp:{config_dir}/helo_access, reject_invalid_hostname, reject_non_fqdn_hostname, check_helo_access regexp:{config_dir}/blacklist_helo
28+
smtpd_helo_restrictions = permit_sasl_authenticated, permit_mynetworks, check_helo_access regexp:{config_dir}/helo_access, reject_invalid_hostname, reject_non_fqdn_hostname, reject_invalid_helo_hostname, reject_unknown_helo_hostname, check_helo_access regexp:{config_dir}/blacklist_helo
2929
smtpd_sender_restrictions = check_sender_access regexp:{config_dir}/tag_as_originating.re {reject_slm}, permit_mynetworks, permit_sasl_authenticated, check_sender_access mysql:{config_dir}/mysql-virtual_sender.cf, check_sender_access regexp:{config_dir}/tag_as_foreign.re
3030
smtpd_client_restrictions = check_client_access mysql:{config_dir}/mysql-virtual_client.cf
3131
smtpd_client_message_rate_limit = 100

install/tpl/fedora_postfix.conf.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ relay_recipient_maps = mysql:{config_dir}/mysql-virtual_relayrecipientmaps.cf
2222
smtpd_sender_login_maps = proxy:mysql:{config_dir}/mysql-virtual_sender_login_maps.cf
2323
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $sender_bcc_maps $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $smtpd_sender_login_maps
2424
smtpd_helo_required = yes
25-
smtpd_helo_restrictions = permit_sasl_authenticated, permit_mynetworks, check_helo_access regexp:{config_dir}/helo_access, reject_invalid_hostname, reject_non_fqdn_hostname, check_helo_access regexp:{config_dir}/blacklist_helo
25+
smtpd_helo_restrictions = permit_sasl_authenticated, permit_mynetworks, check_helo_access regexp:{config_dir}/helo_access, reject_invalid_hostname, reject_non_fqdn_hostname, reject_invalid_helo_hostname, reject_unknown_helo_hostname, check_helo_access regexp:{config_dir}/blacklist_helo
2626
smtpd_sender_restrictions = check_sender_access regexp:{config_dir}/tag_as_originating.re {reject_slm}, permit_mynetworks, permit_sasl_authenticated, check_sender_access mysql:{config_dir}/mysql-virtual_sender.cf, check_sender_access regexp:{config_dir}/tag_as_foreign.re
2727
smtpd_client_restrictions = check_client_access mysql:{config_dir}/mysql-virtual_client.cf
2828
smtpd_client_message_rate_limit = 100

install/tpl/opensuse_postfix.conf.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ relay_recipient_maps = mysql:{config_dir}/mysql-virtual_relayrecipientmaps.cf
2424
smtpd_sender_login_maps = proxy:mysql:{config_dir}/mysql-virtual_sender_login_maps.cf
2525
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $sender_bcc_maps $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $smtpd_sender_login_maps
2626
smtpd_helo_required = yes
27-
smtpd_helo_restrictions = permit_sasl_authenticated, permit_mynetworks, check_helo_access regexp:{config_dir}/helo_access, reject_invalid_hostname, reject_non_fqdn_hostname, check_helo_access regexp:{config_dir}/blacklist_helo
27+
smtpd_helo_restrictions = permit_sasl_authenticated, permit_mynetworks, check_helo_access regexp:{config_dir}/helo_access, reject_invalid_hostname, reject_non_fqdn_hostname, reject_invalid_helo_hostname, reject_unknown_helo_hostname, check_helo_access regexp:{config_dir}/blacklist_helo
2828
smtpd_sender_restrictions = check_sender_access regexp:{config_dir}/tag_as_originating.re {reject_slm}, permit_mynetworks, permit_sasl_authenticated, check_sender_access mysql:{config_dir}/mysql-virtual_sender.cf, check_sender_access regexp:{config_dir}/tag_as_foreign.re
2929
smtpd_client_restrictions = check_client_access mysql:{config_dir}/mysql-virtual_client.cf
3030
smtpd_client_message_rate_limit = 100

install/update.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@
119119
if($path_parts['extension'] == 'php') {
120120
include_once $cmd_opt['autoinstall'];
121121
} elseif($path_parts['extension'] == 'ini') {
122-
$tmp = ini_to_array(file_get_contents('autoinstall.ini'));
122+
if(is_file('autoinstall.ini')) {
123+
$tmp = ini_to_array(file_get_contents('autoinstall.ini'));
124+
} else {
125+
$tmp = ini_to_array(file_get_contents($cmd_opt['autoinstall']));
126+
}
123127
if(!is_array($tmp['install'])) $tmp['install'] = array();
124128
if(!is_array($tmp['ssl_cert'])) $tmp['ssl_cert'] = array();
125129
if(!is_array($tmp['expert'])) $tmp['expert'] = array();

0 commit comments

Comments
 (0)