Linux / UNIX Tech Support Forum
This is a discussion on Postfix User Mailbox Quota within the Mail Servers forums, part of the Mastering Servers category; I have been doing some research on implementing a user quota on a production mail server. It seems like this ...
|
|||||||
| Mail Servers Discussion on Postfix/Sendmail Mail servers and related program such as IMAP/POP3, Anti-Spam technologies. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I have been doing some research on implementing a user quota on a production mail server. It seems like this is a feature that is missing in postfix, and in order to do so, one must compile the program with an external plugin. Can anyone confirm or deny this?
|
| Sponsored Links | ||
|
|
|
||||
|
Are you talking about disk quota or mailbox size or outgoing / incoming email quota (like only allow 200emails per day)?
Almost all of them can be implemented in postfix. but we need more info..
__________________
Vivek Gite Linux Evangelist |
|
|||
|
Sorry for not being more clear - I'm referring to actual disk quota. I'd like to set a 300mb limit on all users, but have the ability to change the limit of an individual user on the fly.
|
|
||||
|
For virtual email box use:
Code:
virtual_mailbox_limit = size_in_bytes Code:
mailbox_size_limit = size_in_bytes
__________________
Vivek Gite Linux Evangelist |
|
|||
|
Thanks for getting back to me Vivek. I'm still a rookie at this whole unix admin thing - but I subscribe to your mailing list and find it very informative.
As it turns out, the main.cf file already has those limits set: message_size_limit = 20240000 virtual_mailbox_limit = 30480000 mailbox_size_limit = 30480000 However, they're not being enforced, as I have several accounts that are far above quota. Any thoughts? |
|
||||
|
Are you using any other external command that are executed by postfix local delivery agent? Also, you need to configure IMAP or POP3 server such as dovecot. For e.g. following line must exists to work it correctly:
Code:
virtual_mailbox_limit_inbox = yes Code:
mailbox_size_limit = 51200000 message_size_limit = 10240000 virtual_mailbox_base = /nas/mailstorage/virtual virtual_mailbox_domains = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_domains_maps.cf virtual_mailbox_limit = 51200000 virtual_mailbox_limit_inbox = yes virtual_mailbox_limit_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_limit_maps.cf virtual_mailbox_limit_override = yes virtual_mailbox_lock = fcntl, dotlock virtual_mailbox_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf
__________________
Vivek Gite Linux Evangelist |
|
||||
|
Oh, if you are not using mysql as backend, then you need something as follows:
Code:
# disk quotas config per mailbox virtual_mailbox_limit_maps = hash:/etc/postfix/vquota virtual_mailbox_limit_override = yes # A maximum limit of a mailbox virtual_mailbox_limit = 100000000 # Limits only INBOX part for IMAP virtual_mailbox_limit_inbox = yes Code:
# 2048000 bytes limit user1@domain.com 2048000 user2@domain.com 2048000 # 5192000 bytes limit user3@domain.com 5192000 # no limit user4@domain.com 0
__________________
Vivek Gite Linux Evangelist |
![]() |
| Tags |
| mailbox_size_limit , mta , postfix , postfix tutorial , virtual_mailbox_limit |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Difference betwwen : Locked User Account & Disabled User Accounts in Linux ? | avklinux | CentOS / RHEL / Fedora | 1 | 02-03-2009 04:02 PM |
| Sendmail Attachment Size & User Quota Restriction. | nishith | Mail Servers | 2 | 31-12-2008 12:05 PM |
| postfix one user multiple instance | irfan1234 | Mail Servers | 0 | 10-08-2008 04:53 PM |
| Cyrus - can't create user mailbox | satimis | Mail Servers | 0 | 08-06-2008 04:32 PM |
| Quota | ricc | Linux software | 2 | 08-08-2006 03:20 AM |