Till Brehm
2016-06-23 f496e926e7aae5459acb93714dfc77dac64e0e73
install/dist/lib/centos_base.lib.php
@@ -33,7 +33,7 @@
   protected $clamav_socket = '/tmp/clamd.socket';
   
   public function configure_amavis() {
      global $conf;
      global $conf, $dist;
      // amavisd user config file
      $configfile = 'fedora_amavisd_conf';
@@ -50,6 +50,12 @@
      $content = str_replace('/var/spool/amavisd/clamd.sock', $this->clamav_socket, $content);
      wf($conf["amavis"]["config_dir"].'/amavisd.conf', $content);
      chmod($conf['amavis']['config_dir'].'/amavisd.conf', 0640);
      // for CentOS 7.2 only
      if($dist['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