more info about deleting users
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@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 well
In 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 05/02/2016 03:19 AM, Steffen Kaiser wrote:
On Mon, 2 May 2016, Tom Sommer wrote:
On 2016-04-29 16:25, Matteo Gaito Test Account wrote:
In 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.
You also need to delete any aliases that are associated with that user in your MTA. And any contacts associated with that address in your webmail/CardDAV system. And any calendars associated with it in your CalDAV system. And so on.
Moreover, unless you plan to give root CLI access to your support people, there needs to be a way to figure out who was removed from SQL and then perform the necessary cleanup (as root) later on.
I solved this for my own exact use case with mailshears:
http://michael.orlitzky.com/code/mailshears.php
If you use Dovecot with the PostfixAdmin schema in PostgreSQL, and your filesystem layout is <domain>/<user>, then it will work for you out-of-the-box. It also supports Roundcube, AgenDAV, and DAViCal.
Any user accounts for Dovecot, Postfix, AgenDAV, DAViCal, or Roundcube can be,
Pruned (cleaned up after someone removes them from PostfixAdmin).
Removed directly.
And even renamed! Yes, this works:
# mailshears mv michael@orlitzky.com mjo@orlitzky.com
There are examples of everything in the man page.
Like I said, right now it's tailored exactly for my mail system. But, everything is well-designed and implemented by plugins. If you want to support LDAP or anything else, it can probably be done with a plugin.
I would also happily accept patches for MySQL support, or to make the filesystem layout configurable, or anything like that.
On May 2, 2016 at 9:56 AM Tom Sommer mail@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
// Tom
You could try using fs commands that are available in doveadm HTTP API.
Aki Tuomi
On 2016-05-04 20:33, aki.tuomi@dovecot.fi wrote:
On May 2, 2016 at 9:56 AM Tom Sommer mail@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
You could try using fs commands that are available in doveadm HTTP API.
Looks doable. Any documentation? :)
On May 9, 2016 at 10:01 AM Tom Sommer mail@tomsommer.dk wrote:
On 2016-05-04 20:33, aki.tuomi@dovecot.fi wrote:
On May 2, 2016 at 9:56 AM Tom Sommer mail@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
You could try using fs commands that are available in doveadm HTTP API.
Looks doable. Any documentation? :)
http://wiki2.dovecot.org/Design/DoveadmProtocol/HTTP
Aki Tuomi
On 9. maj 2016, at 09.11, aki.tuomi@dovecot.fi wrote:
On May 9, 2016 at 10:01 AM Tom Sommer mail@tomsommer.dk wrote:
On 2016-05-04 20:33, aki.tuomi@dovecot.fi wrote:
On May 2, 2016 at 9:56 AM Tom Sommer mail@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
You could try using fs commands that are available in doveadm HTTP API.
Looks doable. Any documentation? :)
I meant the FS command :)
participants (6)
-
aki.tuomi@dovecot.fi
-
Matteo Gaito Test Account
-
Michael Orlitzky
-
Steffen Kaiser
-
Timo Sirainen
-
Tom Sommer