[Dovecot] Dovecot and quota enforcement - only reporting?
I'm currently setting up postfix and dovecot with virtual users (mysql), imap, and quotas. I'm setting the quotas using mysql.
I have quotas working correctly, and I can telnet into the imap server, and submit . getquotaroot inbox and get back valid quota information. I get a maildirsize file in the Maildir directory. Very cool.
When I delete mail and expunge it, the quota updates. However, inbound email doesn't appear to update the quota.
Two questions, probably related: What causes the quota (which I presume is the maildirsize file) to update? Is there any actual quota enforcement, or just reporting? Because if I send mail to an account, even if it currently reporting (via maildirsize or . getquotaroot) that the user is over quota, they still can send and receive email.
Thanks!
Rick
Rick Steeves http://www.sinister.net
"The journey is the destination"
At 10:48 PM 10/21/2008, Rick Steeves wrote:
When I delete mail and expunge it, the quota updates. However, inbound email doesn't appear to update the quota.
Two questions, probably related: What causes the quota (which I presume is the maildirsize file) to update? Is there any actual quota enforcement, or just reporting? Because if I send mail to an account, even if it currently reporting (via maildirsize or . getquotaroot) that the user is over quota, they still can send and receive email.
Just checking to see if there are any insights here.
Rick
How are you delivering your mails to mailboxes? If you don't use dovecot's deliver quota won't get updated (unless you use filesystem quota)
HTH
El Lunes, 27 de Octubre de 2008 a las 17:53, dovecot@corwyn.net escribió:
At 10:48 PM 10/21/2008, Rick Steeves wrote:
When I delete mail and expunge it, the quota updates. However, inbound email doesn't appear to update the quota.
Two questions, probably related: What causes the quota (which I presume is the maildirsize file) to update? Is there any actual quota enforcement, or just reporting? Because if I send mail to an account, even if it currently reporting (via maildirsize or . getquotaroot) that the user is over quota, they still can send and receive email.
Just checking to see if there are any insights here.
Rick
-- Joseba Torre. CIDIR Bizkaia.
Wow, that clearly shows I'm not really sure what I'm doing, as I don't really understand the question.
I'm running Postfix, with Dovecot on top. Uses check mail via Outlook/IMAP, or Web/Squirrelmail.
Rick
At 04:29 AM 10/28/2008, Joseba Torre wrote:
How are you delivering your mails to mailboxes? If you don't use dovecot's deliver quota won't get updated (unless you use filesystem quota)
HTH
El Lunes, 27 de Octubre de 2008 a las 17:53, dovecot@corwyn.net escribió:
At 10:48 PM 10/21/2008, Rick Steeves wrote:
When I delete mail and expunge it, the quota updates. However, inbound email doesn't appear to update the quota.
Two questions, probably related: What causes the quota (which I presume is the maildirsize file) to update? Is there any actual quota enforcement, or just reporting? Because if I send mail to an account, even if it currently reporting (via maildirsize or . getquotaroot) that the user is over quota, they still can send and receive email.
Just checking to see if there are any insights here.
Rick
-- Joseba Torre. CIDIR Bizkaia.
On 10/28/2008, dovecot@corwyn.net (dovecot@corwyn.net) wrote:
Wow, that clearly shows I'm not really sure what I'm doing, as I don't really understand the question.
I'm running Postfix, with Dovecot on top. Uses check mail via Outlook/IMAP, or Web/Squirrelmail.
Postfix is an MTA (Mail Transfer Agent). It has its own built in 'Delivery Agents' - LDA (Local Delivery Agent) and VDA (Virtual Delivery Agent). A barebones postfix install will use one of these.
Dovecot is a POP/IMAP server - it allows clients to access existing messages located on a filesystem somewhere.
'Deliver' is the act of the final placement of an email message to the final destination filesystem.
It sounds like you have some reading to do...
Here is the dovecot wiki page on dopvecots 'Deliver' program:
--
Best regards,
Charles
Still no answer to my original question of what exactly updates maildirsize? Is that also the dovecot LDA?
At 06:14 AM 10/29/2008, Charles Marcus wrote:
On 10/28/2008, dovecot@corwyn.net (dovecot@corwyn.net) wrote:
I'm running Postfix, with Dovecot on top. Uses check mail via Outlook/IMAP, or Web/Squirrelmail.
Postfix is an MTA (Mail Transfer Agent). It has its own built in 'Delivery Agents' - LDA (Local Delivery Agent) and VDA (Virtual Delivery Agent). A barebones postfix install will use one of these.
I'm using virtual delivery in postfix (mysql users). Postfix is running the default delivery agent: mailbox_command =
So the only way to get quota enforcing with Dovecot is to have Postfix use the dovecot LDA?
And from the wiki it indicates:
dovecot_destination_recipient_limit = 1 virtual_mailbox_domains = your.domain.here virtual_transport = dovecot
but I'm currently running multiple domains. How does virtual_mailbox_domains configure to handle that?
Rick
On Wed, 2008-10-29 at 10:12 -0400, dovecot@corwyn.net wrote:
Still no answer to my original question of what exactly updates maildirsize? Is that also the dovecot LDA?
- Dovecot LDA for newly delivered mails
- Dovecot IMAP for messages saved/copied via IMAP client
So the only way to get quota enforcing with Dovecot is to have Postfix use the dovecot LDA?
Yes, the only way to enforce quota for newly delivered mails is to deliver mails via LDA capable of enforcing the quota. :)
(It doesn't have to be Dovecot LDA though, there are other LDAs that understand Maildir++ quota too. Dovecot LDA is recommended though.)
At 10:50 AM 10/29/2008, Timo Sirainen wrote:
Still no answer to my original question of what exactly updates maildirsize? Is that also the dovecot LDA?
- Dovecot LDA for newly delivered mails
- Dovecot IMAP for messages saved/copied via IMAP client
Thanks, that perfectly explains why I haven't been able to figure out what makes maildirsize update.
So the only way to get quota enforcing with Dovecot is to have Postfix use the dovecot LDA?
Yes, the only way to enforce quota for newly delivered mails is to deliver mails via LDA capable of enforcing the quota. :)
(It doesn't have to be Dovecot LDA though, there are other LDAs that understand Maildir++ quota too. Dovecot LDA is recommended though.)
Excellent. Now off to figure out whether I'll break anything by changing it! :-) Is it different between virtual users (mysql using a dovecot-mysql.conf file) and local users?
Rick
participants (4)
-
Charles Marcus
-
dovecot@corwyn.net
-
Joseba Torre
-
Timo Sirainen