18 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Re: replacing procmai...
FromSent OnAttachments
David RelsonJun 21, 2004 5:56 pm 
PollywogJun 21, 2004 6:20 pm 
Sam VarshavchikJun 21, 2004 7:01 pm 
PollywogJun 21, 2004 7:31 pm 
David RelsonJun 21, 2004 8:18 pm 
Robin Lynn FrankJun 21, 2004 9:05 pm 
Ron JohnsonJun 22, 2004 1:33 am 
Matthias AndreeJun 22, 2004 3:26 am 
David RelsonJun 22, 2004 5:04 am 
Tony EarnshawJun 22, 2004 5:08 am 
David RelsonJun 22, 2004 5:19 am 
Devin RubiaJun 22, 2004 7:34 am 
Ron JohnsonJun 22, 2004 8:15 am 
Robin Lynn FrankJun 22, 2004 8:25 am 
Matthias AndreeJun 22, 2004 8:29 am 
Nick SimicichJun 22, 2004 11:32 am 
David RelsonJun 22, 2004 2:27 pm 
Robin Lynn FrankJun 22, 2004 4:07 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Re: replacing procmail with maildropActions...
From:Matthias Andree (ma+c@dt.e-technik.uni-dortmund.de)
Date:Jun 22, 2004 3:26:40 am
List:net.sourceforge.lists.courier-maildrop

Sam Varshavchik <mrs@courier-mta.com> writes:

I would try to determine the owner of the maildrop process,

The owner of the maildrop process is the userid the message is being delivered to.

Sam,

the other thing is the group permissions.

Maildrop (setuid or run as root, in delivery mode) will set the primary group ID, drop supplementary group IDs and finally will set the user ID. This is no different from Postfix's local(8) delivery service that David is also using: it, too, will strip supplementary group IDs, hence tricks with group writable logs won't work here, at least not for systems that put each user in their own group.

OTOH, giving users write permissions for logs may not be a good plan either.

I can see two solutions without knowing off-hand if maildrop implements either already:

1. offer to run a separate (and possibly restricted) configuration file BEFORE dropping privileges when setuid-root

2. offer to log into a command instead of a file. That might then be setgid and be as simple as a read and a write.

Encrypted mail welcome: my GnuPG key ID is 0x052E7D95