Better Confixx Webmail with SquirrelMail or RoundCube
 
This how-to explains the replacement of the slow confixx standard webmail interface.

SquirrelMail
SquirrelMail-Confixx integration works as follows:
First, grab the newest version of SquirrelMail from http://www.squirrelmail.org/.
Extract it and install it to a directory with a virtual directory of apache (follow the installation steps in the README file).
Run config/conf.pl where you can configure SM. After, check squirrelmail-1.4.10a/src/configtest.php in your browser, to make sure everything works. You should see two lines there that say something like this:
IMAP server ready (* OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS STARTTLS AUTH=LOGIN] localhost IMAP4rev1 2004.352 at Tue, 31 Jul 2007 22:27:59 +0200 (CEST))
  Capabilities: * CAPABILITY IMAP4REV1 LITERAL+ IDLE NAMESPACE MAILBOX-REFERRALS BINARY UNSELECT SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND SASL-IR LOGIN-REFERRALS STARTTLS AUTH=LOGIN

If you can see SORT and THREAD in there (like in the example above), server side sorting of your IMAP server is enabled. You should go back to config.pl and reconfigure both: Allow server thread sort and Allow server-side sorting under the menu 4. General Options. Set both of them to true to raise user performance.

To display the e-mail addresses configured in confixx in the from field, insert the following two pieces of code into the file src/compose.php.

Go to where it says /* display select list for identities */. There is an if-clause under this comment. Insert the following code below this if clause!
This is line number 1082 in SquirrelMail 1.4.10a, and should be around 1148 in SquirrelMail 1.4.21.
mysql_connect("localhost","USER","PASSWORD");
mysql_select_db("confixx");

// Confixx Version pre 3.3
// $sql_mail = "SELECT * FROM email WHERE pop3='".$_SESSION['username']."'";
// Confixx Version 3.3
$sql_mail = "SELECT email.prefix, email.domain, email_forward.pop3 FROM confixx.email, confixx.email_forward WHERE email.ident=email_forward.email_ident AND pop3='".$_SESSION['username']."'";
$result_mail = mysql_query($sql_mail);

echo '  <tr>' . "n" .
  html_tag( 'td', '', 'right', $color[4], 'width="10%"' ) .
  'Von:</td>' . "n" .
  html_tag( 'td', '', 'left', $color[4], 'width="90%"' ) .
  '<select type="text" name="send_from" onfocus="alreadyFocused=true;"><br />n';
while($data_mail = mysql_fetch_array($result_mail)) {
$data_mail['prefix'] = str_replace("*","catchall",$data_mail['prefix']);
if($_POST['send_from'] == $data_mail['prefix'].'@'.$data_mail['domain']) {
$from_selected = " selected";
}
else {
$from_selected = "";
}
echo '<option'.$from_selected.'>'.$data_mail['prefix'].'@'.$data_mail['domain'].'</option>';
}
echo '</select>'.
  '   </td>' . "n" .
  '  </tr>' . "n";

Remember to change the user/password of the first line to a user that can read your confixx db! If you don't know such a user, use root for testing and create a user for this purpose after (should only have read permission on the confixx db for better security).
Now look for the following code:
$reply_to = '';
$from_mail = $idents[$identity]['email_address'];
$full_name = $idents[$identity]['full_name'];
$reply_to = $idents[$identity]['reply_to'];
if (!$from_mail) {
    $from_mail = "$popuser@$domain";
}

Put the following line under this code:
$from_mail = $_POST['send_from'];

This is around line 1600 after the above modifications.
See the attached file "compose.php.txt" from SquirrelMail 1.4.10a with the above code inserted.

RoundCube
I have heard from many guys that RoundCube (http://roundcube.net/) is an upcoming webmail with a great look and nice ajax features. I have tested it and it seemed to work well so far.
Below are 2 interesting links of RoundCube-confixx-integration how-to's:
http://forum.webhostlist.de/forum/3-x-server-konfiguration/82121-roundcube-als-webmail-anleitung.html (german)
http://trac.roundcube.net/trac.cgi/ticket/1484469 (english)
 
admin / Dec 08, 2006
 
Files
 
compose.php.txt: Edited SquirrelMail file src/compose.php with Confixx integration. The added code displays E-Mail addresses configured in confixx in the From-field of SquirrelMail.
 
   
 
 
Login: 
Pass: 
 
 
     
     
2004 - 2019 / lookass.ch
makememad@lookass.ch