Till Brehm
2016-06-22 2b3dfac5e54e56fa05f98cb00d1df42110d6b896
install/dist/lib/fedora.lib.php
@@ -89,6 +89,9 @@
      //* mysql-virtual_relayrecipientmaps.cf
      $this->process_postfix_config('mysql-virtual_relayrecipientmaps.cf');
      //* mysql-virtual_outgoing_bcc.cf
      $this->process_postfix_config('mysql-virtual_outgoing_bcc.cf');
      //* mysql-virtual_policy_greylist.cf
      $this->process_postfix_config('mysql-virtual_policy_greylist.cf');
@@ -179,6 +182,7 @@
      //if(!is_file('/var/lib/mailman/data/aliases')) touch('/var/lib/mailman/data/aliases');
      if(is_file('/var/lib/mailman/data/aliases')) unlink('/var/lib/mailman/data/aliases');
      if(!is_link('/var/lib/mailman/data/aliases')) symlink('/etc/mailman/aliases', '/var/lib/mailman/data/aliases');
      if(!is_file('/etc/mailman/aliases')) touch('/etc/mailman/aliases');
      exec('postalias /var/lib/mailman/data/aliases');
      if(!is_file('/etc/mailman/virtual-mailman')) touch('/etc/mailman/virtual-mailman');
      exec('postmap /etc/mailman/virtual-mailman');
@@ -491,6 +495,13 @@
      $content = str_replace('{hostname}', $conf['hostname'], $content);
      wf($conf["amavis"]["config_dir"].'/amavisd.conf', $content);
      chmod($conf['amavis']['config_dir'].'/amavisd.conf', 0640);
      // for CentOS 7.2 only
      $distname = get_distname();
      if($distname['confid'] == 'centos72') {
         chmod($conf['amavis']['config_dir'].'/amavisd.conf', 0750);
         chgrp($conf['amavis']['config_dir'].'/amavisd.conf', 'amavis');
      }
      // Adding the amavisd commands to the postfix configuration