Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ceph Namespace for user emails #109

Closed
jrse opened this issue Nov 16, 2017 · 1 comment
Closed

Ceph Namespace for user emails #109

jrse opened this issue Nov 16, 2017 · 1 comment

Comments

@jrse
Copy link
Contributor

jrse commented Nov 16, 2017

There is the requirement to change a users username or UID. Currently we are using this information as the ceph namespace for all email objects.

If a admin changes the username / UID of a user. This information needs to be publicated to the dovecot-ceph-plugin and a mechanism needs to be designed to handle this change.

A discussed first approach is to generate a unique ID for each user and save the mapping in a special lookup object.

Task is to analyse (additional ceph calls, doveadm interface, integration into plugin) this approach and implement it.

jrse added a commit that referenced this issue Nov 20, 2017
setting: rbox_generate_namespace = true| false 
the default is false.

in case rbox_generate_namespace is set to true,
a <username>_namespace objekt is created as value 
the newly generated namespace name is set. all mails
belonging to this user will be saved in the generated namespace.
jrse added a commit that referenced this issue Nov 21, 2017
-> copy mail failed when executed twice, due to invalid
cluster->is_connected() in open_connection().
@jrse
Copy link
Contributor Author

jrse commented Nov 21, 2017

  • Doveadm user commands:
    doveadm user => performs a user lookup and displays user information

There is no doveadm command besides dsync, to change a doveadm mailuser name. The recommend workflow to rename a mailuser is to kill all the user's existing connections, rename the directory and update the user database entry.
In rbox case this needs to be done in a script with the additional step to rename the users namespace object.

jrse added a commit that referenced this issue Nov 28, 2017
config is using omap values.
jrse added a commit that referenced this issue Nov 28, 2017
jrse added a commit that referenced this issue Nov 28, 2017
- new class rados-ceph-json-config (read, write json)
jrse added a commit that referenced this issue Nov 28, 2017
jrse added a commit that referenced this issue Dec 4, 2017
print config
rmb -cfg [-obj rados_cfg] ls	 -
update config value
rmb -cfg [-obj rados_cfg] U key=value
create configuration
rmb -cfg [-obj rados_cfg] C
jrse added a commit that referenced this issue Dec 4, 2017
jrse added a commit that referenced this issue Dec 4, 2017
jrse added a commit that referenced this issue Dec 4, 2017
- delete mail option
- bugfix conifg
jrse added a commit that referenced this issue Dec 5, 2017
@jrse jrse closed this as completed Dec 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant