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 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".
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/
On Wed, 2007-05-09 at 15:30 +0200, Nagyon Almos wrote:
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!
The base filename continues up to the ':' character in the filename, so if there different characters between the '.' and ':' then they're still treated as different files. Try something like:
ls|sed 's/:2,.*//'|sort|uniq -D
Is there any way to make dovecot to not correct these? Or it is a very important that maildir files should have different basenames?
If you have 10 files with the same basename, Dovecot shows only one of them and the rest are ignored (and if it had write permissions, they might get overwritten as well).
participants (3)
-
Andy Shellam
-
Nagyon Almos
-
Timo Sirainen