Hello,
I'm in the process to switch from sendmail to posfix with procmail
as mailbox_command. Procmail is setuid root, mailboxes are in the home
directories and root isn't aliased. The default_privs is set to nobody
in the postfix configuration, nobody's home directory is /dev/null.
With these settings, mail sent to root wants to be delivered into
the mailbox of nobody:
Feb 4 15:36:53 cncsun postfix/local[12063]: 5958E23BF3:
to=<root(_at_)cncsun(_dot_)kfki(_dot_)hu>, relay=local, delay=56,
status=bounced (can't
create user output file. Command output: procmail: Couldn't create
"/dev/null/private/mailbox" procmail: Lock failure on
"/dev/null/private/mailbox.lock" procmail: Error while writing to
"/dev/null/private/mailbox" )
postfix - by design - doesn't execute external commands with root
privileges and doesn't pass command line arguments to procmail
either. The environment variables HOME, LOGNAME, SHELL, PATH, TZ are set
before invoking procmail.
How could I force procmail to deliver the message to the root's mailbox,
instead of nobody's? [I know, I could create an alias...]
Thank you,
Jozsef
--
E-mail : kadlec(_at_)sunserv(_dot_)kfki(_dot_)hu,
kadlec(_at_)blackhole(_dot_)kfki(_dot_)hu
PGP key: finger kadlec(_at_)sunserv(_dot_)kfki(_dot_)hu | WWW:
http://www.kfki.hu/~kadlec
Address: KFKI Research Institute for Particle and Nuclear Physics
H-1525 Budapest 114, POB. 49, Hungary