|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Adrian Zurek (adek
one.pl.eu.org)Date: Wed Apr 18 2001 - 12:07:05 CDT
On Wed, Apr 18, 2001 at 09:29:33AM +0200, Diego Zaccariotto wrote:
> Everything you need is in the VIRTUAL_README of the last postfix
> snapshot.
> Here is what I made:
<snip>
> *** Postfix ***
>
> main.cf:
> virtual_mailbox_base = /var/spool/vmail
> virtual_minimum_uid = 3000
> virtual_uid_maps = hash:/etc/postfix/vuid
> virtual_gid_maps = hash:/etc/postfix/vgid
> virtual_mailbox_maps = hash:/etc/postfix/vmailbox
>
> vmailbox:
>
> test1
virtual1.domain virtual1.domain/test1
> # this will put mail for test1
virtual1.domain in
> # /var/spool/vmail/virtual1.domain/test1
>
> vuid:
> test1
virtual1.domain 3000
> test2
virtual2.domain 3000
>
> vuid:
> test1
virtual1.domain 3000
> test2
virtual2.domain 3000
You could use my patch for postfix - this way virtual_uid_maps and
virtual_gid_maps are merged into one virtual_owner_maps
where you could specify something like this:
virtual_owner_maps = hash:/etc/postfix/vowner
vowner:
test1
virtual1.domain 3000:3000
test2
virtual2.domain 3000:3000
The second thing is that you could do something like this:
vowner:
virtual1.domain 3000:3000
virtual2.domain 3000:3000
this way all mailboxes for virtual1.domain have that UIDs and GIDs!
And if you want limits (quotas) for these mailboxes you can do also:
virtual_mailbox_limit_maps = hash:/etc/postfix/vlimit
vlimit:
virtual1.domain 2500000
test3
virtual1.domain 2000000
virtual2.domain 3000000
all mailboxes except test3 on virtual1.domain have limits to 2500000,
test3 on virtual1.domain has 2000000 and all mailboxes on virtual2.domain
have 3000000.
Greetings,
PS: patch is on postfix-users archives - mail from April 17 with subject:
"second version of patch for virtual delivery agent" or you can get it from my
ftp://guru.one.pl.eu.org/pub/linux/postfix-mypatches/snapshot-20010329_virtual.patch.gz
--
_________ ___. ____ adrian zurek
____\ \ _______-- !_/ / adek
one.pl.eu.org
/ \ \ \\ _____/ /-------------------------------------------.
\ -- \ \ / ___)____ < 18:43:43 up 7 days, 15:35, 2 users |
\____/\\_____/_______ / \\ load average: 1.06, 1.05, 1.00 |
`--------\/---
guru----\/__/\____\------------------------------------------'
--
_________ ___. ____ adrian zurek
____\ \ _______-- !_/ / adek
one.pl.eu.org
/ \ \ \\ _____/ /-------------------------------------------.
\ -- \ \ / ___)____ < 19:05:25 up 7 days, 15:56, 2 users |
\____/\\_____/_______ / \\ load average: 1.01, 1.04, 1.00 |
`--------\/---
guru----\/__/\____\------------------------------------------'
-
To unsubscribe, send mail to majordomo
postfix.org with content
(not subject): unsubscribe postfix-users
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]