No access to moved Public Mailbox

NethServer Version: 8
Module: MAIL

Hi Folks,

Long time Neth user who recently moved to 8, new install/mail migration.

I have a number of ‘Public’ mailboxes setup that are shared between my users. Unfortunately one of my users in Thunderbird dragged one of the public mailbox folders into another mailboxes folder i.e.:

Layout used to be:
→ Public/Family
→ Public/Pets

New layout:
→ Public/Family/Pets

Unfortunately simply dragging the ‘Pets’ folder back to the ‘Public’ root folder in Thunderbird doesn’t work.

I thought I’d restore or worst case delete the folder using the web gui, nope the Pets folder public mailbox is no longer listed.

Previously I’d logon to the Neth server and use doveadm to find and remove the folder but in this brave new container world I’m not sure how to do this anymore.

Please help!

To run doveadm in the container you could use following one liner:

runagent -m mail1 podman exec -ti dovecot doveadm

or enter the dovecot container…

runagent -m mail1 podman exec -ti dovecot sh

…and run doveadm there:

/var/lib/vmail # doveadm

PERFECT! Thank you!

I’d been beavering away and had discovered podman, then come up with the following to delete my errant folder:

sudo -u mail1 podman exec -ti dovecot doveadmin delete …

Is there a reason to use ‘runagent’ over ’ sudo -u’

Many thanks for the prompt reply, very much appreciated.

1 Like

Yes, it cares about right environment and additional options, see also ns8-core/core/imageroot/usr/local/bin/runagent at fb962ea09159577273ebf2cbd412193c933f844a · NethServer/ns8-core · GitHub or Rootless vs Rootfull | NS8 dev manual

I found that ssh or sudo are not working in any case.

Many thanks, the sudo did work for me although I had to go through some additional steps to fully resolve my issue, I’m guessing ‘runagent’ would have perhaps prevented the need for these.

Step1 - doveadmin delete of ‘Family/Pets’
Step2 - doveadmin create of ‘Pets’
Step3 - Pets now visible via GUI, delete it
Step4- re-create Pets using the GUI

I found if I didn’t do step 2 and tried to jump to re-creating the mailbox I received and error from the GUI.

I’m going to build a test box so I can safely play with runagent.

Again thank you for your help.

1 Like