procmail
[Top] [All Lists]

Permission problems??

1997-04-16 05:54:00

        I'm trying to setup a system that lets me deactivate a users
account, and nicely tell anyone that the account has been deactivated.
I've set it up where I just have to change their home directory to this
directory that root owns which contains the following:

.forward
------------------
"|IFS=' '&&exec /usr/local/bin/procmail -m /home/disad/.procmailrc
-f-||exit 75 #Disabled"
------------------
.procmailrc
------------------
SHELL=/bin/sh
PATH=/usr/bin:/usr/local/bin:/usr/sbin:/bin

:0
* !^X-Loop: disad(_at_)gats(_dot_)hampton(_dot_)va(_dot_)us
(formail -rA"X-Loop: disad(_at_)gats(_dot_)hampton(_dot_)va(_dot_)us" ; \
        cat $HOME/disad.msg  \
) | $SENDMAIL -oi -t
------------------

and disad.msg is a polite message saying that the user no longer is
employed by us, yadda yadda yadda.  But I get the following error when
something is sent to this address:

------------------------------------------------------
The original message was received at Tue, 15 Apr 1997 17:32:48 GMT
from karrde(_at_)perigrine(_dot_)gats(_dot_)hampton(_dot_)va(_dot_)us 
[206..246.209.42]

   ----- The following addresses had delivery problems -----
"|IFS=' '&&exec /usr/local/bin/procmail -m /home/disad/.procmailrc
-f-||exit 75 
#Disabled"  (unrecoverable error)
    (expanded from: olduser(_at_)atlantis)

   ----- Transcript of session follows -----
procmail: Skipped "-rAX-Loop: disad(_at_)gats(_dot_)hampton(_dot_)va(_dot_)us ; 
cat 
/home/disad/disad.msg ) | /usr/lib/sendmail -oi -t"
procmail: Error while writing to "(formail"
550 "|IFS=' '&&exec /usr/local/bin/procmail -m /home/disad/.procmailrc 
-f-||exit 75 #Disabled"... Can't create output: Error 0

   ----- Original message follows -----

  [ Part 2: "Included Message" ]

Date: Tue, 15 Apr 1997 14:39:00 -0400 (EDT)
------------------------------------------------------------

I'm going to deal with things like mailing lists and deamon messages soon,
but I want to get this functionalllity in first and I can't find any
refrence to this error message, can someone help ?? 


================================================================  /| |\
James V. Di Toro III            | "I've got a bad feeling        / |_| \/\
System Administrator, GATS, Inc.|   about This" -various        |()\ /  ||
W: 757/865-7491  F:757/865-1021 |------------------------------ |---0---_|
   karrde(_at_)gats(_dot_)hampton(_dot_)va(_dot_)us     |  
www.gats.hampton.va.us        \ / \ /
webmaster(_at_)gats(_dot_)hampton(_dot_)va(_dot_)us     |                       
          ^:::^


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