ISPConfig and VMail folders

Discussion in 'Installation/Configuration' started by guimnk, Oct 8, 2010.

  1. guimnk

    guimnk Member

    Hi all..

    I'm using roundcube with ISPConfig.

    ISPConfig dont create a Sent, Draft, Junk (in /var/vmail/domain/user) and Trash folders when I create a new mail account.

    How can I do to fix it?

    I'm trying to input this code in /var/ww/ispconfig/mail/mail_user_edit.php

    Code:
    $Sent   = "/var/vmail/".$app->db->quote($_POST['email_domain'])."/".$this->dataRecord['email']."/.Sent";
    $Drafts = "/var/vmail/".$app->db->quote($_POST['email_domain'])."/".$this->dataRecord['email']."/.Drafts";
    $Junk   = "/var/vmail/".$app->db->quote($_POST['email_domain'])."/".$this->dataRecord['email']."/.Junk";
    $Trash  = "/var/vmail/".$app->db->quote($_POST['email_domain'])."/".$this->dataRecord['email']."/.Trash";
    
    mkdir($Sent, 0755);
    mkdir($Drafts, 0755);
    mkdir($Junk, 0755);
    mkdir($Trash, 0755);
    
    chmod($Sent, "vmail");
    chmod($Drafts, "vmail");
    chmod($Junk, "vmail");
    chmod($Trash, "vmail");
    
    But the webserver user cant create that..
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    all newer ispconfig versions create these folders automatically. you should update ispconfig on your server to 3.0.3.
     

Share This Page