Ok here are the steps i did.
1) Backup up /usr/share/psa-horde to /usr/share/psa-horde-BK
2) Make clean dir for /usr/share/psa-horde
3) Make index.php in that folder
for now make it say "Coming Soon"
4) Download latest version of squirrelmail located at
http://prdownloads.sourceforge.net/squirrelmail/squirrelmail-1.4.6.tar.gz
5) Once you have downloaded the file put it in /usr/share/psa-horde
Untar it
then rename the outputted folder to sq
then chown -R root:root sq
then cd sq/
then chown -R apache:apache data
then cd config
then run perl config.pl and set the configuration.
6) Now customize some of the settings so users don't end up with each others preferences.
a) edit config/config.php
change the line below
$domain = "example.com";
TO
$domain = EREGI_REPLACE("www.","",EREGI_REPLACE("webmail.","", $_SERVER['SERVER_NAME']));
b) change functions/file_prefs.php
there are 3 functions that need to be updated.
look through the file for
"$username.pref"
and change it to
$username . "_" . $domain . ".pref"
Also in each function you find that in make sure you also add this line at the top of the function like this
function cachePrefValues($data_dir, $username) {
global $domain;
Once your done that go visit webmail.yourdomain.com/sq/
log in with your username and pass and test that it works.
if it does work as you want it to then go edit
/usr/share/psa-horde/index.php and add this as the first line.
<? header("location: sq/") ?>
Let me know how it goes... i would like to hear your feedback on this process.
Then once SW-SOFT issues a fix for HORDE 3.0.5 then we can switch back... (WHICH IS WHY ITS GOOD TO BACK UP THE DIR)