From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075321606582.tru64-unix-managers.marc@archive.invalid> From: "David M. Rocke" Date: Tue, 18 Jul 1995 22:59:39 +0000 To: tru64-unix-managers Subject: Mail Filters X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075321606582 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@ucdavis.edu | | Davis, CA 95616-8609 | -----------------------------------------------------------------------