i thought this was fixed in the latest version, but I have the latest version 1.4.4-4 but still my clients are complaining that when sending mail it displays it as from user@servername.com instead of user@usersdomain.com. so when the recipient replies to the mail, it gets sent to user@servername.com instead of user@usersdomain.com
Is anyone else still having this problem and if so, how do I fix it?
Squirrelmail from domain
Ahhh! ok... the file /usr/share/squirrelmail/config/config.php is a symbolic link to /etc/squirrelmail/config.php... the config.php.rpmsave is in /etc/squirrelmail 
although... the rpmsave is the exact same file as config.php...
To fix the problem add the following to config_local.php
preg_match("/^(http:\/\/)?([^\/]+)/i", $_SERVER["HTTP_HOST"],$matches);
$host = $matches[2];
preg_match("/[^\.\/]+\.[^\.\/]+$/", $host, $matches);
$domain = $matches[0];

although... the rpmsave is the exact same file as config.php...
To fix the problem add the following to config_local.php
preg_match("/^(http:\/\/)?([^\/]+)/i", $_SERVER["HTTP_HOST"],$matches);
$host = $matches[2];
preg_match("/[^\.\/]+\.[^\.\/]+$/", $host, $matches);
$domain = $matches[0];