procmail
[Top] [All Lists]

On tcsh interaction

1997-09-02 12:13:57

Procmail looks like the right tool for me.  I want to 
run it here on this Solaris 2.5 machine using it as a junk mail filter.
It will be run from my private bin dir, with a .procmailrc for setup.

I have two issues, one minor, one not so minor.

First, I see this line quite a bit
MAILDIR=$HOME/Mail      # You'd better make sure it exists

Note that there is not much information about what MAILDIR actually is, 
and what is meant by MAILDIR.  Can somebody out there make a less
cryptic description of what is going on?

Also, I would like to run procmail from my .forward file.  When I 
configure it, then run it from sendmail's special verbose delivery
mode, I get this ugly output
/usr/lib/sendmail -v frank
/etc/sendmail.cf: line 75: WARNING: writable directory /etc
/export/home/frank/.forward: line 1: forwarding to "|IFS=' ' && 
p=/export/home/frank/bin/procmail"
/export/home/frank/.forward: line 1: "|IFS=' ' && 
p=/export/home/frank/bin/procmail"... User 
frank(_at_)server(_dot_)eng(_dot_)dsea(_dot_)com doesn't have a valid shell for 
mailing to programs

Hmmm, does tcsh have some bad interaction?  It appears so, as when I edit
/etc/passwd to change to /bin/sh, this type of output disappers.

There might be two ways to attack this problem.  Can I tell sendmail
somehow to use /bin/sh when sending me mail?  Can I alter the .forward
file to exec a /bin/sh?

If all this fails, perhaps I can just make a shell script and call
it "mail".  This script will pre-process the mail with procmail.

Thanks for any help you can provide.

Frank Evan Perdicaro, KF6JGX            Dainippon Screen Engineering of America
BSP, MSCE; old GMC, Chevy&Hawk w/V        3700 Segerstrom Ave
inhouse: frank(_at_)server, x1258                    Santa Ana CA
outhouse: frank(_at_)dsea(_dot_)com, 714-546-9491x1258   92704       DoD:1097

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