<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello everyone!</p>
<p>I'm trying to figure a solution for this scenario.</p>
<p>I have the Dovecot IMAP using MDBOX (SIS) storage for the daily
usage email.<br>
</p>
<p>For long term storage I'm preparing a namespace with MBOX
storage.</p>
<p>I'm not using the altstorage logic because as far as I know it
needs to have the same format as the base one and for archival I
prefer to have the attachments inside the messages in an old/well
known format supported by near any email software.</p>
<p>The problem at the moment is with quotas.</p>
<p>If the user has 5GB in his mailboxes and the long term
"historico" namespace has another 5GB, the storage used becomes
10GB and I want the users to only see their "active" usage (5GB).</p>
<p>I have that space to be ignored (as defined in the wiki and
dovecot documentation - my <font face="monospace">quota_rule5 </font>)
but it doesn't seem to influence the usage reported by IMAP.<br>
</p>
<p>What am I doing wrong?</p>
<p>If I put the "historico"<font face="monospace"> </font>
namespace with disabled = yes and do a "doveadm quota recalc" the
values become correct but I need the namespace available so the
users can recover their old messages if needed.<br>
</p>
<p>The relevant settings (AFAIK) I'm using are:</p>
<blockquote>
<p><font face="monospace">plugin {<br>
quota = dict:FileQuota:ns=:<a class="moz-txt-link-freetext" href="file:%h/dovecot-quota">file:%h/dovecot-quota</a><br>
quota2 = dirsize:HistQuota:ns=@HISTORICO/<br>
quota_clone_dict = proxy::quota<br>
quota_grace = 10%%<br>
quota_rule = *:storage=24G<br>
quota_rule2 = Trash:storage=+128M<br>
quota_rule3 = Junk:storage=+64M<br>
quota_rule4 = INBOX:storage=+128M<br>
quota_rule5 = ns=@HISTORICO:ignore<br>
}<br>
</font></p>
<font face="monospace">namespace historico {</font><br>
<font face="monospace"> disabled = no</font><br>
<font face="monospace"> hidden = no</font><br>
<font face="monospace"> ignore_on_failure = yes</font><br>
<font face="monospace"> inbox = no</font><br>
<font face="monospace"> list = no</font><br>
<font face="monospace"> location =
mbox:/mnt/mail-hist/historic/%d/%-2.2n/%n:SUBSCRIPTIONS=.imap/dovecot-subscriptions:LAYOUT=maildir++</font><br>
<font face="monospace"> order = 0</font><br>
<font face="monospace"> prefix = @HISTORICO/</font><br>
<font face="monospace"> separator = /</font><br>
<font face="monospace"> subscriptions = yes</font><br>
<font face="monospace"> type = private</font><br>
<font face="monospace">}</font><br>
<font face="monospace">namespace inbox {</font><br>
<font face="monospace"> disabled = no</font><br>
<font face="monospace"> hidden = no</font><br>
<font face="monospace"> ignore_on_failure = no</font><br>
<font face="monospace"> inbox = yes</font><br>
<font face="monospace"> list = yes</font><br>
<font face="monospace"> location =</font><br>
<font face="monospace"> order = 0</font><br>
<font face="monospace"> prefix =</font><br>
<font face="monospace"> separator = /</font><br>
<font face="monospace"> subscriptions = yes</font><br>
<font face="monospace"> type = private</font><br>
<font face="monospace">}<br>
userdb {<br>
args = /etc/dovecot/dovecot-sql.conf.ext<br>
auth_verbose = default<br>
default_fields = home=/data/domains/%d/%-2.2n/%n
lport=%{lport}<br>
driver = sql<br>
}<br>
</font></blockquote>
<p>best regards to all the Dovecot community, stay safe!<br>
</p>
<pre class="moz-signature" cols="72">--
Best regards,
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Pedro Ribeiro
Politécnico de Lisboa, Serviços da Presidência
Departamento de Sistemas de Informação e Comunicações
Phone: +351 210 464 700 (general) / VoIP: 80100
Helpdesk: <a class="moz-txt-link-abbreviated" href="mailto:helpdesk@net.ipl.pt">helpdesk@net.ipl.pt</a> / <a class="moz-txt-link-freetext" href="https://www.net.ipl.pt">https://www.net.ipl.pt</a>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=</pre>
</body>
</html>