procmail
[Top] [All Lists]

procmail with smrsh

2000-10-18 13:57:37

Is it possible to give POP users a restricted shell, allow them to do only
one thing (open a telnet url to allow them to change their own password)
AND have procmail filter their incoming mail for them?

It seems I can do one or the other. Currently, my normal account works
fine filtering my mail. I compiled sendmail, installed smrsh and gave 
a test POPuser a shell that just does    smrsh -c passwd.

In trying to merge these ideas, I first tried setting the test account up
with a .forward containing 

     "|IFS=' ' &&exec /usr/adm/sm.bin/procmail -f-|| exit 75 #popuser"

and I linked procmail to the /usr/adm/sm.bin directory. But it replies:

       Address popuser is unsafe for mailing to programs

I also tried .forward containing

   "|/usr/local/bin/procmail #popuser"    

as well as a path to the procmail link in  /usr/adm/sm.bin

I then added to sendmail.cf

O DontBlameSendmail=forwardfileinunsafedirpath,forwardfileinunsafedirpathsafe

with the same results. I also modified sendmail.cf from

Mprog,          P=/bin/sh, F=lsDFMoqeu9, S=10/30, R=20/40, D=$z:/,
                T=X-Unix,
                A=sh -c procmail $u

      To:

Mprog,         P=/usr/local/bin/procmail, F=SPfhn, S=10/30, R=20/40, D=$z:/,
               A=procmail -Y -a $h -d $u

I even tried adding to /etc/shells   /SENDMAIL/ANY/SHELL/

Are both these things mutually exclusive? Am I close to the answer?



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

<Prev in Thread] Current Thread [Next in Thread>