Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix Virtual Mailhosting + Quotas?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
zeromemory
n00b
n00b


Joined: 24 Mar 2004
Posts: 19

PostPosted: Thu Mar 25, 2004 8:26 am    Post subject: Postfix Virtual Mailhosting + Quotas? Reply with quote

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
View user's profile Send private message
zeromemory
n00b
n00b


Joined: 24 Mar 2004
Posts: 19

PostPosted: Sat Apr 03, 2004 11:58 pm    Post subject: Reply with quote

Anybody think filesystem quotas would work?
Back to top
View user's profile Send private message
Chris W
l33t
l33t


Joined: 25 Jun 2002
Posts: 972
Location: Brisbane, Australia

PostPosted: Sun Apr 04, 2004 10:16 am    Post subject: Reply with quote

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
View user's profile Send private message
zeromemory
n00b
n00b


Joined: 24 Mar 2004
Posts: 19

PostPosted: Sun Apr 04, 2004 6:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Chris W
l33t
l33t


Joined: 25 Jun 2002
Posts: 972
Location: Brisbane, Australia

PostPosted: Sun Apr 04, 2004 10:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Chris W
l33t
l33t


Joined: 25 Jun 2002
Posts: 972
Location: Brisbane, Australia

PostPosted: Sun Apr 04, 2004 10:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
xming
Guru
Guru


Joined: 02 Jul 2002
Posts: 441

PostPosted: Mon Apr 05, 2004 8:00 pm    Post subject: Reply with quote

give www.dbmail.org a try, it will save you some nightmares

xming
Back to top
View user's profile Send private message
zeromemory
n00b
n00b


Joined: 24 Mar 2004
Posts: 19

PostPosted: Thu Apr 08, 2004 10:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum