Hi,
Quoting Marco <falon@xxxxxxxxxxxxxxxx>:
Hello.
I always trusted on cyradm `dm`. No need else, or there are some bug?
I have recently found some directories and mails that where left over on
the archive partition. But I did not have the time to investigate further.
If your setup involves other databases such as LDAP you should
provide by your own (For instance I use something like this
https://github.com/falon/cyr_scripts).
If you delete a user added in other account alcs, these acl aren't
purged. On cyrus3 I remember of a config like delete_unsubscribe
that could be useful, but I'm not sure.
Cheers
Marco
Il 10/11/2020 02:38, Deborah Pickett ha scritto:
Hi Cyrus list,
Is there a canonical list of steps to completely purge a user from
a Cyrus server?
I need to remove a user from a 3.2 server. Here is what I have
already done:
- Deleted the user from the linked LDAP database so that mailboxes
won't get automatically created again if someone sends a mail to
them.
- Copied the filesystem folders containing the user's mailboxes to
offline storage.
- Deleted the user's mailboxes in `cyradm` (First running `sam` to
permit the cyrus user to run `dm`, then running `dm`).
I am happy to let these deleted mailboxes expire automatically
after the normal expiry period. Or I could force-delete them,
whatever.
But I don't think I'm done yet. There will still be mentions of
the user in various files in /var/lib/cyrus. My understanding is
that there is no one file that corresponds to a "master list" of
users, like there would be in a traditional relational database. A
user exists merely by virtue of being mentioned in other databases.
Files in /var/lib/cyrus:
backups.db
annotations.db
deliver.db [*]
domain/x/xxxxx/quota/u/user.uuuuu
domain/x/xxxxx/shared.counters
domain/x/xxxxx/user/u/uuuuu.*
mailboxes.db [*]
shared.counters
statuscache.db
tls_sessions.db [*]
user/uuuuu.*
user_deny.db
I think the ones marked [*] will be taken care of for me in various
ways, but the others? Do I have to manually run `cyr_dbtool
delete` to remove any mention of the user in these databases? Can
I just delete the files matching uuuuu's name?
Also the user might be granted access to other mailboxes (shared or
other users) so am I going to have to run `cyradm` `dam` to clear
out any mention of the user?
--------------------------------------------------------------------------------
Michael Menge Tel.: (49) 7071 / 29-70316
Universität Tübingen Fax.: (49) 7071 / 29-5912
Zentrum für Datenverarbeitung mail:
michael.menge@xxxxxxxxxxxxxxxxxxxx
Wächterstraße 76
72074 Tübingen
------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/T885fb5bdec9b8b7e-M19f8331923757fed28d1c523
Delivery options: https://cyrus.topicbox.com/groups/info/subscription