[courier-users] [RE:]File system permissions-shared folders of courier-imap
Brought to you by:
mrsam
From: tovis <mai...@fr...> - 2008-03-21 19:46:05
|
>tovis writes: > >> One of my problem is this centence from the documentation: >> >> "The sharable maildir owner can arrange for mail to be delivered >> directly to this folder, and the first one to open it will put >> the message into cur." >> >> OK! - how? > >Do whatever you need to do with exim to arrange mail to be delivered to that >folder. Of course, everyone with access to that folder should have write >permission on the folder's new and cur directories. To rename a file, you >need to have write permissions on both the source and the destination >folders. You do know that, don't you? The documentation does not explain how >filesystem permissions work, you should know that already, yourself. If you >use system accounts, you need to understand how filesystem permissions work. >If you don't, you won't be able to figure out anything, and you should be >using virtual accounts. > My system is Debian Etch, using courier imap (ver.4.1.1.20060828-5) with exim4 as mta. I have created several user0..n Created regular Maildir for each. Created shared mail directory for user0: maildirmake -S /home/user0/Mailshare maildirmake -s write,group -f daily /home/user0/Mailshare maildirmake --add msg=/home/user0/Mailshare /home/user0/Maildir the rights for .daily/new drwxrwx--T create .forward user0-msg -> save $home/Mailshare/.msg 006 swap to user1 maildirmake --add msg=/home/user0/Mailshare /home/user1/Maildir /usr/sbin/sendmail -v user0-msg@localhost From: user1@localhost To: user0-msg@localhost Subject: test message #0001 test message #0001 . As a result, the message is landed in the right place of the shared folder of user0, but when MUA tries to open shared folder, courier imap said in the syslog failed: Operation not permitted - when try to "rename" the file in folder "new" to "cur"! I have some kind of work around, create a mailfake with "new" is a soft link right to the "cur" of the shared folder, but I'm not sure that it would be good. Any ideas? |