|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: skaya
enix.orgDate: Mon May 07 2001 - 06:55:09 CDT
>> - Every virtual domain has its own directory
>> - Every virtual user has its own directory within the virtual-domain
>> directory
>> /home/imap/domains/example.com
>> /home/imap/domains/example.com/JohnDoe
>> /home/imap/domains/example.com/FooBar
>> /home/imap/domains/example.net
>> /home/imap/domains/example.net/JohnDoe
>> /home/imap/domains/example.net/FooBar
>>
>> Courier impad runs fine now, but how do I tell postfix to deliver the
>> mails to the virtual users directories using maildir format?
> It's a bit easy : just have a little look at VIRTUAL_README, it's just
> design for such work...
if you want to use MySQL with the virtual delivery (that may be the
case if your users login/password/... are stored into a MySQL database),
please note that you will have to setup at least 3 different MySQL lookups :
- one for the mailbox ( mapping user
domain.net => /home/imap/domain.net/user )
- one for the UID of the mailbox
- one for the GID of the mailbox
however, if UID and GID are all the same, or if they aren't stored in the
database, consider using a flat file or a pcre map (these lookups cost far
less), holding a "constant" or "per-domain" lookup.
suggestion : is there a way to do a "if-file-exists" map lookup, that means
lookup(foobar
dom.org)="/home/imap/dom.org/foobar" if this file (or directory)
exists, and "nothing" if this file (or directory) does not exist ? checking
for file existence looks less expensive than connecting to MySQL...
I'll be happy to hear some comments about that.
Jerome Petazzoni <skaya
enix.org>
-
To unsubscribe, send mail to majordomo
postfix.org with content
(not subject): unsubscribe postfix-users
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]