Hi, i've search a lot in order to find a way to delete account by dovecot but i found only this way http://dovecot.org/list/dovecot/2011-November/079273.html It's possible today delete a maildir remotely with doveadm or with dovecot api? Thanks Matteo
On 29 Apr 2016, at 17:25, Matteo Gaito Test Account <me at mgaito.net> wrote:> > Hi, > > i've search a lot in order to find a way to delete account by dovecot but i > found only this way > > http://dovecot.org/list/dovecot/2011-November/079273.html > > It's possible today delete a maildir remotely with doveadm or with dovecot api?It would be difficult to write such a command to find all the files and database entries without explicitly adding such deletion-code to every plugin that writes something somewhere, which seems like an unnecessary large amount of work. Since it couldn't work for all installations anyway, I'd rather not make something that maybe works in some installations. What I am planning though is to make it possible to add external scripts that can get executed via doveadm/API. This would allow writing a script that deletes all of user's data and there could be some example scripts as well.
On 2016-04-29 16:25, Matteo Gaito Test Account wrote:> i've search a lot in order to find a way to delete account by dovecot > but i > found only this way > > http://dovecot.org/list/dovecot/2011-November/079273.html > > It's possible today delete a maildir remotely with doveadm or with > dovecot api?Would love this as well // Tom
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 2 May 2016, Tom Sommer wrote:> On 2016-04-29 16:25, Matteo Gaito Test Account wrote: > >> i've search a lot in order to find a way to delete account by dovecot but i >> found only this way >> >> http://dovecot.org/list/dovecot/2011-November/079273.html >> >> It's possible today delete a maildir remotely with doveadm or with dovecot >> api? > > Would love this as wellIn fact, I would like to have: + full user backup + full user removal + restore of backup'ed user incl. all data, Dovecot creates / maintains by itself, such as Quota, ACLs (of deleted user to other mailboxes), messages and all settings of mailboxes, indexes etc.pp. however, part of the user data comes from my LDAP, there are some symlink tricks for some accounts, and some user data is faked depending on the protocol used. Because Dovecot is such flexible, I guess, there are some pitfalls, Timo & company cannot make a reliable code for. Timo pointed out, that there is no internal "vision" of backup / removal in the current API and therefore one has to extend the API and check every backend driver / plugin, if it stores user information and how to backup / delete / restore it. To make this reliable as Time wants Dovecot to be it will take some resources. - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEVAwUBVyb/gHz1H7kL/d9rAQLSCQgAs2P+QMUf082HHfjUaxGyd9B7/3FSeixh 63Pucgr+x8tJKH+BRkN4sEonXbHuQ7pkfmmA+2KughhAgCWhxlX0ZqsuXFvFSxS4 z9bwckx/Y1/FHZTKGLwlVQ/8b1HR3AkCeWv9hvw1bxBIa2JhPhe0SkVKwnF0yT/m mxmOKws7TxXT+jRedA3WXUvKbXM5ntgZi5s+y+Wb466uKNzdTw2GZZyHbg5ppgL2 eAr6pS0ZT5cgT83dN3/a23cpldX+0gKvyXWI/cv+baMUiKJ3xoTXfNsSvHGBIWsV mCUXuVZhGzBjPRqOvtExcXDuR9qFE6EMMMmPngYtghpz8y+juWBWAw==dbJ8 -----END PGP SIGNATURE-----
> On May 2, 2016 at 9:56 AM Tom Sommer <mail at tomsommer.dk> wrote: > > > > On 2016-04-29 16:25, Matteo Gaito Test Account wrote: > > > i've search a lot in order to find a way to delete account by dovecot > > but i > > found only this way > > > > http://dovecot.org/list/dovecot/2011-November/079273.html > > > > It's possible today delete a maildir remotely with doveadm or with > > dovecot api? > > Would love this as well > > // TomYou could try using fs commands that are available in doveadm HTTP API. --- Aki Tuomi