tbrehm
2013-08-22 ec571625a4dee99acff1a2cef75a48aa57df82cb
install/dist/lib/gentoo.lib.php
@@ -156,6 +156,19 @@
         $command = 'mkdir '.$cf['vmail_mailbox_base'].'/mailfilters';
         caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
      }
      //* postfix-dkim
      $full_file_name=$config_dir.'/tag_as_originating.re';
      if(is_file($full_file_name)) {
         copy($full_file_name, $config_dir.$configfile.'~');
           }
           $this->write_config_file($full_file_name,'/^/ FILTER amavis:[127.0.0.1]:10026');
           $full_file_name=$config_dir.'/tag_as_foreign.re';
           if(is_file($full_file_name)) {
                   copy($full_file_name, $config_dir.$configfile.'~');
           }
      $this->write_config_file($full_file_name,'/^/ FILTER amavis:[127.0.0.1]:10024');
      
      //* Chmod and chown the .mailfilter file
      $command = 'chown -R '.$cf['vmail_username'].':'.$cf['vmail_groupname'].' '.$cf['vmail_mailbox_base'].'/.mailfilter';