Thanks a lot, Jim for the crash course in procmail. I have been trying to
start using procmail for a while without success. Your posting helped me a
lot in beginning to understand how procmail works. I wonder if you or
anybody in this list can help me with the following problem:
I operate a mailing list and want to use procmail as an auto-responder. I
found some instructions on the net to set up procmail as follows:
.forward file contents:
"|IFS=' '&&exec /usr/bin/procmail -f-||exit 75 #michael"
.procmailrc file contents:
VERBOSE=on
SENDMAIL=/usr/lib/sendmail
SHELL=/bin/sh
MAILDIR=$HOME/mail
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
FILEDIR=$HOME/fileserver
:0
* ^TOmichael
*!^FROM_DAEMON
*!^X-Loop: michael(_at_)saomai(_dot_)org
|(formail -r -A "Precedence: junk"\
-I"From: Auto Reply from VHNT admin " \
-I"Subject: Submission Acknowledgement" \
-A "X-Loop: michael(_at_)saomai(_dot_)org";\
cat $FILEDIR/info.txt )|$SENDMAIL -t
and I have the necessary subdirectories set up properly, I believe.
Somehow, in testing this feature by sending mail to it, all mails bounced
with the following attached error mail, and my sys admin couldn't help.
Thanks,
Michael Hoang
bounced mail:
Date: Sun, 29 Dec 1996 09:33:31 -0600
From: Mail Delivery Subsystem <MAILER-DAEMON(_at_)demthu(_dot_)saomai(_dot_)org>
Subject: Returned mail: /udd/michael/.forward: line 1: "|IFS=' '&&exec
/usr/bin/procmail -f-||exit 75 #michael"... User
michael(_at_)demthu(_dot_)saomai(_dot_)org
doesn't have a valid shell for mailing to programs
To: <viet(_at_)airmail(_dot_)net>
MIME-Version: 1.0
Auto-Submitted: auto-generated (failure)
The original message was received at Sun, 29 Dec 1996 09:33:30 -0600
from mail.airmail.net [206.66.12.40]
----- The following addresses have delivery notifications -----
"|IFS=' '&&exec /usr/bin/procmail -f-||exit 75 #michael" (unrecoverable error)
(expanded from: <michael(_at_)saomai(_dot_)org>)
----- Transcript of session follows -----
550 /udd/michael/.forward: line 1: "|IFS=' '&&exec /usr/bin/procmail
-f-||exit 75 #michael"... User michael(_at_)demthu(_dot_)saomai(_dot_)org
doesn't have a
valid shell for mailing to programs
Reporting-MTA: dns; demthu.saomai.org
Received-From-MTA: DNS; mail.airmail.net
Arrival-Date: Sun, 29 Dec 1996 09:33:30 -0600
Final-Recipient: RFC822; michael(_at_)demthu(_dot_)saomai(_dot_)org
X-Actual-Recipient: RFC822; "|IFS=' '&&exec /usr/bin/procmail -f-||exit 75
#michael"@demthu.saomai.org
Action: failed
Status: 5.7.1
Last-Attempt-Date: Sun, 29 Dec 1996 09:33:31 -0600
Return-Path: viet(_at_)airmail(_dot_)net
Received: from mail.airmail.net (mail.airmail.net [206.66.12.40]) by
demthu.saomai.org (8.7.4/8.7.3) with SMTP id JAA01633 for
<michael(_at_)saomai(_dot_)org>; Sun, 29 Dec 1996 09:33:30 -0600
Received: from [204.178.75.26] from [204.178.75.26] by mail.airmail.net
(/\##/\ Smail3.1.30.16 #30.136) with esmtp
id <m0veN2B-0000ypE(_at_)mail(_dot_)airmail(_dot_)net>; Sun, 29 Dec 96
09:20:19
-0600 (CST)
Date: Sun, 29 Dec 96 09:20:20 -0600 (CST)
X-Sender: viet(_at_)mail(_dot_)airmail(_dot_)net
Message-Id: <v03007801aeebe95cc29e(_at_)[206(_dot_)66(_dot_)5(_dot_)196]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: michael(_at_)saomai(_dot_)org
From: Viet Hoang <viet(_at_)airmail(_dot_)net>
Subject: Test Mail
this is a test
================
Viet Hoang
viet(_at_)airmail(_dot_)net
================
Viet Hoang
viet(_at_)airmail(_dot_)net