Hi there, I cannot delete IMAP folders in new mailboxes. When trying to delete a folder in Thunderbird I get the error message "renaming not supported across conflicting directory permissions". Looking up the error on the web led me to checking the mailbox directory's permissions. They're inconsistent in new mailboxes. While every single directory in an old mailbox has "drwx--S---", some of the directories in a new mailbox have "drwxr-sr-x" instead. I'm not sure what that means. The folders with the later permissions are "Drafts", "Sent" and "Trash". Folders with the first permissions are "Junk", "Archives" and "Archives.2018". All folders were created by Thunderbird automatically. Now I wanted to delete "Archives.2018". What's the issue here? Why do folders created by the same MUA in the same event on the same mail server have different permissions and why can't I delete one of them (which would probably move it into the trash folder first)? Dovecot version is 2.2.22 on Ubuntu 16.04, Thunderbird is 52.6.0 on Windows 10. -Yves
On 06.03.2018 21:55, Yves Goergen wrote:> Hi there, > > I cannot delete IMAP folders in new mailboxes. When trying to delete a > folder in Thunderbird I get the error message "renaming not supported > across conflicting directory permissions". Looking up the error on the > web led me to checking the mailbox directory's permissions. They're > inconsistent in new mailboxes. While every single directory in an old > mailbox has "drwx--S---", some of the directories in a new mailbox > have "drwxr-sr-x" instead. I'm not sure what that means. The folders > with the later permissions are "Drafts", "Sent" and "Trash". Folders > with the first permissions are "Junk", "Archives" and "Archives.2018". > All folders were created by Thunderbird automatically. Now I wanted to > delete "Archives.2018". > > What's the issue here? Why do folders created by the same MUA in the > same event on the same mail server have different permissions and why > can't I delete one of them (which would probably move it into the > trash folder first)? > > Dovecot version is 2.2.22 on Ubuntu 16.04, Thunderbird is 52.6.0 on > Windows 10. > > -YvesYour problem is that your Trash folder appears to be on different volume than the folder you are attempting to delete. Aki
Ehm, really, no. There is only one volume and the entire directory structure in in the main file system. That clearly is not the case. I'm wondering why the directories have different permissions in the first place. Where are they defined? Yves ________________________________________ Von: Aki Tuomi Gesendet: Mi, 2018-03-07 10:50 +0100 On 06.03.2018 21:55, Yves Goergen wrote:> Hi there, > > I cannot delete IMAP folders in new mailboxes. When trying to delete a > folder in Thunderbird I get the error message "renaming not supported > across conflicting directory permissions". Looking up the error on the > web led me to checking the mailbox directory's permissions. They're > inconsistent in new mailboxes. While every single directory in an old > mailbox has "drwx--S---", some of the directories in a new mailbox > have "drwxr-sr-x" instead. I'm not sure what that means. The folders > with the later permissions are "Drafts", "Sent" and "Trash". Folders > with the first permissions are "Junk", "Archives" and "Archives.2018". > All folders were created by Thunderbird automatically. Now I wanted to > delete "Archives.2018". > > What's the issue here? Why do folders created by the same MUA in the > same event on the same mail server have different permissions and why > can't I delete one of them (which would probably move it into the > trash folder first)? > > Dovecot version is 2.2.22 on Ubuntu 16.04, Thunderbird is 52.6.0 on > Windows 10. > > -YvesYour problem is that your Trash folder appears to be on different volume than the folder you are attempting to delete. Aki
The issue still exists. Can anybody explain to me why dovecot creates IMAP folders with the wrong filesystem permissions? Every new folder that I create in the mailbox through Thunderbird (IMAP) has the wrong permission and cannot be deleted anymore. This looks like a dovecot bug to me. -Yves ________________________________________ Von: Yves Goergen Gesendet: Di, 2018-03-06 20:55 +0100 Hi there, I cannot delete IMAP folders in new mailboxes. When trying to delete a folder in Thunderbird I get the error message "renaming not supported across conflicting directory permissions". Looking up the error on the web led me to checking the mailbox directory's permissions. They're inconsistent in new mailboxes. While every single directory in an old mailbox has "drwx--S---", some of the directories in a new mailbox have "drwxr-sr-x" instead. I'm not sure what that means. The folders with the later permissions are "Drafts", "Sent" and "Trash". Folders with the first permissions are "Junk", "Archives" and "Archives.2018". All folders were created by Thunderbird automatically. Now I wanted to delete "Archives.2018". What's the issue here? Why do folders created by the same MUA in the same event on the same mail server have different permissions and why can't I delete one of them (which would probably move it into the trash folder first)? Dovecot version is 2.2.22 on Ubuntu 16.04, Thunderbird is 52.6.0 on Windows 10. -Yves
This sounds more like misconfiguration to me. Can you provide doveconf -n and full output of namei -vl /full/path/to/mailbox ---Aki TuomiDovecot oy -------- Original message --------From: Yves Goergen <nospam.list at unclassified.de> Date: 19/05/2018 18:51 (GMT+02:00) To: Dovecot Mailing List <dovecot at dovecot.org> Subject: Re: Cannot delete folder The issue still exists. Can anybody explain to me why dovecot creates IMAP folders with the wrong filesystem permissions? Every new folder that I create in the mailbox through Thunderbird (IMAP) has the wrong permission and cannot be deleted anymore. This looks like a dovecot bug to me. -Yves ________________________________________ Von: Yves Goergen Gesendet: Di, 2018-03-06 20:55 +0100 Hi there, I cannot delete IMAP folders in new mailboxes. When trying to delete a folder in Thunderbird I get the error message "renaming not supported across conflicting directory permissions". Looking up the error on the web led me to checking the mailbox directory's permissions. They're inconsistent in new mailboxes. While every single directory in an old mailbox has "drwx--S---", some of the directories in a new mailbox have "drwxr-sr-x" instead. I'm not sure what that means. The folders with the later permissions are "Drafts", "Sent" and "Trash". Folders with the first permissions are "Junk", "Archives" and "Archives.2018". All folders were created by Thunderbird automatically. Now I wanted to delete "Archives.2018". What's the issue here? Why do folders created by the same MUA in the same event on the same mail server have different permissions and why can't I delete one of them (which would probably move it into the trash folder first)? Dovecot version is 2.2.22 on Ubuntu 16.04, Thunderbird is 52.6.0 on Windows 10. -Yves -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20180519/e115dc12/attachment.html>
On May 19, 2018, at 09:51, Yves Goergen <nospam.list at unclassified.de> wrote:> > The issue still exists. Can anybody explain to me why dovecot creates IMAP folders with the wrong filesystem permissions? Every new folder that I create in the mailbox through Thunderbird (IMAP) has the wrong permission and cannot be deleted anymore.I don?t see this behavior at all, but I don?t use Thunderbird. Folders I create via mail clients have the right permissions and I can delete them from the clients as well. -- My main job is trying to come up with new and innovative and effective ways to reject even more mail. I'm up to about 97% now.
Yves Goergen wrote:> The issue still exists. Can anybody explain to me why dovecot creates > IMAP folders with the wrong filesystem permissions?On a lark, I looked through my dirs @ permissions. Shorted lines a bit so they'd fit w/o extra lines between them using: (get rid of text before permissions, and shorten user/group to a few letter) find . -type d -ls|sed -r 's/^\s*\S+\s+\S+\s+// ; s/linda(group)?/usr/g' Made it wasy to look down the 1st column and find where things were different. FWIW, using mbox format. My base permissions were : drwxrwxr-x most were: : drwxrwsr-x I noticed that subdirs I created *by hand* (to later move folders into), often had different permissions : drwxrwsr-- The first auto-dir created by dovecot (.imap under top dir) had some perms drawn from the base : drwxrwxr-- First auto-subdir created (INBOX) had : drwxrwxr-x BUT...had a different group -- one that I used ages ago before making sure that the username based group took priority. (I make each user's primary group one based on their username). Another imap created subdir (.imap/Junk) : drwxrwx--- took it's perms from the base file. Most of my mbox files have : -rw-rw-r-- but Junk was : -rw-rw---- (thus no 'r' bit on .imap/Junk) In all the cases, the folders that were different derived from manually created mboxes, *OR* a few auto-created MBOXES (like INBOX ... and likely 'Trash' -- but before using dovecot, I already had a 'Trash' mbox, so it just used it w/the same perms. In your case, the permissions likely derive from the umask that dovecot was(is?) running with when it created the 'builtin' files (like Trash, Inbox, etc..) Does that fit your case?