Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I configured exim to deliver local mail via procmail to maildirs in a pretty standard way: (exim4.conf)

procmail_pipe:
   driver = pipe
   command = /usr/bin/procmail -d $local_part
   return_path_add
   delivery_date_add
   envelope_to_add
   check_string = "From "
   escape_string = ">From "
   user = $local_part
   group = mail

and in /etc/procmailrc

MAILDIR=$HOME/
LOGFILE=procmail.log
LOCKFILE=procmail.lock
DEFAULT=.maildir/

The owner of the .maildir itself is correct -- $user:mail, but for some reason the log file is root:mail.

How can I change it to $user:mail too?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Procmail invokes /etc/procmailrc with root privileges, if it can.

Since you're using Exim to set the user, you don't need procmail to do it for you. You might be able to just remove the setuid bit from the procmail binary to fix this -- depends if you need anything else to be invoking procmail.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.