Configuration Backup - Shared Mailboxes missing

(Andreas Schloegl) #1

I did a planned disaster recovery this weekend and was impressed that this was really well working!
But as usually with complex software there are some bugs:
The configuration backup does not include any information about shared mailboxes, therefore restoration is not possible.

Workaround is easy:

  1. restore configuration from backup
  2. manually add shared mailboxes as needed
  3. restore data
    Shared mailboxes will now include old data

(Markus Neuberger) #2

I can confirm this.

On NS7.4 I created a shared mailbox, made a config backup, deleted the mailbox and restored the config. No shared mailbox.

(Giacomo Sanchietti) #3

I think this is a bug, do you agree @davidep?

(Davide Principi) #4

I agree it is a bug because (like Samba shared folders) shared mailboxes definition must be included into the configuration backup.

It is now included in data backup as the contents of the whole /var/lib/nethserver/vmail/vmail/ directory. We should cherry-pick some dovecot-specific files to cut out the mailboxes definition and permissions.

Edit: bug link

The package is ready for testing /cc @asl @quality_team

(Markus Neuberger) #5

I tested it on a fresh installed and updated NS7.4 VM and Shared mailboxes are backuped and restored now via config backup.

But owner groups can not be added anymore. Adding some owner groups, submit, edit, no owner groups.

I tried to downgrade but no success, just can’t add owner groups anymore, also tried another browser but no luck.

(Davide Principi) #6

Great catch Markus, I’ll fix it today

(Alessio Fattorini) #7

Could you please assign the issue to you? So everybody knows that it’s up to you.

In which case(s) should I set myself as assignee on github?
(Markus Neuberger) #8

Sorry, I am new to GitHub and I don’t want to mess things up. It’s not exactly the same issue (backup config/owner groups) and I think I can’t assign it to me because I don’t have rights (no checkbox). Should I just do a comment?

(Alessio Fattorini) #9

You’re right, if it’s not the same issue we have to keep them separated

(Davide Principi) #10

A new package is available from testing repository

(Markus Neuberger) #11

Thanks for providing the testing update. I tested it now and in a deleted and restored shared mailbox the owner groups are not editable anymore.

Steps to reproduce:

  • installed nethserver-mail-server from testing
  • created test users, groups and shared mailboxes (testuser1, test1, testmb1 etc)
  • backup config
  • delete some shared mailboxes
  • restore config
  • editing owner groups in deleted and restored shared mailboxes not possible. After submit nothing changes.

Editing works until restoring the config. If a shared mailbox is not deleted before restoring it works normally.

A shared mailbox with this behaviour is also not deletable:

(Davide Principi) #12

Thank you again. I’ve some troubles with non-recursive tar behavior :blush:

Please test it again. I hope it works now!

(Markus Neuberger) #13

Edit and delete after restore works as expected! :+1: Thank you!

(Davide Principi) #14

Do you want to update the GH issue?

  • add the “verified” label
  • remove the “testing” label
  • remove the assignment
  • optionally a comment about the QA phase

Do you have enough rights to do it?

(Andreas Schloegl) #15

thanks for testing and solving this issue to all!

(Markus Neuberger) #16


(Markus Neuberger) #17

Haha I tried it from mobile phone and there was no assignees or labels box. Now I know how it works. :blush: