Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd January 2006, 18:50
chris82 chris82 is offline
Junior Member
 
Join Date: Jan 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Quota doesn't work

Hi there,

it's about the tutorial: Virtual Users + Domains With Postfix, Courier + MySQL (+SMTP-AUTH, SpamA, ClamAV) - i followed it without installing spam-filters.

Everything works fine, except that quota doesn't work. If i set the quota to 1 and send then an email to this mail account, the mail is normally delivered to the maildir.

same thing if i copy an email from another imap-mailbox to this mailbox: no quota error....

can anyone help me?

thank you
chris
Reply With Quote
Sponsored Links
  #2  
Old 23rd January 2006, 20:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Please have a look at this thread: http://www.howtoforge.com/forums/showthread.php?t=2116
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 24th January 2006, 12:07
chris82 chris82 is offline
Junior Member
 
Join Date: Jan 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you, i've read this thread but it didn't help me...

postconf | grep size gets:
Code:
berkeley_db_create_buffer_size = 16777216
berkeley_db_read_buffer_size = 131072
body_checks_size_limit = 51200
bounce_size_limit = 2000
header_size_limit = 102400
mailbox_size_limit = 102400000
message_size_limit = 10240000
Am i mixing up real system users and virtual users maybe? How can i tell postfix to use virtual_mailbox_limit_maps?
Reply With Quote
  #4  
Old 24th January 2006, 21:01
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
Originally Posted by chris82
Am i mixing up real system users and virtual users maybe?
Is the recipient domain of your virtual user also listed in mydestination in /etc/postfix/main.cf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 25th January 2006, 12:10
chris82 chris82 is offline
Junior Member
 
Join Date: Jan 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
Is the recipient domain of your virtual user also listed in mydestination in /etc/postfix/main.cf?
No, it is not:

mydomain = server193xxxxxxx.serverpool.info
myhostname = server193xxxxxxx.serverpool.info
mydestination = $myhostname, localhost.$mydomain, $mydomain
Reply With Quote
  #6  
Old 20th February 2006, 06:33
savkar savkar is offline
Junior Member
 
Join Date: Jan 2006
Location: Brooklyn, New York
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Interesting. The only thing not working in my setup is the quota function. I too patched postfix, everything went fine, but I see no indication that quota is working.

In fact I am using the quota_notify script and it indicates no quotas on anyone. The Daily Quota report just has the header but no list of users & quota %.

Note that I did decide to bypass delivery into the maildirs with Postfix and use Maildrop instead since I wanted to do some advanced filtering. Could this screw something up?

When I looked at the link you suggested, I saw nothing that made me think the situation there was applicable.

Sunil
Reply With Quote
  #7  
Old 20th February 2006, 08:35
savkar savkar is offline
Junior Member
 
Join Date: Jan 2006
Location: Brooklyn, New York
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Strike my last email. After quite a bit more time I realized that for Maildir quota support, you need to have a completely different setup for the quota field! namely you need varchar(20), and then slightly different configurations for the mysql db.

Well, if anyone is curious how to set up with maildrop and courier-imap support, go to http://www.xs4all.nl/~jaspersl/quota/ and you will find an explanation for setup which works brilliantly.

Sunil
Reply With Quote
  #8  
Old 20th February 2006, 11:00
chris82 chris82 is offline
Junior Member
 
Join Date: Jan 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Talking

That's great savkar, i have done alle the things in the Howto and now the quota works perfectly
Thank you very much!!
Reply With Quote
  #9  
Old 25th January 2006, 18:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
Originally Posted by chris82
Everything works fine, except that quota doesn't work. If i set the quota to 1 and send then an email to this mail account, the mail is normally delivered to the maildir.
Are you sure you exceeded the quota of 1MB with this email?

Quote:
Originally Posted by chris82
same thing if i copy an email from another imap-mailbox to this mailbox: no quota error....
You mean you copied the email on the command line with the cp command? This doesn't work!
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 26th January 2006, 13:11
chris82 chris82 is offline
Junior Member
 
Join Date: Jan 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
Are you sure you exceeded the quota of 1MB with this email?
Hm, is it really 1 MB and not 1 KB or 1 Byte? I have 1 as value for the quota in the user-table for this email-account.

I changed now the database password in the mysql-virtual_mailbox_limit_maps.cf to a wrong password but i'm not getting any errors when i send a mail to this account.

If i e.g change the pwd to a wrong pwd in mysql-virtual_mailboxes.cf i get the error:
Code:
warning: connect to mysql server 127.0.0.1: Access denied for user 'provider_admin'@'localhost' (using password: YES)

Quote:
Originally Posted by falko
You mean you copied the email on the command line with the cp command? This doesn't work!
No, i copied the email with IMAP to another folder. I have courier-imap. But that's not as important as the postfix quota.

Last edited by chris82; 26th January 2006 at 13:14.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wrong quota messages Bruce General 10 15th September 2010 15:44
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ruskicar HOWTO-Related Questions 26 20th July 2007 16:28
Quota Limits and Traffic Limits Not Working protocol Installation/Configuration 12 20th March 2007 08:56
another quota question... Ovidiu General 9 21st December 2005 01:08
quota format not supported by file system bobway54 HOWTO-Related Questions 1 15th August 2005 10:55


All times are GMT +2. The time now is 00:25.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.