[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-plugins
Subject:    [SM-PLUGINS] tmda-tools; virtual host help
From:       "Alan Murrell" <lists () murrell ! ca>
Date:       2006-11-14 6:09:08
Message-ID: 1589.10.253.1.103.1163484548.squirrel () mail ! van ! murrell ! ca
[Download RAW message or body]

Hi,

I am running a system with virtual users, but they have their own home
directories. I had a similar setup years ago, and am doing something
similar.

User login names for email is the full email address while the home
directory is called after the first part of the email address.  For
example, the user 'alan' would have anemail address (and email login) of
<alan@murrell-van.local>, and his home directory would be '/home/alan'

My 'tmdatools_config.php' looks like this:

--- START ---
<?php

 global $plugin_tmdatools_homedir;
 global $plugin_tmdatools_tmdadir;
 global $plugin_tmdatools_tmdasettings;
 global $plugin_tmdatools_tmdaevidence;
 global $plugin_tmdatools_sendmail_path;
 global $plugin_tmdatools_editfiles;

 $uinfo = split ('@', $_SESSION['username']);
 $user = $uinfo[0]; $domain = $uinfo[1];

 $plugin_tmdatools_homedir = "/home/";
 $plugin_tmdatools_tmdadir = "/usr/";
 $plugin_tmdatools_tmdasettings["PENDING_BLACKLIST_APPEND"] = 1;
 $plugin_tmdatools_tmdasettings["PENDING_WHITELIST_APPEND"] = 1;
 $plugin_tmdatools_tmdaevidence = "$plugin_tmdatools_homedir$user/.tmda";
 $plugin_tmdatools_sendmail_path = $plugin_tmdatools_tmdadir .
"bin/tmda-sendmail";

 $plugin_tmdatools_editfiles[0]["title"] = "Whitelist";
 $plugin_tmdatools_editfiles[0]["fname"] =
"$plugin_tmdatools_homedir$user/.tmda/lists/whitelist";

 $plugin_tmdatools_editfiles[1]["title"] = "Blacklist";
 $plugin_tmdatools_editfiles[1]["fname"] =
"$plugin_tmdatools_homedir$user/.tmda/lists/blacklist";

 $plugin_tmdatools_editfiles[2]["title"] = "Confirmed Senders";
 $plugin_tmdatools_editfiles[2]["fname"] =
"$plugin_tmdatools_homedir$user/.tmda/lists/confirmed";
--- END ---

The only real additions/changes are:

  1.) the '$uinfo' variable setup
  2.) the '$user' variable setup
  3.) change all references of '~/.tmda' to
'$plugin_tmdatools_homedir$user/.tmda'

When I log into Squirrelmail as <alan@murrell-van.local>, TMDA Tools
*should* set 'alan' as the $user variable and set the
'$plugin_tmdatools_homedir' variable to '/home/alan'

This does not seem to happen, however.  If I try to edit one of the files,
TMDA Tools is looking in
'/home/alan@murrell-van.local/.tmda/lists/...',which of course does not
exist.

Any ideas?

Thanks, in advance.

-Alan Murrell


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
--
squirrelmail-plugins mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-plugins@lists.sourceforge.net
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.plugins
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3931
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic