Postfix does not support mailbox quota. But thanks to Anderson Nadal’s Postfix Virtual Delivery Agent (VDA) patches, it can. To use the Postfix VDA requires two things, first Postfix must be built with the VDA patches and second, virtual user accounts must be used. You can get the Postfix RPM with VDA patches here.
Here are some configuration you can use for your virtual accounts.
Configure Postfix VDA
virtual_mailbox_limit_override = yes virtual_overquota_bounce = yes virtual_mailbox_limit_maps = hash:/etc/postfix/vquota
email@example.com 10485760 firstname.lastname@example.org 2097152
John Doe got a 10MB quota while Jane Doe got 2MB.
After creating this file, execute postmap /etc/postfix/vquota. This will generate /etc/postfix/vquota.db, the actual file that will be used for the lookup.
If you use Active Directory as your Postfix virtual user accounts source, you can use the maxStorage attribute instead to store the quota. Just copy your ldap-users.cf configuration and save it as ldap-quota.cf. Next change samaccountname to maxstorage in the result_attribute line and remove the result_format line. In your main.cf, use ldap:/etc/postfix/ldap-quota.cf as your virtual_mailbox_limit_maps. In Windows, you can use ADSI Edit to access and modify the value of maxStorage.
Visit the forum to ask for help or to give a comment.
Posted on 4/20/2008 and last updated on 6/26/2010
Filed under Postfix