--- create-mailbox.php.original 2008-12-28 07:06:19.000000000 -0700 +++ create-mailbox.php 2009-01-01 14:16:47.000000000 -0700 @@ -129,18 +129,19 @@ } } - 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) @@ -275,6 +276,9 @@ */ $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); + if ($CONF['generate_password'] == "YES") { $tMessage .= " / $fPassword)
";