I have been attempting to install a mail filter on my system (DEC
Alpha 3000/400 running Digital Unix (OSF/1) version 3.0, which uses
sendmail 5.65), but am having a problem (I think with sendmail) and
would appreciate some assistance. I first tried installing the filter
program that comes with elm, but no mail would get through. I had a
.forward file consisting of
"|/usr/local/bin/filter -vo /usr/schubert/dmrocke/Mail/filter.errors"
No mail would arrive at my system mailbox and after a time I would
receive a message like this:
----- Transcript of session follows -----
While talking to franc.ucdavis.edu:
>>> RCPT To:<"|/bin/cat - > /usr/schubert/dmrocke/fwd.tst 2>&1">
<<< 550 <"|/bin/cat - > /usr/schubert/dmrocke/fwd.tst 2>&1">... Cannot mail directly to programs
550 "|/bin/cat - > /usr/schubert/dmrocke/fwd.tst 2>&1"... User unknown
I then tried installing procmail to see if it could cope.
My .procmailrc file seems to be correct as verified by
formail -s procmail < (various test files)
however, mail arriving routinely was not processed by procmail. My
.forward file (permission 755) was
"|IFS=' ' && exec /usr/local/bin/procmail -f- || exit 75 #dmrocke"
which seems to match the example in the procmail documentation. My
procmail log file shows activity when procmail is manually activated,
but none when mail arrives. Somehow it seems that pipes are not
allowed in .forward files, but I don't know why. Someone suggested I
take a look at my sendmail.cf file, where I found the line
Mprog, P=/bin/sh, F=lsDFM, S=10, R=20, A=sh -c $u
which would seem to permit mailing to programs. Does anyone know what
is wrong.
Thanks,
David Rocke
-----------------------------------------------------------------------
| David M. Rocke Phone: (916) 752-7368 |
| Graduate School of Management FAX: (916) 752-2924 |
| University of California, Davis E-mail: dmrocke_at_ucdavis.edu |
| Davis, CA 95616-8609 |
-----------------------------------------------------------------------
Received on Wed Jul 19 1995 - 01:12:53 NZST