LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 05-02-2006, 05:30 AM   #1
deeztech
LQ Newbie
 
Registered: Mar 2006
Posts: 5

Rep: Reputation: 0
Quotas with Postfix and courier-imap


I'm trying to get mailbox quotas to work but I'm unable to do so. I'm using virtual users with mysql authentication:

Here's the pertinent lines in my main.cf

virtual_mailbox_limit = 51200000

virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_quota.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = Sorry, your message could not be delivered. The user you are trying to reach has reached his mailbox size limit. Please try again later.
virtual_overquota_bounce = yes

Here's the mysql_quota.cf file:

user=mail
password=somepassword
dbname=maildb
table=users
select_field=1024*1024*quota
where_field=id
hosts=127.0.0.1

I set one of the users with a quota of 1 in the database and I know for a sure this user has well over a 1MB of mail but there is never an indication that the quota limits are working. Mail is getting delivered to this user and no notification ever goes out that the mailbox is over it's size limit. I'm under the understanding that the VDA postfix-2.1.5-trash.patch.gz is required for the quotas to work and it's my understanding that the libpostfix1 package contains the postfix-2.1.5-trash.patch.gz and it already installed on my system.

Also, I'm a little confused on the "virtual_mailbox_limit = 51200000" and
"virtual_mailbox_limit_override = yes" lines. Is the "virtual_mailbox_limit = 51200000" the global mailbox limit size for ALL mailboxes? And what exactly does the "virtual_mailbox_limit_override = yes" exactly do?

Yet, the the quotas are not working.
 
Old 05-02-2006, 09:51 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
At the back of my mind, something tells me that Postfix doesn't handle quotas for maildir style mailboxes properly. Not a lot of help, but as they say, every little bit...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Courier imap + postfix -> maildir thing. collen Linux - Software 0 10-03-2005 09:41 AM
mailbox quotas with ldap postfix & courier mephitic Linux - Software 0 02-14-2005 01:26 AM
postfix + courier-imap + mysql tej Linux - Networking 3 09-01-2004 02:43 AM
SMTP/ Postfix / IMAP-POP3 / Courier ?? vladimir-dk Linux - Software 3 04-09-2004 04:31 AM
Postfix+Courier-IMAP Login Problems kasb Linux - Software 1 11-02-2003 07:15 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 11:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration