Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

and in /etc/procmailrc


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
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


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.