procmail
[Top] [All Lists]

Re: Maildirs and virtual users and postfix, oh my!

2007-06-26 11:52:38

On 26-Jun-2007, at 09:07, Bart Schaefer wrote:

LOG=`echo $HOME/$USER`

procmail: Executing "echo,/usr/local/virtual/fred(_at_)southgaylord(_dot_)com"
procmail: Assigning "LOG=/usr/local/virtual/fred(_at_)southgaylord(_dot_)com"

Setting /bin/sh to the vpopmail user seems to have solved all this.   
Silly me, I was still thinking of procmailrc.common as a root level  
procmailrc. Obviously, the variables were not expanding on the  
backticks because procmail couldn't generate a shell.

Interesting question though, you think it would be possible to  
execute procmailrc.common as root and dropprivs to the virtual user?   
How would I go about that?  where does procmail get the name of the  
user from, LOGNAME?

well, probably not workable, I doubt postfix's pipe would allow me to  
pass root as the user

procmail  unix  -       n       n       -       -       pipe
   -o flags=Ruh user=root argv=/usr/local/bin/procmail -t -m LOGNAME=$ 
{recipient} EXTENSION=${extension} /usr/local/etc/procmailrc.common

Hmmm...

-- 
Vernon: Now this is the thought that wakes me up in the middle of the  
night. That when I get older, these kids are going to take care of me.
Carl: I wouldn't count on it.
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail