Re: Purging a user from the Cyrus database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

 I always trusted on cyradm `dm`. No need else, or there are some bug?
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?


------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/T885fb5bdec9b8b7e-M28315b386118a7448babcaab
Delivery options: https://cyrus.topicbox.com/groups/info/subscription




[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux