[Dovecot] getting quota error when accessing private namespace
Hi all,
I have run into a problem which I cannot find a solution for.
I have created an additional private namespace with the following commands in dovecot.conf :
namespace { disabled = no hidden = no ignore_on_failure = no inbox = no list = children location = maildir:/var/vmail/archives/%Ln/Maildir mailbox "archived mails" { auto = subscribe driver = special_use = \Archive } prefix = Archives/ separator = / subscriptions = yes type = private }
plugin { quota = maildir:User quota:ns= quota2 = maildir:Archives quota:ns=Archives/ quota2_rule = *:storage=5G quota_rule = *:storage=1G quota_rule2 = Trash:storage=+200M }
I can access the new namespace without any problems but every time a folder in this namespace is accessed, I get the following error messages in mail.err log:
dovecot: imap(testuser): Error: quota: Unknown namespace: Archives/ dovecot: last message repeated 49 times
Quota seems to work, though I have the feeling, that it only will be updated when closing and reopening the mail client, but this can also be a client issue.
Quota for the INBOX is either taken from LDAP or, if there is no value defined in LDAP, will be assigned a quota of 1G
The Archives/ namespace has a static quota of 5G for every user.
Does anyone have idea how to get rid of these error messages ?
Thank you for your kind help
Andreas
Am 12.07.2013 07:27, schrieb Andreas Oster:
Hi all,
I have run into a problem which I cannot find a solution for.
I have created an additional private namespace with the following commands in dovecot.conf :
namespace { disabled = no hidden = no ignore_on_failure = no inbox = no list = children location = maildir:/var/vmail/archives/%Ln/Maildir mailbox "archived mails" { auto = subscribe driver = special_use = \Archive } prefix = Archives/ separator = / subscriptions = yes type = private }
plugin { quota = maildir:User quota:ns= quota2 = maildir:Archives quota:ns=Archives/ quota2_rule = *:storage=5G quota_rule = *:storage=1G quota_rule2 = Trash:storage=+200M }
I can access the new namespace without any problems but every time a folder in this namespace is accessed, I get the following error messages in mail.err log:
dovecot: imap(testuser): Error: quota: Unknown namespace: Archives/ dovecot: last message repeated 49 times
Quota seems to work, though I have the feeling, that it only will be updated when closing and reopening the mail client, but this can also be a client issue.
Quota for the INBOX is either taken from LDAP or, if there is no value defined in LDAP, will be assigned a quota of 1G
The Archives/ namespace has a static quota of 5G for every user.
Does anyone have idea how to get rid of these error messages ?
Thank you for your kind help
Andreas
why you want to have a separate namespace for archives ?, why not use simply a imap folder for every user ( which i wouldnt call archives, cause that name is allready used by thunderbird etc ), or use some pub namespace with an archive-username folder, restrictions can be done by acl, what problem youre trying to solve?
perhaps you might have a look at
http://sys4.de/de/blog/2013/02/07/mailarchiv-mit-dovecot-und-postfix-sortier...
for ideas
also
http://sys4.de/de/blog/2013/03/25/outlook-2013-special-use-mit-dovecot/
should give you help for special use handling, guess german is ok for you
Best Regards MfG Robert Schetterer
-- [*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
Am 12.07.2013 08:39, schrieb Robert Schetterer:
Am 12.07.2013 07:27, schrieb Andreas Oster:
Hi all,
I have run into a problem which I cannot find a solution for.
I have created an additional private namespace with the following commands in dovecot.conf :
namespace { disabled = no hidden = no ignore_on_failure = no inbox = no list = children location = maildir:/var/vmail/archives/%Ln/Maildir mailbox "archived mails" { auto = subscribe driver = special_use = \Archive } prefix = Archives/ separator = / subscriptions = yes type = private }
plugin { quota = maildir:User quota:ns= quota2 = maildir:Archives quota:ns=Archives/ quota2_rule = *:storage=5G quota_rule = *:storage=1G quota_rule2 = Trash:storage=+200M }
I can access the new namespace without any problems but every time a folder in this namespace is accessed, I get the following error messages in mail.err log:
dovecot: imap(testuser): Error: quota: Unknown namespace: Archives/ dovecot: last message repeated 49 times
Quota seems to work, though I have the feeling, that it only will be updated when closing and reopening the mail client, but this can also be a client issue.
Quota for the INBOX is either taken from LDAP or, if there is no value defined in LDAP, will be assigned a quota of 1G
The Archives/ namespace has a static quota of 5G for every user.
Does anyone have idea how to get rid of these error messages ?
Thank you for your kind help
Andreas
why you want to have a separate namespace for archives ?, why not use simply a imap folder for every user ( which i wouldnt call archives, cause that name is allready used by thunderbird etc ), or use some pub namespace with an archive-username folder, restrictions can be done by acl, what problem youre trying to solve?
perhaps you might have a look at
http://sys4.de/de/blog/2013/02/07/mailarchiv-mit-dovecot-und-postfix-sortier...
for ideas
also
http://sys4.de/de/blog/2013/03/25/outlook-2013-special-use-mit-dovecot/
should give you help for special use handling, guess german is ok for you
Best Regards MfG Robert Schetterer
Hello Robert,
thank you for your fast response.
I wanted to use the Thunderbird archive feature to allow users to move old mails, they want to keep, to a storage located on another server. But it would be perfectly OK to just have another folder where they can drop their old stuff. Every user should have a quota of 5G in that folder, which is different from the default INBOX quota.
best regards
Andreas
Am 12.07.2013 09:07, schrieb Andreas Oster:
Am 12.07.2013 08:39, schrieb Robert Schetterer:
Am 12.07.2013 07:27, schrieb Andreas Oster:
Hi all,
I have run into a problem which I cannot find a solution for.
I have created an additional private namespace with the following commands in dovecot.conf :
namespace { disabled = no hidden = no ignore_on_failure = no inbox = no list = children location = maildir:/var/vmail/archives/%Ln/Maildir mailbox "archived mails" { auto = subscribe driver = special_use = \Archive } prefix = Archives/ separator = / subscriptions = yes type = private }
plugin { quota = maildir:User quota:ns= quota2 = maildir:Archives quota:ns=Archives/ quota2_rule = *:storage=5G quota_rule = *:storage=1G quota_rule2 = Trash:storage=+200M }
I can access the new namespace without any problems but every time a folder in this namespace is accessed, I get the following error messages in mail.err log:
dovecot: imap(testuser): Error: quota: Unknown namespace: Archives/ dovecot: last message repeated 49 times
Quota seems to work, though I have the feeling, that it only will be updated when closing and reopening the mail client, but this can also be a client issue.
Quota for the INBOX is either taken from LDAP or, if there is no value defined in LDAP, will be assigned a quota of 1G
The Archives/ namespace has a static quota of 5G for every user.
Does anyone have idea how to get rid of these error messages ?
Thank you for your kind help
Andreas
why you want to have a separate namespace for archives ?, why not use simply a imap folder for every user ( which i wouldnt call archives, cause that name is allready used by thunderbird etc ), or use some pub namespace with an archive-username folder, restrictions can be done by acl, what problem youre trying to solve?
perhaps you might have a look at
http://sys4.de/de/blog/2013/02/07/mailarchiv-mit-dovecot-und-postfix-sortier...
for ideas
also
http://sys4.de/de/blog/2013/03/25/outlook-2013-special-use-mit-dovecot/
should give you help for special use handling, guess german is ok for you
Best Regards MfG Robert Schetterer
Hello Robert,
thank you for your fast response.
I wanted to use the Thunderbird archive feature to allow users to move old mails, they want to keep, to a storage located on another server. But it would be perfectly OK to just have another folder where they can drop their old stuff. Every user should have a quota of 5G in that folder, which is different from the default INBOX quota.
best regards
Andreas
a folder can have additional plus quota via quota rules
http://wiki2.dovecot.org/Quota/Configuration
for short thinking you may use pub namespace with
http://wiki2.dovecot.org/MailboxFormat/dbox#Alternate_storage
but i nearly sure, there are some other solutions too for solving this, wait for other maybe better ideas
Best Regards MfG Robert Schetterer
-- [*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
Am 12.07.2013 09:37, schrieb Robert Schetterer:
http://sys4.de/de/blog/2013/02/07/mailarchiv-mit-dovecot-und-postfix-sortier...
for ideas
like above a little bit different ( no postfix bcc archive feature and sieve autosort, instead for putting users mails by themselves to some archive by imap ) you may solve it ,with some backup.domain.de with alternate mail location in i.e ldap or mysql having some inbox and archive folder for every user mailbox on other physical mount in shared user namespace and using acl on it, this can be done automatic at user mailbox creation time with subscribe archive folder, use some static quota with it
Best Regards MfG Robert Schetterer
-- [*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
Am 12.07.2013 09:54, schrieb Robert Schetterer:
Am 12.07.2013 09:37, schrieb Robert Schetterer:
http://sys4.de/de/blog/2013/02/07/mailarchiv-mit-dovecot-und-postfix-sortier...
for ideas
like above a little bit different ( no postfix bcc archive feature and sieve autosort, instead for putting users mails by themselves to some archive by imap ) you may solve it ,with some backup.domain.de with alternate mail location in i.e ldap or mysql having some inbox and archive folder for every user mailbox on other physical mount in shared user namespace and using acl on it, this can be done automatic at user mailbox creation time with subscribe archive folder, use some static quota with it
Best Regards MfG Robert Schetterer
Hello Robert,
thank you for all your hints. I already know the +quota stuff, but this is not shown in the mail client and the user has no way to see if he is reaching the max level. That is why I tried to set up an additional namespace in the first place.
Thank you very much for your kind help.
Andreas
participants (2)
-
Andreas Oster
-
Robert Schetterer