Hello All, I have been still struggling with the read only maildir and I think I found something: dovecot wants to rename a file but I/it have/has no rights to do that: dovecot: 2007-05-04 21:30:14 Error: IMAP(bela): rename(/home/store/oldmails/.personal/cur/1154939281.00005.pc1.S=1879:2,S, /home/store/oldmails/.personal/new/1178307014.P8610Q0M347618.pc1) failed: Permission denied Why dovecot wants to rename it? It is really a read only directory. Regards, A. ______________________________________________ 2600 ?ll?sb?l Te is tal?lsz megfelel?t! M?rn?ki, ?rt?kes?t?i, asszisztensi, p?nz?gyi ?s IT ?ll?sok a Jobline.hu-n! http://www.jobline.hu
I think the main question is, why do you have/want a read-only maildir? By definition a maildir is constantly changing. In your case, dovecot was trying to class a new e-mail as "read", hence the move from "new" to "cur." Other ways in which a maildir changes, is the changing of the message size (S=... flag in the filename), and adding new flags to the end of a message, as well as the obvious moving messages between folders etc. If you want to stop certain people from changing things in the maildir, you need to be looking at ACLs rather than file-system permissions. Andy. Nagyon Almos wrote:> Hello All, > > I have been still struggling with the read only maildir and > I think I found something: > dovecot wants to rename a file but > I/it have/has no rights to do that: > dovecot: 2007-05-04 21:30:14 Error: IMAP(bela): > > rename(/home/store/oldmails/.personal/cur/1154939281.00005.pc1.S=1879:2,S, /home/store/oldmails/.personal/new/1178307014.P8610Q0M347618.pc1) failed: Permission denied > > Why dovecot wants to rename it? It is really a read only directory. > > Regards, > A. > > > > ______________________________________________ > 2600 ?ll?sb?l Te is tal?lsz megfelel?t! > M?rn?ki, ?rt?kes?t?i, asszisztensi, p?nz?gyi ?s > IT ?ll?sok a Jobline.hu-n! http://www.jobline.hu > > > !DSPAM:37,463b8bee343941685111678! > > >
Hello, Thanks for your reply. I have some read only maildirs outside my home. Actually those files and directories does not belong to me, I am only a member of the group which can read those files and change to those directories. This is a bit overworried security: not to loose any data by accident deletion. I was happy to be able to use those read-only maildirs in mutt, therefore I tried to make it work under dovecot. I did not want all my emails in one folder, it would be too big, that is why I sorted them into very-old folder and not-so-old-and-recent folder. Hence the very-old folder does not change (except once a year or so). And I was happy when I saw that dovecot supports read-only maildirs. (And for some reasons, dovecot wants to rename the mail from cur to new!) So my questions is: Can I disable this renaming feature somehow? ACLs are great, but this option would be only the next, if this filesystem-permission approach fails to work. Regards, A. ______________________________________________ 2600 ?ll?sb?l Te is tal?lsz megfelel?t! M?rn?ki, ?rt?kes?t?i, asszisztensi, p?nz?gyi ?s IT ?ll?sok a Jobline.hu-n! http://www.jobline.hu
On Fri, 2007-05-04 at 21:38 +0200, Nagyon Almos wrote:> rename(/home/store/oldmails/.personal/cur/1154939281.00005.pc1.S=1879:2,S, /home/store/oldmails/.personal/new/1178307014.P8610Q0M347618.pc1) failed: Permission deniedThis doesn't happen normally. I think you have duplicates (same maildir basename) in the maildir and Dovecot is trying to fix it by renameing one of the files to a new base filename. I guess the error message should be updated to contain "Couldn't fix a duplicate maildir filename". -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070509/699cb547/attachment.bin>
Hello, <off> The boss is back: 10 replies in an hour :-))) </off> Thanks for your reply. I split my mailboxes with mb2md which was a very bad decision: not every mailbox started with the INTERNAL FOLDER DATA email and it lost them. It seems to have mixed up the filesnames too, because ls 1154939281.00005.pc1\,* | wc -l says 10 and they are different emails! Is there any way to make dovecot to not correct these? Or it is a very important that maildir files should have different basenames? Best wishes, A.>Timo Sirainen On Fri, 2007-05-04 at 21:38 0200, Nagyon Almos wrote: >> rename(/home/store/oldmails/.personal/cur/1154939281.00005.pc1.S=1879:2,S, >>/home/store/oldmails/.personal/new/1178307014.P8610Q0M347618.pc1) failed: >>Permission denied>This doesn't happen normally. I think you have duplicates (same maildir >basename) in the maildir and Dovecot is trying to fix it by renameing >one of the files to a new base filename. I guess the error message >should be updated to contain "Couldn't fix a duplicate maildir >filename".___________________________________________________________________________________________ "Diszlexi?s a gyermekem?" - 25 k?rd?ses gyorsteszt (H?l?s lesz ut?na, b?rmi is az eredm?ny!) http://www.varazsbetu.hu/diszlexiateszt/