<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div>Dovecot has hardcoded root prevention. For delivery, too.</div><div><br></div><div id="composer_signature"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">---<div>Aki Tuomi</div><div>Dovecot oy</div></div><div><br></div><div style="font-size:100%;color:#000000"><!-- originalMessage --><div>-------- Original message --------</div><div>From: "@lbutlr" <kremels@kreme.com> </div><div>Date: 04/05/2018  15:24  (GMT+02:00) </div><div>To: dovecot <dovecot@dovecot.org> </div><div>Subject: expiring mail from root's Maildirs? </div><div><br></div></div>I would like to delete old mail from root's sent mailbox but doveadm throws errors when I try to do this, not wanting to process root's mail at all (I am running the commands as root, naturally)<br><br># doveadm expunge -u root mailbox Sent SENTBEFORE 1-Apr-2018<br>doveadm(root): Error: Invalid settings in userdb: userdb returned 0 as uid<br>doveadm(root): Error: User lookup failed: Invalid user settings. Refer to server log for more information.<br><br>The error makes me think this is intentional, and I can see that makes a sort of sense, but it still leaves me with a Sent box that grow forever until I manually go in and remove old mails.<br><br>I am using passed for userdb and pam for passdb:<br><br>passdb {<br>  username_filter = "!*@*"<br>  driver = pam<br>}<br>userdb {<br>  driver = passwd<br>}<br><br>Can I do this with doveadm or am  going to have to resort to either manually removing the mail (hah!) or just crontabbing a task to remove the files more than 30 days old?<br><br></body></html>