Thanks Timo! Since I've been running rc10 again dovecot stopped aborting. By the way, when I used the create_shares.pl script, it created a symlink for every file in the directory to be shared. Simple symlinking the dir seemed to 'almost' work but for the keyword file errors. Upgrading to rc15 fixes the problem as well, the Permission Denied message still comes up, but dovecot no longer aborts. Will try the create_shares.pl script again and see where my symlink-config is wrong. FWIW I wouldn't want any undocumented behaviour in dovecot just because I'm a stupid twat... Kind regards, Spil. On 20/11/06, Spil Oss <spil.oss@googlemail.com> wrote:
That's indeed very standard, but it was complaining before (up to rc10) but not aborting.
Dovecot keeps resetting the mode and owner on the keyword file
lrwxr-xr-x 1 user1 user 37 Nov 9 21:48 .MeldWelSpam -> /home/sharedmail/Maildir/.MeldWelSpam
$ ls -l /home/sharedmail/Maildir/.MeldWelSpam total 68 drwxrwx--- 2 sharedmail sharedmail 1024 Nov 16 16:49 cur -rw------- 1 user2 sharedmail 50 Nov 16 16:49 dovecot-keywords -rwxrws--- 1 sharedmail sharedmail 0 Oct 17 15:01 dovecot-shared -rw-rw---- 1 user2 sharedmail 12451 Nov 16 16:49 dovecot-uidlist -rw-rw---- 1 sharedmail sharedmail 712 Nov 16 16:51 dovecot.index -rw-rw---- 1 sharedmail sharedmail 17408 Oct 17 14:58 dovecot.index.cache -rw-rw---- 1 sharedmail sharedmail 26436 Nov 16 16:51 dovecot.index.log -rwxrws--- 1 sharedmail sharedmail 0 Oct 17 14:39 maildirfolder drwxrwx--- 2 sharedmail sharedmail 512 Nov 14 21:41 new drwxrwx--- 2 sharedmail sharedmail 1536 Nov 16 16:49 tmp
It seems that whoever gets there first, creates the dovecot-keywords file with perms 600 and subsequent users of the shared folder are out of luck.
# chown sharedmail:sharedmail dovecot-keywords dovecot-uidlist ; chmod 660 dovecot-keywords #ls -l dovecot-keywords dovecot-uidlist -rw-rw---- 1 sharedmail sharedmail 50 Nov 16 16:49 dovecot-keywords -rw-rw---- 1 sharedmail sharedmail 12451 Nov 16 16:49 dovecot-uidlist
Moving some folders into the MeldWelSpam folder as user1 # ls -l dovecot-keywords dovecot-uidlist -rw------- 1 user1 sharedmail 258 Nov 16 16:57 dovecot-keywords -rw-rw---- 1 user1 sharedmail 12736 Nov 16 16:57 dovecot-uidlist
As long as dovecot keeps setting the mode to 600, I can't see how I get this fixed.
Spil.
On 16/11/06, Odhiambo WASHINGTON <odhiambo.raburu@wananchi.com> wrote:
* On 16/11/06 16:17 +0100, Spil Oss wrote: | Just upgraded to rc14 and problem persists. | | On 16/11/06, Spil Oss <spil.oss@googlemail.com> wrote: | >Hi all, | > | >After rc10 I have problems with imap and imaps | > | >Hi all, | > | >After rc10 I have problems with imap and imaps | > | >Nov 16 15:42:39 beastie dovecot: IMAP(user1): | >open(/home/user1/Maildir/.MeldWelSpam/dovecot-keywords) failed: | >Permission denied | >Nov 16 15:44:09 beastie dovecot: IMAP(user2): | >open(/home/user2/Maildir/.MeldWelSpam/dovecot-keywords) failed: | >Permission denied | >Nov 16 15:44:09 beastie dovecot: IMAP(user2): file maildir-keywords.c: | >line 222 (maildir_keywords_lookup_or_create): assertion failed: | >(mk->synced) | >Nov 16 15:44:09 beastie dovecot: child 98798 (imap) killed with signal 6 | >Nov 16 15:46:10 beastie dovecot: IMAP(user2): | >open(/home/user2/Maildir/.MeldWelSpam/dovecot-keywords) failed: | >Permission denied | >Nov 16 15:46:10 beastie dovecot: IMAP(user2): file maildir-keywords.c: | >line 222 (maildir_keywords_lookup_or_create): assertion failed: | >(mk->synced) | >Nov 16 15:46:10 beastie dovecot: child 98819 (imap) killed with signal 6 | > | >The Permission denied messages where there in rc10 as well, but that | >was not causing problems. These folders are symlinks to shared spam | >and ham folders for spamassassin learning. | > | >Any clue on how to fix this? | > | >FreeBSD-i386 6.1-RELEASE-p10 | >dovecot-1.0.r13 from ports
"Permission Denied" is such a straight error message that you should be able to figure out and fix, everything being standard[1]
What are the permissions on that folder (.MeldWelSpam)? Is it really owned by user2? Dovecot wants to write to it, but is being denied that chance. It should be writable by dovecot, I believe. So that folder should be group writable and dovecot should be in that group.
But again, perhaps we should see the permissions on the dovecot binary also, because dovecot should be writing there "as user2" (suid), yes?
[1] I suppose you are installing dovecot using the ports tree and that you have not tweaked your box beyond your own comprehension. I don't see
-Wash
http://www.netmeister.org/news/learn2quote.html
DISCLAIMER: See http://www.wananchi.com/bms/terms.php
-- +======================================================================+ |\ _,,,---,,_ | Odhiambo Washington <wash@wananchi.com> Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922 '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121 +======================================================================+
Garbage In -- Gospel Out.