tbrehm
2007-06-29 c58e3f77c9c019ea1f47705bee01d63055df85c5
install/lib/installer_base.lib.php
@@ -104,7 +104,7 @@
      Create postfix configuration files
   */
   
   function configure_postfix() {
   function configure_postfix($options = '';) {
      global $conf;
      
      if(!is_dir($conf["dist_postfix_config_dir"])) $this->error("The postfix configuration directory ".$conf["dist_postfix_config_dir"]." does not exist.");
@@ -248,13 +248,14 @@
  flags=R user=vmail argv=/usr/bin/maildrop -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender}
      
      */
      if(stristr($options,'dont-create-certs') {
         // Create the SSL certificate
         $command = "cd ".$conf["dist_postfix_config_dir"]."; openssl req -new -outform PEM -out smtpd.cert -newkey rsa:2048 -nodes -keyout smtpd.key -keyform PEM -days 365 -x509";
         exec($command);
      
      // Create the SSL certificate
      $command = "cd ".$conf["dist_postfix_config_dir"]."; openssl req -new -outform PEM -out smtpd.cert -newkey rsa:2048 -nodes -keyout smtpd.key -keyform PEM -days 365 -x509";
      exec($command);
      $command = "chmod o= ".$conf["dist_postfix_config_dir"]."/smtpd.key";
      caselog($command." &> /dev/null", __FILE__, __LINE__,"EXECUTED: ".$command,"Failed to execute the command ".$command);
         $command = "chmod o= ".$conf["dist_postfix_config_dir"]."/smtpd.key";
         caselog($command." &> /dev/null", __FILE__, __LINE__,"EXECUTED: ".$command,"Failed to execute the command ".$command);
      }
      
      /*
      We have to change the permissions of the courier authdaemon directory