Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
courier imap sharing maildir inbox
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bludger
Guru
Guru


Joined: 09 Apr 2003
Posts: 389

PostPosted: Mon Jun 04, 2007 4:22 pm    Post subject: courier imap sharing maildir inbox Reply with quote

I would like to share the contents of a users (the sharer) inbox with courier-imap. When I added the share to my (the reader's) mail, I could only see the sub-folders, but could not see the inbox itself. What do I have to do to be able to see the inbox? Make a link in the inbox from .inbox -> . ?

Is there a cleaner way than this?
Back to top
View user's profile Send private message
di1bert
l33t
l33t


Joined: 16 May 2002
Posts: 963
Location: Oslo, Norway

PostPosted: Mon Jun 04, 2007 4:28 pm    Post subject: Reply with quote

What have you done to share the folders so far ? I wrote a little "How-TO" for my company on how
to do this. Perhaps try the following, making changes where necessary....

Quote:

Firstly, create your root shared folder with the following command:

maildirmake -s FolderName /path/to/folder

I used Shared as my FolderName and the /path/to/folder as /var/spool/mail/shared as the shared folder to use.

Then you're going to use another command to create the actual mail folders within your main shared folder with this:

maildirmake -s write -f NAME /same/path/as/above/folder

This will create a shared folder of NAME in the shared folder path provided in the first command. You can do this for as many folders are you require.

Finally we need to add it to the users mailaccounts who need shared folder access.

maildirmake --add FolderName /var/spool/mail/user@domain.co.za

Note you are adding FolderName from the second command to the users mailbox, not the individual mailboxes.


HTH

-m
Back to top
View user's profile Send private message
bludger
Guru
Guru


Joined: 09 Apr 2003
Posts: 389

PostPosted: Mon Jun 04, 2007 4:51 pm    Post subject: Reply with quote

This line does not seem to be correct:

Quote:
maildirmake -s FolderName /path/to/folder


Is that a big or small s? A big S only has one parameter - the maildir and a small has has a parameter of the mode.

I don't have virtual mailboxes, but rather filesystem based. I can setup the permissions by hand. The problem is that when I use the --add command, it shares all sub-folders, but not the maildir folder itself.

eg.

maildir is
/home/trainer/.maildir
/home/trainer/.maildir/cur
/home/trainer/.maildir/tmp
/home/trainer/.maildir/new
/home/trainer/.maildir/.Sent
/home/trainer/.maildir/.Sent/cur
/home/trainer/.maildir/.Sent/new
/home/trainer/.maildir/.Sent/tmp

Add share from my account:
su - bludger
cd /home/bludger/.maildir
maildirmake --add trainer /home/trainer/.maildir

The "sent" folder is shared but not the inbox (which is at the root of maildir)

One workaround was to make a link
ls -l /home/trainer/.maildir/.inbox
.... /home/trainer/.maildir/.inbox -> .
Back to top
View user's profile Send private message
bludger
Guru
Guru


Joined: 09 Apr 2003
Posts: 389

PostPosted: Tue Jun 05, 2007 12:49 pm    Post subject: Reply with quote

I mis-wrote the command to add the link. It should be:

maildirmake --add sekretariat=/home/sekretariat/.maildir $HOME/.maildir
Back to top
View user's profile Send private message
bludger
Guru
Guru


Joined: 09 Apr 2003
Posts: 389

PostPosted: Thu Jun 14, 2007 7:59 am    Post subject: Reply with quote

I have another problem. When a new mail arrives in the shared inbox, the links aren't automatically created and the other user does not see the new mail. If that user unsubscribes and then re-subscribes, then the folder is updated.

Does anyone know of a solution to this problem?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum