<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>When i do "doveadm expunge -u user@domain.tld mailbox '*' all" then only the files in folders cur,new,tmp under maildir are removed - but everything else is still there, and the expunge action is also not synced to the second node via dsync.<br/>
<br/>
Thanks,<br/>
Alex</div>

<div> 
<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Montag, 04. Januar 2021 um 12:10 Uhr<br/>
<b>Von:</b> "Aki Tuomi" <aki.tuomi@open-xchange.com><br/>
<b>An:</b> "Alexander Rivanykov" <screenie@gmx.at><br/>
<b>Cc:</b> dovecot@dovecot.org<br/>
<b>Betreff:</b> Re: Aw: Re: deleting maildata from virtual users</div>

<div name="quoted-content">Shared folders go away if the user does not exist.<br/>
<br/>
Aki<br/>
<br/>
> On 04/01/2021 13:06 Alexander Rivanykov <screenie@gmx.at> wrote:<br/>
><br/>
><br/>
> Will this also take care of any dependencies?<br/>
> For example if one of the folders are shared with other users?<br/>
><br/>
> Thanks,<br/>
> Alex<br/>
> Gesendet: Montag, 04. Januar 2021 um 09:30 Uhr<br/>
> Von: "Aki Tuomi" <aki.tuomi@open-xchange.com><br/>
> An: "Alexander Rivanykov" <screenie@gmx.at>, dovecot@dovecot.org<br/>
> Betreff: Re: deleting maildata from virtual users<br/>
><br/>
> > On 04/01/2021 10:18 Alexander Rivanykov <screenie@gmx.at> wrote:<br/>
> ><br/>
> ><br/>
> > Hello,<br/>
> ><br/>
> > I'm running a redundant mailsystem dovecot where i'm using dsync to replicate maildata between both nodes.<br/>
> > How do i properly delete mail data from a virtual user when it get's removed from the db on both nodes?<br/>
> > For usermanagement i'm using postfixadmin and can run a postdeletion script and can login into both nodes and manually delete the mail data but wonder if there is a better solution.<br/>
> ><br/>
> > Thanks,<br/>
> > Alex<br/>
><br/>
> You can also use `doveadm expunge` to delete all mail, but manual rm -rf works just as well.<br/>
><br/>
> Aki</div>
</div>
</div>
</div></div></body></html>