Hello everyone,
I am currently trying to implement quota warnings for two separate
namespaces (INBOX, MailArchive). The individual quota values for these
namespaces are derived from ldap, which is working fine.
However since adding the quota_warning configuration error messages
appear in the logs:
Error: quota-count: Filter quota_warning=warn-95 unexpectedly not found
(invalid userdb or -o override settings?)
Error: quota-count: Filter quota_warning=ma-warn-95 unexpectedly not
found (invalid userdb or -o override settings?)
The relevant configuration parameters from my config:
quota_storage_size = 1G
userdb ldap {
fields {
quota/ma_quota/storage_size = %{ldap:quota1}
quota_storage_size = %{ldap:quota2}
}
}
namespace subscriptions {
mailbox_subscriptions_filename = subscriptions
hidden = yes
list = no
prefix =
subscriptions = yes
}
namespace inbox {
inbox = yes
prefix = INBOX/
subscriptions = no
quota user_quota {
name = User Quota
quota_warning warn-95 {
quota_storage_percentage = 95
execute quota-warning {
args = 95 %{user}
}
}
quota_warning warn-80 {
quota_storage_percentage = 80
execute quota-warning {
args = 80 %{user}
}
}
quota_warning warn-under {
quota_storage_percentage = 100
threshold = under
execute quota-warning {
args = below %{user}
}
}
}
mailbox Drafts {
auto = subscribe
special_use = "\\Drafts"
}
mailbox Sent {
auto = subscribe
special_use = "\\Sent"
}
mailbox "Sent Messages" {
special_use = "\\Sent"
}
mailbox Spam {
auto = subscribe
special_use = "\\Junk"
}
mailbox Junk {
special_use = "\\Junk"
}
mailbox Trash {
auto = subscribe
special_use = "\\Trash"
quota_storage_percentage = 110
}
}
namespace MailArchive {
mail_driver = maildir
mail_index_path = /var/mail/indexes/mailarchive/%{user}
mail_path = /var/mail/mailarchive/%{user}/Maildir
list = children
prefix = MailArchiv/
subscriptions = no
type = private
quota ma_quota {
name = MailArchive Quota
quota_warning ma-warn-95 {
quota_storage_percentage = 95
execute quota-warning {
args = 95 %{user}
}
}
quota_warning ma-warn-80 {
quota_storage_percentage = 80
execute quota-warning {
args = 80 %{user}
}
}
quota_warning ma-warn-under {
quota_storage_percentage = 100
threshold = under
execute quota-warning {
args = below %{user}
}
}
}
mailbox "Archived Mails" {
auto = subscribe
special_use = "\\Archive"
}
}
}
service quota-warning {
executable = script /var/mail/scripts/quota-warning.sh
user = vmail
unix_listener quota-warning {
}
}
Does anyone have an idea what could be causing this behavior ?
Thank you very much for your kind help.
Andreas
_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]