Joe Auty wrote:
> Hello,
> 
> I'm struggling with figuring out what users and groups are at play
> with getting Maildrop to deliver messages to my Courier IMAP shared  
> folder
> collection.
> 
> When I have my folder collection set as such:
> 
> drwxr-x---  6 vmail  mygroup           512 Dec 13 01:30 .Joe
> 
> 
> I want every user in the group "mygroup" to be able to read this
> shared mailbox, and I want maildrop, which according to my Postfix
> master.cf file is running as user "vmail":
> 
> maildrop  unix  -       n       n       -       -       pipe
>    flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
> 
> to be able to write to this mailbox. I'm delivering mail to this
> folder based on a maildrop rule set, NOT as myself,

This means nothing. maildrop will use th uid and gid returned by
authdaemon, unless you built maildrop without authlib support. This
assumes that maildrop is setuid. otherwise, mail will be delivered as
"vmail".

> so "chown joe"ing
> the directory won't work with my rule set - I imagine that I would
> only want to be the owner of this directory if it was delivered
> straight there unaffected by my maildrop rules?
> 

maildrop rules have nothing to do here, unless you can run privileged
commands (sudo or setuid programs).

> I don't want this folder to be world readable or world writable

and it should not. note that maildrop won't accept an unprotected
.mailfilter file.

> obviously, but as it stands, Maildrop will only deliver to this folder
> when "everybody" has writable permission. 

Then you have something wrong. check what uid/gid is returned for the
${recipient}. if using a "single owned" mailbox tree, then you should
return a single uid/gid.

>I've tried just about every
> combination of permission set that I can think of. What permissions
> need to be assigned here to do what I want? What am I missing here?

here:
# ls -l /path/to/maildtore/$domain/
drwx------    6 vmail  vmail      512 Apr 19  2006 mouss

nothing can access the mailstore except via imap/pop.



-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to