View previous topic :: View next topic |
Author |
Message |
zeromemory n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 24 Mar 2004 Posts: 19
|
Posted: Thu Mar 25, 2004 8:26 am Post subject: Postfix Virtual Mailhosting + Quotas? |
|
|
I've read the Virtual Mailhosting System with Postfix Guide and various other guides on the Internet. What I've noticed is that practically all the guides avoid the issue of quotas.
I was wondering if anyone knew of a method by which I could setup a quota for an entire domain and quotas for individual mail accounts under the domain.
For example, say I have a domain, domain.tld, and two virtual mail users, user1@domain.tld and user2@domain.tld. I would like to be able to setup a total mail quota for domain.tld (100 MB) and also be able to set individual quotas for user1 and user2 (20 MB and 50 MB, respectively). That way, I'll have 30 MB left to assign to new virtual mail accounts under domain.tld, if I choose to create them. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zeromemory n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 24 Mar 2004 Posts: 19
|
Posted: Sat Apr 03, 2004 11:58 pm Post subject: |
|
|
Anybody think filesystem quotas would work? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Chris W l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Ralph.jpg)
Joined: 25 Jun 2002 Posts: 972 Location: Brisbane, Australia
|
Posted: Sun Apr 04, 2004 10:16 am Post subject: |
|
|
Yes, I think they would.
Apply a quota to each user. Perhaps you could also put the users in a Linux group and apply an overall quota to the group. _________________ Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zeromemory n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 24 Mar 2004 Posts: 19
|
Posted: Sun Apr 04, 2004 6:56 pm Post subject: |
|
|
Another thing...
How would I set a quota for each of the virtual mail accounts? Since I'm using virtual mail accounts, the accounts aren't actually users on my system (they won't be listed in /etc/passwd), so how would I individually specify their quota? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Chris W l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Ralph.jpg)
Joined: 25 Jun 2002 Posts: 972 Location: Brisbane, Australia
|
Posted: Sun Apr 04, 2004 10:07 pm Post subject: |
|
|
Ahh, now that's a slightly different problem
I'll dig around and see if I can find a way. _________________ Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Chris W l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Ralph.jpg)
Joined: 25 Jun 2002 Posts: 972 Location: Brisbane, Australia
|
Posted: Sun Apr 04, 2004 10:37 pm Post subject: |
|
|
OK, from my reading it seems that OS quotas can be used if you use virtual_uid_maps or virtual_gid_maps to map the virtual maps to UID or GID that are used on the file system. To gain total control you'd need to make a UID for every virtual mailbox. These UID/GID need not appear in your passwd/group files but should not clash with entries that do. Not sure how postfix will respond if a write request is denied.
There's also a virtual_mailbox_limit , which should impose a limit on any single mailbox. See man virtual.
There are a couple of quota related items here, and particularly here, which provides a patch giving per-user soft-limits in a map table format. The patch gives configurable bounce messages. _________________ Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xming Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/136843842434f9d2d5b7f0.gif)
Joined: 02 Jul 2002 Posts: 441
|
Posted: Mon Apr 05, 2004 8:00 pm Post subject: |
|
|
give www.dbmail.org a try, it will save you some nightmares
xming |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zeromemory n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 24 Mar 2004 Posts: 19
|
Posted: Thu Apr 08, 2004 10:47 pm Post subject: |
|
|
Well, I looked at dbmail, and there seems to be a lack of documentation for it. Also, I would like to stick to more "standard" tools. I haven't heard of many people using dbmail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|