cyrusimap / cyrus-imapd

Cyrus IMAP is an email, contacts and calendar server
http://cyrusimap.org
Other
544 stars 149 forks source link

3.0.5 in murder setup: already deleted mailbox with xlist flag no more creatable #2319

Open slauffer opened 6 years ago

slauffer commented 6 years ago

We noticed that we can not create a mailbox with a special use flag on a backend server (f.e. user.test.SPAM) which has been deleted before.

We also noticed an error message during the first time we are setting the specialuse flag.

So how to reproduce...:

On a backend server we have in our imapd.conf a xlist entry and use cvt_xlist_specialuse to set the flag for these mailboxes. The imapd.conf entry is:

xlist-spam: SPAM

After creating a mailbox user.test with specialuse subfolders we are starting the cvt_xlist_specialuse for the first time throws an error, see below:

cyrus@imap:~> cvt_xlist_specialuse -v user.test.* will set \spam for folders named SPAM cyrus/cvt_xlist_specialuse[7369]: couldn't authenticate to backend server: SASL library is not initialized cyrus/cvt_xlist_specialuse[7369]: mupdate_connect failed: no auth status cyrus/cvt_xlist_specialuse[7369]: cannot connect to mupdate server for update of 'user.test.SPAM' set specialuse \spam for user.test.SPAM [...]

Checking the flags on this mailbox shows us that the flag is set correctly. And a second try with cvt_xlist_specialuse says the same:

cyrus@imap:~> cvt_xlist_specialuse -v user.test.* will set \spam for folders named SPAM not setting specialuse \spam for user.test.SPAM, already exists as user.test.SPAM [...]

Now delete user.test.SPAM and after this the a createmailbox fails with: createmailbox: unable to reserve mailbox on mupdate server

It seems to me that we have a problem/failure in how the flags are stored/updates in a murder setup(?).

elliefm commented 6 years ago

Are you able to run ctl_mboxlist -d on each of the frontend, backend, and mupdate servers, and compare the output for this mailbox?

I'm not sure what to expect to see, but hopefully seeing it will be enlightening.

slauffer commented 6 years ago

Hello!

The backend server here is called pmailfr-hx and the frontend is mailproxy-hx.

On the backend..:

pmailfr-hx:~ # /usr/lib/cyrus/bin/ctl_mboxlist -d| grep test user.test 0 00 test lrswipkxtecdan cyrus lrswipkxtecdan user.test.test 16 (null)

...and on the frontend:

mailproxy-hx:~ # /usr/lib/cyrus/bin/ctl_mboxlist -d| grep test user.test 1 pmailfr-hx!00 test lrswipkxtecdan cyrus lrswipkxtecdan

Hm... would it be helpfull for you if i would set up a clean and new murder?

Zitat von elliefm notifications@github.com:

Are you able to run ctl_mboxlist -d on each of the frontend,
backend, and mupdate servers, and compare the output for this mailbox?

I'm not sure what to expect to see, but hopefully seeing it will be
enlightening.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/cyrusimap/cyrus-imapd/issues/2319#issuecomment-383790427

-- Liebe Gruesse, with best regards Stephan Lauffer

Pedagogical University Freiburg - Germany http://www.ph-freiburg.de/zik/ Fon/ Fax: +49 761 682 -559/ -486