@@ -116,7 +116,7 @@ public function find_installed_apps() {
116116 if (is_installed ('mailman ' )) $ conf ['mailman ' ]['installed ' ] = true ;
117117 if (is_installed ('apache ' ) || is_installed ('apache2 ' ) || is_installed ('httpd ' )) $ conf ['apache ' ]['installed ' ] = true ;
118118 if (is_installed ('getmail ' )) $ conf ['getmail ' ]['installed ' ] = true ;
119- if (is_installed ('courierlogger ' )) $ conf ['courier ' ]['installed ' ] = true ;
119+ if (is_installed ('courierlogger ' )) $ conf ['courier ' ]['installed ' ] = true ;
120120 if (is_installed ('dovecot ' )) $ conf ['dovecot ' ]['installed ' ] = true ;
121121 if (is_installed ('saslsauthd ' )) $ conf ['saslauthd ' ]['installed ' ] = true ;
122122 if (is_installed ('amavisd-new ' )) $ conf ['amavis ' ]['installed ' ] = true ;
@@ -578,12 +578,6 @@ public function configure_postfix($options = '') {
578578 'transport_maps = proxy:mysql: ' .$ config_dir .'/mysql-virtual_transports.cf ' ,
579579 'relay_domains = mysql: ' .$ config_dir .'/mysql-virtual_relaydomains.cf ' ,
580580 'relay_recipient_maps = mysql: ' .$ config_dir .'/mysql-virtual_relayrecipientmaps.cf ' ,
581- 'virtual_create_maildirsize = yes ' ,
582- 'virtual_maildir_extended = yes ' ,
583- 'virtual_mailbox_limit_maps = proxy:mysql: ' .$ config_dir .'/mysql-virtual_mailbox_limit_maps.cf ' ,
584- 'virtual_mailbox_limit_override = yes ' ,
585- 'virtual_maildir_limit_message = "The user you are trying to reach is over quota." ' ,
586- 'virtual_overquota_bounce = yes ' ,
587581 'proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps ' ,
588582 'smtpd_sender_restrictions = check_sender_access mysql: ' .$ config_dir .'/mysql-virtual_sender.cf ' ,
589583 'smtpd_client_restrictions = check_client_access mysql: ' .$ config_dir .'/mysql-virtual_client.cf ' ,
@@ -622,7 +616,7 @@ public function configure_postfix($options = '') {
622616 if (!stristr ($ options ,'dont-create-certs ' )) {
623617 //* Create the SSL certificate
624618 $ command = 'cd ' .$ config_dir .'; '
625- .'openssl req -new -outform PEM -out smtpd.cert -newkey rsa:2048 -nodes -keyout smtpd.key -keyform PEM -days 365 -x509 ' ;
619+ .'openssl req -new -outform PEM -out smtpd.cert -newkey rsa:2048 -nodes -keyout smtpd.key -keyform PEM -days 3650 -x509 ' ;
626620 exec ($ command );
627621
628622 $ command = 'chmod o= ' .$ config_dir .'/smtpd.key ' ;
@@ -1103,7 +1097,8 @@ public function configure_apache() {
11031097 // Check the awsatst script
11041098 if (!is_dir ('/usr/share/awstats/tools ' )) exec ('mkdir -p /usr/share/awstats/tools ' );
11051099 if (!file_exists ('/usr/share/awstats/tools/awstats_buildstaticpages.pl ' ) && file_exists ('/usr/share/doc/awstats/examples/awstats_buildstaticpages.pl ' )) symlink ('/usr/share/doc/awstats/examples/awstats_buildstaticpages.pl ' ,'/usr/share/awstats/tools/awstats_buildstaticpages.pl ' );
1106-
1100+ if (file_exists ('/etc/awstats/awstats.conf.local ' )) replaceLine ('/etc/awstats/awstats.conf.local ' ,'LogFormat=4 ' ,'LogFormat=1 ' ,0 ,1 );
1101+
11071102 //* add a sshusers group
11081103 $ command = 'groupadd sshusers ' ;
11091104 if (!is_group ('sshusers ' )) caselog ($ command .' &> /dev/null 2> /dev/null ' , __FILE__ , __LINE__ , "EXECUTED: $ command " , "Failed to execute the command $ command " );
0 commit comments