Sam Varshavchik skrev, on 04-07-2007 14:46:
[...]
In practice this doesn't work without the setuid bit being on. As
maildrop is delivered in the rpm (at any rate), the perms are 555; on
my rigs maildrop will not change UID to my virtual user, vmail,
without suid.
Or, unless maildrop gets invoked by root.
Generally, when you leave it up to maildrop to locate the recipient's
mailbox, by supplying the -d option, you need to set up your mail server
software to invoke maildrop as root. This is also needed, in the default
configuration, for maildrop to be able to connect to authdaemon's socket.
Postfix (in the personage of Wietse Venema) is dead against using root
for any other service than master, which is a sort of inetd daemon,
calling other processes/daemons. Attempts to deliver to maildrop by root
(using pipe, for example) result in an immediate fatal error: I just
tried ;)
Having /usr/bin/maildrop owner/group root and suid always worked for me
and I haven't read of any security incidents reported for this setup.
--Tonni