Package: squirrelmail
Version: 2:1.4.15-4+lenny2
Severity: wishlist

    I usually have various domains in a same mailserver and I use to
have a "webmail.domain-name.org" DNS entry for each of them. I also
use to configure all these DNS entries in a same Apache's VirtualHost
(using ServerAlias) and then I can access the same instance of
SquirrelMail, under different server names (webmail.example1.org,
webmail.example2.org, etc.), but sharing the same configuration and
same VirtualHost in Apache.

    In this scenario, I usually need to add specific domain
configurations in SquirrelMail like changing the $org_name,
$org_title, $org_logo, $plugins, etc. and to be able to do that I
needed to patch the default "/etc/squirrelmail/config.php" to load a
new configuration file, based on the PHP's variable
$_SERVER['SERVER_NAME']. This is a very useful feature for me and that
I think could be added in the SquirrelMail default package.


   I'm running Debian GNU/Linux 5.0 (Lenny) and Kernel 2.6.26-2-686.


-- 
Atenciosamente,

Arthur Furlan
arthur.fur...@gmail.com
--- config.php	2009-07-08 09:38:07.000000000 -0300
+++ config-patched.php	2009-07-08 09:39:46.000000000 -0300
@@ -219,3 +219,7 @@
 $config_location_base     = '';
 
 @include SM_PATH . 'config/config_local.php';
+
+// specific domain configurations
+$config_domain = SM_PATH . "config/config_local-{$_SERVER['SERVER_NAME']}.php";
+...@include $config_domain;

Reply via email to