On Wed, 16 Nov 2011 11:09:12 -0500, micah anderson <[email protected]> wrote: > On Tue, 15 Nov 2011 22:27:20 +0200, Timo Sirainen <[email protected]> wrote: > > On Thu, 2011-11-10 at 13:59 -0500, Micah Anderson wrote: > > > I really like the feature where you can define quota rules with percents > > > which trigger off of the default values[0] (so you can set the Trash to > > > allow for 10% more of the user's quota for example). > > > > > > What I would really love in dovecot would be for the ability to > > > configure a quota rule for dovecot-lda. I would like to configure things > > > so we don't bounce emails for users until they are well over quota, the > > > IMAP quota plugin is a really great way to notify people that they are > > > over quota because it fails to write to other folders.... that should be > > > enough to get people's attention that they need to deal with things, but > > > bouncing is harsh. > > > > You can give LDA-specific quota settings. Like maybe: > > > > protocol lda { > > plugin { > > quota_rule2 = INBOX:storage=200% > > } > > }
I just tried doing this, and I started bouncing mail for everyone
because they were over quota (even when they arent), so I am clearly
missing something in how I have it configured. This is what I have:
namespace {
separator = .
prefix =
inbox = yes
}
namespace {
separator = .
prefix = INBOX.
inbox = no
hidden = yes
list = no
}
plugin {
quota = dict:Your mail quota::proxy::quota
}
dict {
quota = mysql:/etc/dovecot/dovecot-dict-sql.conf
}
plugin {
quota_exceeded_message = You are over quota. To avoid losing mail,
immediately empty your Trash and Sent folders and delete emails with large
attachments.
quota_rule = *:bytes=100663296 # in case someone doesn't have sql quota
quota_rule2 = Trash:bytes=+20%% # let trash be larger by 20%
quota_rule3 = Spam:bytes=+10%% # let spam be larger by 10%
quota_rule4 = INBOX.Trash:bytes=+20%% # repeat the above for namespaces
quota_rule5 = INBOX.Spam:bytes=+10%% # same
quota_rule6 = INBOX.restored:bytes=+500%% # allow for temporary folder
}
...
protocol lda {
# Space separated list of plugins to load (default is global mail_plugins).
mail_plugins = $mail_plugins
plugin {
quota_rule7 = INBOX:bytes=+10%%
}
}
Maybe I should have that quota_rule7 be *:bytes=+10%% ?
thanks for any suggestions for what I am missing here!
micah
pgp0AMtVVmc58.pgp
Description: PGP signature
