Hey Everyone, I am running the new Dovecot 2.0 RC2. When I try to run 'doveadm quota recalc -A' I just get the usage info for doveadm. Running 'doveadm help quota' gives me the man page for the quota command, and I follow the man page examples as is. Is this feature not implemented yet? Or am I doing something wrong? I know quota is a "plugin" for the doveadm program, but there is no documentation on how to get this to load of if it needs to be loaded at all. Thanks! -- Steve King Senior Linux Engineer - Advance Internet, Inc. Cisco Certified Network Associate CompTIA Linux+ Certified Professional CompTIA A+ Certified Professional
On 11.7.2010, at 6.14, Steven King wrote:> I know quota is a "plugin" for the doveadm program, but there is no > documentation on how to get this to load of if it needs to be loaded at all.You need to have (not inside any protocol section): mail_plugins = quota
Ah ok, what is the difference between loading the plugin outside of protocol sections vs inside them? On 7/11/10 8:34 AM, Timo Sirainen wrote:> On 11.7.2010, at 6.14, Steven King wrote: > >> I know quota is a "plugin" for the doveadm program, but there is no >> documentation on how to get this to load of if it needs to be loaded at all. > > You need to have (not inside any protocol section): > > mail_plugins = quota >-- Steve King Senior Linux Engineer - Advance Internet, Inc. Cisco Certified Network Associate CompTIA Linux+ Certified Professional CompTIA A+ Certified Professional
On 11.7.2010, at 21.53, Steven King wrote:> Ah ok, what is the difference between loading the plugin outside of > protocol sections vs inside them?Inside protocol section it affects only programs using that protocol. You can have: mail_plugins = foo protocol imap { mail_plugins = bar } protocol pop3 { mail_plugins = $mail_plugins bar } Now IMAP uses only "bar" plugin, POP3 uses "foo bar" plugins and everything else uses "foo". A realistic good setup could look like: mail_plugins = quota acl autocreate protocol imap { mail_plugins = $mail_plugins imap_acl imap_quota } Usually you want to enable plugins globally, and IMAP is the special case which has IMAP-specific plugins (well, sieve also for LDA).
Ah that makes sense. Was this a change for 2.0 or is this recommended for 1.x as well? On 7/11/10 5:39 PM, Timo Sirainen wrote:> On 11.7.2010, at 21.53, Steven King wrote: > >> Ah ok, what is the difference between loading the plugin outside of >> protocol sections vs inside them? > Inside protocol section it affects only programs using that protocol. You can have: > > mail_plugins = foo > protocol imap { > mail_plugins = bar > } > protocol pop3 { > mail_plugins = $mail_plugins bar > } > > Now IMAP uses only "bar" plugin, POP3 uses "foo bar" plugins and everything else uses "foo". A realistic good setup could look like: > > mail_plugins = quota acl autocreate > protocol imap { > mail_plugins = $mail_plugins imap_acl imap_quota > } > > Usually you want to enable plugins globally, and IMAP is the special case which has IMAP-specific plugins (well, sieve also for LDA).-- Steve King Senior Linux Engineer - Advance Internet, Inc. Cisco Certified Network Associate CompTIA Linux+ Certified Professional CompTIA A+ Certified Professional