procmail
[Top] [All Lists]

SHELL= does not correctly override user's login shell

2004-05-25 14:08:53
I am trying to use ( ) in a piped recipe to bounce mail, e.g.

:0
{ BOUNCEPID=`echo $$` }

:0 c:
bouncetemp.${BOUNCEPID}

:0 c: bouncetemp.${BOUNCEPID}.lock
! ^Precedence: (junk|bulk|list)
| (formail -rA"Precedence: junk" -A"X-Budget-Loop: onlyto" ; cat 
/etc/spamfilter/bounce-receiveonly.txt;    echo ""; cat 
bouncetemp.${BOUNCEPID}; /bin/rm -f bouncetemp.${BOUNCEPID}) | $SENDMAIL -oi -t

The user's login shell is set to /bin/true so they cannot login to shell, 
only fetch email via pop3.

Unfortunately this recipe fails when their login shell is set to 
/bin/true. If their login shell is set to /bin/bash then it works 
perfectly.

And setting SHELL=/bin/bash in the recipe does not fix it either!

Is there a way to get it to work without having to give everyone on the 
system a login shell?

-Dan


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail