View Single Post
  #10  
Old 30th April 2006, 14:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

You would use something like this:

PHP Code:
// User-Mail-Datei anlegen, sonst evtl. Fehler bei Autoresponder
  
if(!$mod->system->server_conf["use_maildir"]){
    if(!
is_file("/var/spool/mail/".$user_username)){
      
$mod->log->phpcaselog(touch("/var/spool/mail/".$user_username), "create /var/spool/mail/".$user_username$this->FILE__LINE__);
      
$mod->log->caselog("chown $user_username:mail /var/spool/mail/$user_username &> /dev/null"$this->FILE__LINE__);
      
$mod->log->caselog("chmod 600 /var/spool/mail/$user_username"$this->FILE__LINE__);
    }
  } else {
    
exec("maildirmake ...");
  } 
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote