[Dovecot] enabling quota.
I'm reading http://wiki.dovecot.org/Quota to enable quota management with dovecot. The first question is: I need to enable dovecot deliver, lda protocol, to have quota work?
Mauro Sanna wrote:
I'm reading http://wiki.dovecot.org/Quota to enable quota management with dovecot. The first question is: I need to enable dovecot deliver, lda protocol, to have quota work?
It depends on the backend you use. If you use filesystem quota's, then there is no need to use the dovecot LDA, because the actual quota usage is already being updated by the filesystem/kernel itself.
However if you use Maildir++ quota, then something has to update the maildirsize file so that it contains the actual usage of that Maildir. So you need the dovecot LDA here, or another LDA that can update those files in a compatible way.
However I prefer to always use dovecot's deliver, because it automatically updates indexes and caches when a mail arrives, and this cannot be done by another LDA because the indexes and caches are dovecot specific.
Alexander
Il giorno lun, 30/06/2008 alle 12.15 +0200, Alexander Prinsier ha scritto:
Mauro Sanna wrote:
I'm reading http://wiki.dovecot.org/Quota to enable quota management with dovecot. The first question is: I need to enable dovecot deliver, lda protocol, to have quota work?
It depends on the backend you use. If you use filesystem quota's, then there is no need to use the dovecot LDA, because the actual quota usage is already being updated by the filesystem/kernel itself.
However if you use Maildir++ quota, then something has to update the maildirsize file so that it contains the actual usage of that Maildir. So you need the dovecot LDA here, or another LDA that can update those files in a compatible way.
However I prefer to always use dovecot's deliver, because it automatically updates indexes and caches when a mail arrives, and this cannot be done by another LDA because the indexes and caches are dovecot specific.
Thank you for ther answer....last question: if I use dovecot deliver, in dovecot.conf I need to enable only
protocol lda { mail_plugins = quota }
or I must enable also
protocol pop3 { mail_plugins = quota }
and in case I have imap
protocol imap { mail_plugins = quota imap_quota } ?
Mauro Sanna wrote:
if I use dovecot deliver, in dovecot.conf I need to enable only
protocol lda { mail_plugins = quota }
or I must enable also
protocol pop3 { mail_plugins = quota }
and in case I have imap
protocol imap { mail_plugins = quota imap_quota } ?
You also need to specify what backend you want to use (fs quota, maildir++ quota's, ...).
See here: http://wiki.dovecot.org/Quota/1.0
Alexander
Il giorno lun, 30/06/2008 alle 13.32 +0200, Alexander Prinsier ha scritto:
Mauro Sanna wrote:
if I use dovecot deliver, in dovecot.conf I need to enable only
protocol lda { mail_plugins = quota }
or I must enable also
protocol pop3 { mail_plugins = quota }
and in case I have imap
protocol imap { mail_plugins = quota imap_quota } ?
You also need to specify what backend you want to use (fs quota, maildir++ quota's, ...).
Yes I've just specified it, it's maildir but........I need to enable quota only for protocol lda or also for pop3 and imap?
Mauro Sanna wrote:
Il giorno lun, 30/06/2008 alle 13.32 +0200, Alexander Prinsier ha scritto:
Mauro Sanna wrote:
if I use dovecot deliver, in dovecot.conf I need to enable only
protocol lda { mail_plugins = quota }
or I must enable also
protocol pop3 { mail_plugins = quota }
and in case I have imap
protocol imap { mail_plugins = quota imap_quota } ?
You also need to specify what backend you want to use (fs quota, maildir++ quota's, ...).
Yes I've just specified it, it's maildir but........I need to enable quota only for protocol lda or also for pop3 and imap?
You need both. I think the setting in the lda part tells dovecot's deliver that it needs to update the quota files on delivery, and the setting in the imap/pop3 part will tell the imap/pop3 daemons to update the quota files when a user deletes a message for example.
Alexander
participants (2)
-
Alexander Prinsier
-
Mauro Sanna