[imp] Re: virtual users setup

Mohamed Eldesoky m.eldesoky at tedata.net
Thu Mar 6 20:38:03 PST 2003


This way he will need virtual hosting, which he doesn't want to do.
Well, you can get the username  ( username at server.tld)
use regex to strip it to username and server.tld !!
Assign each value its variable.


Regards
Mohamed Eldesoky

On Tuesday 04 March 2003 5:16 am, eculp at encontacto.net wrote:
> Quoting Steven Premeau <premeau at uwp.edu>:
>  | >This belongs on the IMP mailing list.
>  |
>  | My apologizes, I replied to thread in the Gname archives.
>  |
>  | >Why don't you just use a server list?
>
> You could try something like the following in imp/servers.php I would
> guess that this will give you what you want.  If not it should be easy
> to tweak.  (INBOX. is courier specific for example.)
> -------------------------------------------------
> $vdomain = strtolower($_SERVER['HTTP_HOST']);
>
> $servers['imap'] = array(
>     'name' => '$vdomain',
>     'server' => $vdomain,
>     'protocol' => 'imap',
>     'port' => 143,
>     'folders' => 'INBOX.',
>     'namespace' => '',
>     'maildomain' => $vdomain,
>     'smtphost' => $vdomain,
>     'realm' => '$vdomain',
>     'preferred' => $vdomain,
>     'quota' => array(
>         'driver' => 'courier',
>         'params' => array(
>             'login' => '',
>             'password' => ''
>         )
>     ),
> //    'acl' => false,
>     'dotfiles' => false,
>     'hierarchies' => array());
> ---------------------------------------
> Good luck,
>
> ed
>
>  | Because I don't want the list of domains you can read email from to be
>  | "public".  I want to tell the appropriate students and faculty members
>  | without displaying a choice to the "uninitiated"  (The majority of our
>  | campus population doesn't need the option, I don't want to get into the
>  | potential battle of "Why do you provide webmail access for foo.uwp.edu,
>  | and not my system?")
>  |
>  | I think my questions have global relevance.  The example vinfo hook only
>  | talks about reworking the user name for preferences, it doesn't show an
>  | example of monkeying with the imap login name or any of the other
>  | parameters.  If we knew what user and mail server variables we had
>  | access to in the vinfo hook, it would be helpful.
>  |
>  | Steve.
>  |
>  | --
>  | Steven Premeau, Network Manager      premeau at uwp.edu           (262)
>  | 595-2005
>  | Computer and Network Services              University of Wisconsin -
>  | Parkside
>  | ------------------------------------------------------------------------
>  |----- "A car is more costly, complex, and dangerous than any word
>  | processor.  Yet you don't find a thousand page operating manual, nor
>  | must you check with a friend to learn how to close the window ..."
>  |                                        - Cliff Stoll in "Silicon Snake
>  | Oil"
>  |
>  |
>  |
>  |
>  |
>  | --
>  | IMP mailing list
>  | Frequently Asked Questions: http://horde.org/faq/
>  | To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>
> --
>
>
> -------------------------------------------------

-- 
Person who say it cannot be done should not interrupt person doing it.  
--Chinese Proverb 


More information about the imp mailing list