| | |
| | | flags=R user=vmail argv=/usr/bin/maildrop -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender} |
| | | |
| | | */ |
| | | if(stristr($options,'dont-create-certs')) { |
| | | 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); |
| | |
| | | // Copy the ISPConfig vhost for the controlpanel |
| | | copy('tpl/apache_ispconfig.vhost.master',$conf["dist_apache_vhost_conf_dir"].'/ispconfig.vhost'); |
| | | // and create the symlink |
| | | exec('ln -s '.$conf["dist_apache_vhost_conf_dir"].'/ispconfig.vhost '.$conf["dist_apache_vhost_conf_enabled_dir"].'/ispconfig.vhost'); |
| | | if(!is_link($conf["dist_apache_vhost_conf_enabled_dir"].'/ispconfig.vhost')) { |
| | | exec('ln -s '.$conf["dist_apache_vhost_conf_dir"].'/ispconfig.vhost '.$conf["dist_apache_vhost_conf_enabled_dir"].'/ispconfig.vhost'); |
| | | } |
| | | |
| | | } |
| | | |