===============================
FILE: config/config_local.php
==========CODE=================
if ( $_POST['just_logged_in'] == 1){
        $username = $_POST['login_username'];
        list($user,$domain)=explode("@", $username);
        sqsession_is_active();
        sqsession_register($username, 'username');
}else{
        sqsession_is_active();
        sqgetGlobalVar('username', $username, SQ_INORDER);
        list($user,$domain)=explode("@", $username);
}

$data_dir = "/home/virtual/$domain/home/$user/squirrelmail";
$attachment_dir = "/home/virtual/$domain/home/$user/squirrelmail/attachments/";
==========END CODE=================



Any big issues?

Seems fine to me.

The trouble I have now is getting new accounts to copy "/squirrelmail" into their home directories from the /etc/skel directory with owner:group apache:apache . Still stuck on that one.

You need a suid script to do it from SM. It's better to include this as part of whatever scripts you run when you create a new mail user on your system and don't open up a security hole in SM.


 - Paul


------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND -- squirrelmail-users mailing list List Address: [EMAIL PROTECTED] List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to