Qmail Support Forum Forum Index Qmail Support Forum
Qmail Email Server Support Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to configure Postfix & Courier IMAP with quota suppo

 
Post new topic   Reply to topic    Qmail Support Forum Forum Index -> Postfix
View previous topic :: View next topic  
Author Message
admin
Site Admin


Joined: 21 Jun 2005
Posts: 209

PostPosted: Tue Aug 01, 2006 10:09 pm    Post subject: How to configure Postfix & Courier IMAP with quota suppo Reply with quote

I found the documentation for setting up quota support under postfix a little sparse so i've written this quick howto.
Download and apply the VDA quota patch from http://web.onda.com.br/nadal/
Setup your MySQL tables so that there is a field for quotas. My setup is based on the instructions at http://high5.net/howto/ so if you have followed this you should already have the correct fields.
If you are using Postfix Admin, check that you have enabled quota support in the config file.
Enable quota support in Courier-IMAP. This needs to be done in 2 places. Firstly in /etc/courier/authmysqlrc:

MYSQL_QUOTA_FIELD quota

And also in /etc/courier/imapd:

IMAP_CAPABILITY="IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA"
Tell Postfix to lookup quotas in a MySQL table:

/etc/postfix/main.cf

virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf

/etc/postfix/mysql_virtual_mailbox_limit_maps.cf

user = postfix
password = secret
hosts = 127.0.0.1
dbname = postfix
table = mailbox
select_field = quota
where_field = username
You will also need the following settings for quotas to work in Postfix & Courier-IMAP:

/etc/postfix/main.cf

# Override the message_size_limit setting
virtual_mailbox_limit_override = yes
# Follow Maildir++ specs
virtual_maildir_extended = yes
# Create the maildirsize file (Vital for Courier-IMAP)
virtual_create_maildirsize = yes
# Bounce rather than defer when over quota
virtual_overquota_bounce = yes
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Qmail Support Forum Forum Index -> Postfix 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


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


For Support - http://forums.BizHat.com

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!