--- create-mailbox.php.original 2010-08-08 08:41:12.000000000 -0600 +++ create-mailbox.php 2010-08-08 12:55:46.000000000 -0600 @@ -130,19 +130,19 @@ $pCreate_mailbox_password_text = $PALANG['pCreate_mailbox_password_text_error']; } } - - if ($CONF['quota'] == "YES") - { - if (!check_quota ($fQuota, $fDomain)) - { - $error = 1; - $tUsername = escape_string ($_POST['fUsername']); - $tName = $fName; - $tQuota = $fQuota; - $tDomain = $fDomain; - $pCreate_mailbox_quota_text = $PALANG['pCreate_mailbox_quota_text_error']; - } - } +// Next section is commented out by Gary V, mr88talent at yahoo.com. This allows admins to override max quota. +// if ($CONF['quota'] == "YES") +// { +// if (!check_quota ($fQuota, $fDomain)) +// { +// $error = 1; +// $tUsername = escape_string ($_POST['fUsername']); +// $tName = $fName; +// $tQuota = $fQuota; +// $tDomain = $fDomain; +// $pCreate_mailbox_quota_text = $PALANG['pCreate_mailbox_quota_text_error']; +// } +// } $result = db_query ("SELECT * FROM $table_alias WHERE address='$fUsername'"); if ($result['rows'] == 1) @@ -229,6 +229,9 @@ db_log ($SESSID_USERNAME, $fDomain, 'create_mailbox', "$fUsername"); $tDomain = $fDomain; + // mailbox postcreation modification by Gary V, mr88talent at yahoo dot com + system("sudo /usr/sbin/mail_profile.sh ".$fDomain." ".strtolower($_POST['fUsername'])." ". $quota." ".$fName); + $tQuota = $CONF['maxquota']; if ($fMail == "on")