Deleting Public Mailbox?
Hi!
What am I doing wrong here?
Mission: Delete old empty sub mailboxes in our Public mailspace
acl-file contents:
MailingLists user=dag lrwstipekxa MailingLists/* user=dag lrwstipekxa
Didn't work from my mail client so tried:
Command tried:
% doveadm mailbox delete -s MailingLists/Glibc -u dag doveadm(dag): Error: Can't delete mailbox MailingLists/Glibc: Permission denied
% doveadm acl debug -u dag "MailingLists/Egcs" doveadm(dag): Info: Mailbox 'Egcs' is in namespace 'MailingLists/' doveadm(dag): Info: Mailbox path: /usr/local/var/mail/MailingLists/mailboxes/Egcs/dbox-Mails doveadm(dag): Info: All message flags are shared across users in mailbox doveadm(dag): Info: User dag has rights: lookup read write write-seen write-deleted insert post expunge create delete admin doveadm(dag): Error: Mailbox not found from dovecot-acl-list, rebuilding doveadm(dag): Info: Mailbox is in public namespace doveadm(dag): Info: Mailbox MailingLists/Egcs is visible in LIST
Must be a config I have wrong. Would like to get rid of them...
Best Dag
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 17 Dec 2015, Dag Nygren wrote:
What am I doing wrong here?
Mission: Delete old empty sub mailboxes in our Public mailspace
acl-file contents:
MailingLists user=dag lrwstipekxa MailingLists/* user=dag lrwstipekxa
Didn't work from my mail client so tried:
Command tried:
% doveadm mailbox delete -s MailingLists/Glibc -u dag doveadm(dag): Error: Can't delete mailbox MailingLists/Glibc: Permission denied
This looks like problems with the file system permissions.
% doveadm acl debug -u dag "MailingLists/Egcs" doveadm(dag): Info: Mailbox 'Egcs' is in namespace 'MailingLists/' doveadm(dag): Info: Mailbox path: /usr/local/var/mail/MailingLists/mailboxes/Egcs/dbox-Mails doveadm(dag): Info: All message flags are shared across users in mailbox doveadm(dag): Info: User dag has rights: lookup read write write-seen write-deleted insert post expunge create delete admin doveadm(dag): Error: Mailbox not found from dovecot-acl-list, rebuilding doveadm(dag): Info: Mailbox is in public namespace doveadm(dag): Info: Mailbox MailingLists/Egcs is visible in LIST
Must be a config I have wrong. Would like to get rid of them...
Best Dag
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVnKYuHz1H7kL/d9rAQIHvQgAptsGzVn7ijVYjJp8Ykr24VNMRoA6lPNP D/n6J6C3gepb7QthziiwAT2LO0kpYSIA1Em2VtXk/Ou+iiOrYql9cEumMf7M0ODV qcAsD5IPAnNOWkqlyoc/us8MUkmPiTPH8K4MRF8MFrdmYzxK/Shjt17SAB8k4ouJ swNMUaxmYPIdTS9HcKigdihyetcfen0roTTwxG5SDI9cE32CF89w4BOlHFz93tnb fnMqXQ+NxXODT6fB/kVK4Q4oStYfEjbhaF5IiPHZnVm1lbcjZhlWIlEgNLNZ38lf KGimqMa/Wz8srJ7EE8OVF3yTkODw2K1ppMFROYmN+G/oOR0XXPk9jA== =dgfn -----END PGP SIGNATURE-----
On Thursday 17 December 2015 12:12:56 Steffen Kaiser wrote:
On Thu, 17 Dec 2015, Dag Nygren wrote:
What am I doing wrong here?
Mission: Delete old empty sub mailboxes in our Public mailspace
acl-file contents:
MailingLists user=dag lrwstipekxa MailingLists/* user=dag lrwstipekxa
Didn't work from my mail client so tried:
Command tried:
% doveadm mailbox delete -s MailingLists/Glibc -u dag doveadm(dag): Error: Can't delete mailbox MailingLists/Glibc: Permission denied
This looks like problems with the file system permissions.
Thanks!
But the files and directories are all owned by me (dag).
Also:
% doveadm acl get -u dag MailingLists
ID Global Rights
user=dag admin create delete expunge insert lookup post read write
write-deleted write-seen
%
But (in spite of the "MailingLists/* user=dag lrwstipekxa")
% doveadm acl get -u dag MailingLists/Egcs ID Global Rights %
Isn't the MailingLists/* supposed to work?
Dovecot version is: 2.2.19
Best Dag
On Thursday 17 December 2015 16:53:20 Dag Nygren wrote:
Isn't the MailingLists/* supposed to work?
Just noticed that my dovecot was NOT using the global file at all, but keeps a local dovecot-acl in the mailbox directory.
And that led me to the fact that my global ACL file pointer was actually a directory (from an ancient dovecot install)
Changing that to a common file made everything work as expected :-)
This looks like problems with the file system permissions.
Addition to my previous error with the global file being a directory:
Seems like Steffen was right on the spot here anyway:
The directory for the mailbox was indeed owned by me with all 775 permissions and also the MailingLIsts/mailboxes.
But the top level Mailinglists had for some reason a 555 permission and "doveadm delete" tried to write a temp file into this for some obscure reason and failed which failed the delete.
Found it by strace -f doveadm delete
Now fully solved!
participants (2)
-
Dag Nygren
-
Steffen Kaiser