<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>You can do</p>
passdb {<br>
driver = passwd-file<br>
args = /path/to/some/file<br>
skip = unauthenticated<br>
}<br>
<br>
and put in this file<br>
<br>
<a class="moz-txt-link-abbreviated"
href="mailto:alice@example.com::::::noauthenticate">alice@example.com::::::noauthenticate</a>
userdb_namespace/inbox/mailbox/INBOX/autoexpunge=31d<br>
<br>
or nopassword instead of noauthenticate.<br>
<br>
Please keep replies in-list.<br>
<br>
Aki<br>
<br>
<div class="moz-cite-prefix">On 23.01.2018 12:31, Alexey Murz
Korepov wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAL5pyKv_BvNxrCXuvLS-CPD0V1sNCh7kuqeMJfVTc2ZSTynxqw@mail.gmail.com">
<div dir="ltr">
<div>
<div>So, with using `passwd` driver as userdb - there are no
ways to set some dovecot single per-user setting? Change
passwd to real user database is too hard on working system.<br>
</div>
Maybe exists some other ways to do auto expunge function for
separate mailbox folder on single user?<br>
<br>
</div>
As workaround, can I use command like `doveadm expunge` in cron
job for do this task?<br>
---<br>
doveadm expunge -u <a href="mailto:alice@example.com"
moz-do-not-send="true">alice@example.com</a> mailbox INBOX
savedbefore 31d<br>
---<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 23 January 2018 at 13:20, Aki Tuomi
<span dir="ltr"><<a href="mailto:aki.tuomi@dovecot.fi"
target="_blank" moz-do-not-send="true">aki.tuomi@dovecot.fi</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Well, to have per-user settings, you need a userdb,
that can provide per-user settings.<span class="HOEnZb"><font
color="#888888"><br>
</font></span></p>
<span class="HOEnZb"><font color="#888888">
<p>Aki<br>
</p>
</font></span>
<div>
<div class="h5"> <br>
<div class="m_-9146112733550824948moz-cite-prefix">On
23.01.2018 12:19, Alexey Murz Korepov wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>I can't understand what you mean in `return
from userdb` - in which place of dovecot config
files I can set this rule? I don't use separate
userdb for dovecot users.<br>
</div>
Or maybe this must be set somewhere in user home
folder?<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 23 January 2018 at
13:17, Aki Tuomi <span dir="ltr"><<a
href="mailto:aki.tuomi@dovecot.fi"
target="_blank" moz-do-not-send="true">aki.tuomi@dovecot.fi</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>No.</p>
The namespace name is irrelevant, it just
has to be there. Assuming you have no other
namespace config around,<br>
<br>
namespace inbox {<br>
inbox = yes<br>
mailbox INBOX {<br>
}<br>
}<br>
<p>Then return from userdb,
namespace/inbox/mailbox/INBOX/<wbr>autoexpunge=31d</p>
<p>The namespace config will be global
(affects all users), but autoexpunge
setting will be for alice only.<span
class="m_-9146112733550824948HOEnZb"><font
color="#888888"><br>
</font></span></p>
<span class="m_-9146112733550824948HOEnZb"><font
color="#888888">
<p>Aki</p>
</font></span>
<div>
<div class="m_-9146112733550824948h5">
<div
class="m_-9146112733550824948m_-6744869988627908258moz-cite-prefix">On
23.01.2018 12:08, Alexey Murz Korepov
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>
<div>Thanks, Aki, for quick
answer! But can you give me
please a real example with user
<a
href="mailto:alice@example.com"
target="_blank"
moz-do-not-send="true">alice@example.com</a>
and mailbox INBOX? In my setup I
have no user database, I use
real linux users, managed via
Webmin/Virtualmin.<br>
</div>
<div>So I must set in
`/etc/dovecot/conf.d/15-mailbo<wbr>xes.conf`
file something this?<br>
</div>
------<br>
namespace <a
href="mailto:alice@example.com"
target="_blank"
moz-do-not-send="true">alice@example.com</a>
{<br>
mailbox INBOX {<br>
</div>
}<br>
<div> } <br>
</div>
<div>
<p>namespace/<a
href="http://alice@example.com/mailbox/INBOX/autoexpunge=31d"
target="_blank"
moz-do-not-send="true">alice@example.com/ma<wbr>ilbox/INBOX/autoexpunge=31d</a></p>
------<br>
</div>
<div>Or I must fill last string not
in `mailboxes.conf` file, but in
some other place?<br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 23
January 2018 at 12:58, Aki Tuomi <span
dir="ltr"><<a
href="mailto:aki.tuomi@dovecot.fi"
target="_blank"
moz-do-not-send="true">aki.tuomi@dovecot.fi</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000"
bgcolor="#FFFFFF">
<p>Configure <br>
</p>
namespace <name> {<br>
mailbox <name> {<br>
}<br>
}
<p>and return from userdb<br>
</p>
<p>namespace/<name>/mailbox/<name<wbr>>/autoexpunge=value</p>
<p>Ak<br>
</p>
<div>
<div
class="m_-9146112733550824948m_-6744869988627908258h5">
<br>
<div
class="m_-9146112733550824948m_-6744869988627908258m_4216092335048697019moz-cite-prefix">On
23.01.2018 11:57, Alexey
Murz Korepov wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">I need to
set autoexpunge rule
only for one single
user and one mailbox
(mail folder), so
apply it only for user
<a
href="mailto:alice@example.com"
target="_blank"
moz-do-not-send="true">alice@example.com</a>
mailbox INBOX. How can
I set namespace in
dovecot config, that
will apply only to
single user?<br>
<div><br>
-- <br>
<div
class="m_-9146112733550824948m_-6744869988627908258m_4216092335048697019gmail_signature">Best
regards,<br>
Alexey Murz
Korepov.<br>
Email, Jabber: <a
href="mailto:murznn@gmail.com" target="_blank" moz-do-not-send="true">murznn@gmail.com</a></div>
</div>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div
class="m_-9146112733550824948m_-6744869988627908258gmail_signature"
data-smartmail="gmail_signature">Best
regards,<br>
Alexey Murz Korepov.<br>
Email, Jabber: <a
href="mailto:murznn@gmail.com"
target="_blank"
moz-do-not-send="true">murznn@gmail.com</a></div>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div class="m_-9146112733550824948gmail_signature"
data-smartmail="gmail_signature">Best regards,<br>
Alexey Murz Korepov.<br>
Email, Jabber: <a
href="mailto:murznn@gmail.com" target="_blank"
moz-do-not-send="true">murznn@gmail.com</a></div>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div class="gmail_signature" data-smartmail="gmail_signature">Best
regards,<br>
Alexey Murz Korepov.<br>
Email, Jabber: <a href="mailto:murznn@gmail.com"
target="_blank" moz-do-not-send="true">murznn@gmail.com</a></div>
</div>
</blockquote>
<br>
</body>
</html>