procmail
[Top] [All Lists]

Procmail as an auto-responder

1997-10-12 18:25:34
I have setup procmail on my BSD server and it installed fine.
I am usinfg a virtual mail table that likewise works fine.
The problem is when I try to filter mail for an automatic response
It does not get delivered. The response goes ou but the mail seems to
disapear. I will include snips from my .procmailrc .forward files
as well as log entries for procmail and the sendmail maillog, for examination.
Can any one shed some light on why the mail is not being delivered.

.forward 
 "|IFS=' '&& exec /usr/bin/procmail -f- || exit 75 # allan"

.procmailrc
# procmail recipe for allan(_at_)ads-ent(_dot_)com
#
# Environment Variables
PATH=/bin:/usr/bin:/usr/contrib/bin:/usr/sbin:/usr/local/bin:/sbin
MAILDIR=/var/mail
MONTHYEAR=`date +%y%m`
LOGFILE=$HOME/LOG/log
# Un-comment the following for debugging info
LOGABSTRACT=all
VERBOSE=on

 Automatic reply (admin(_at_)ads-ent(_dot_)com)
:0
* ^To(_dot_)*admin(_at_)ads-ent(_dot_)com
* !^FROM_DAEMON
* !^X-Loop: admin(_at_)ads-ent(_dot_)com
| (formail -rzA"Precedence: junk" -A"X-Loop: admin(_at_)ads-ent(_dot_)com" \
       -I"Reply-to: admin(_at_)ads-ent(_dot_)com" \
       -I"Keywords: ignore autoreply" \
       -I"From: FTP Remailer <postmaster(_at_)ads-ent(_dot_)com>" \
       -I"Subject: Automated Response" \
       ; cat $HOME/autorep/admin ) | $SENDMAIL -oi -t

procmail log

procmail: [840] Sun Oct 12 21:07:20 1997
procmail: No match on "^To(_dot_)*webmaster(_at_)ads-ent(_dot_)com"
procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Re
sent)?)-To):(.*[^a-zA-Z])?)(_dot_)*postmaster(_at_)ads-ent(_dot_)com"
procmail: Match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resen
t)?)-To):(.*[^a-zA-Z])?)(_dot_)*info(_at_)ads-ent(_dot_)com"
procmail: Match on ! "(^(Precedence:.*(junk|bulk|list)|To: Multiple
recipients of |(((
Resent-)?(From|Sender)|X-Envelope-From):|>?From
)([^>]*[^((_dot_)%(_at_)a-z0-9])?(Post(ma?(st(e?r
)?|n)|office)|(send)?Mail(er)?|daemon|m(mdf|ajordomo)|n?uucp|LIST(SERV|proc)
|NETSERV|o
(wner|ps)|r(e(quest|sponse)|oot)|b(ounce|bs\.smtp)|echo|mirror|s(erv(ices?|e
r)|mtp(err
or)?|ystem)|A(dmin(istrator)?|MMGR|utoanswer))(([^).!:a-z0-9][-_a-z0-9]*)?[%
@>   ][^<)
]*(\(.*\).*)?)?$([^>]|$)))"
procmail: Match on ! "^X-Loop: info(_at_)ads-ent(_dot_)com"
procmail: Assigning "LASTFOLDER= (formail -r -A"Precedence: junk" -A"X-Loop:
info(_at_)ads-
ent.com" \
        -I"Keywords: ignore autoreply" \
        -I"From: Remailer Daemon <postmaster(_at_)ads-ent(_dot_)com>" \
        -I"Subject: RE: your mail!" \
        ; cat $HOME/autorep/info ) | $SENDMAIL -oi -t"
From allan  Sun Oct 12 21:07:20 1997
 Subject: test
  Folder:  (formail -r -A"Precedence: junk" -A"X-Loop: 
info(_at_)ads-ent(_dot_)com     341
procmail: Notified comsat: "allan@: (formail -r -A"Precedence: junk"
-A"X-Loop: info(_at_)a
ds-ent.com" \
        -I"Keywords: ignore autoreply" \
        -I"From: Remailer Daemon <postmaster(_at_)ads-ent(_dot_)com>" \
        -I"Subject: RE: your mail!" \
        ; cat $HOME/autorep/info ) | $SENDMAIL -oi -t"
procmail: Executing " (formail -r -A"Precedence: junk" -A"X-Loop:
info(_at_)ads-ent(_dot_)com" \
        -I"Keywords: ignore autoreply" \
        -I"From: Remailer Daemon <postmaster(_at_)ads-ent(_dot_)com>" \
        -I"Subject: RE: your mail!" \
        ; cat $HOME/autorep/info ) | $SENDMAIL -oi -t"
procmail: [850] Sun Oct 12 21:07:21 1997
procmail: No match on "^To(_dot_)*webmaster(_at_)ads-ent(_dot_)com"
procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Re
sent)?)-To):(.*[^a-zA-Z])?)(_dot_)*postmaster(_at_)ads-ent(_dot_)com"
procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Re
sent)?)-To):(.*[^a-zA-Z])?)(_dot_)*info(_at_)ads-ent(_dot_)com"
procmail: Bypassed locking "/var/mail/allan.lock"
procmail: Assigning "LASTFOLDER=/var/mail/allan"
procmail: Opening "/var/mail/allan"
procmail: Acquiring kernel-lock
From allan  Sun Oct 12 21:07:21 1997
 Subject: RE: your mail!
  Folder: /var/mail/allan                                                   825
procmail: Notified comsat: "allan(_at_)0:/var/mail/allan"

*******************************************************
This is where i get lost it sends me the autorep. but
not the original message I don't know where the original
is going?  I tried haveing someone else send and got
the same results they got the response but I did not 
get the message...
******************************************************

Last here is the tail off the maillog..

Oct 12 21:07:20 net sendmail[837]: VAA00837: from=allan, size=41, class=0,
pri=30041,
nrcpts=1, msgid=<199710130107(_dot_)VAA00837(_at_)net(_dot_)ads-ent(_dot_)com>, 
relay=allan(_at_)localhost
Oct 12 21:07:21 net sendmail[839]: VAA00837: to="|IFS=' '&& exec
/usr/bin/procmail -f-
 || exit 75 # allan" , ctladdr=allan (100/0), delay=00:00:01,
xdelay=00:00:01, mailer=
prog, stat=Sent
Oct 12 21:07:21 net sendmail[845]: VAA00845: from=allan, size=574,
class=-100, pri=210
574, nrcpts=1, 
msgid=<199710130107(_dot_)VAA00845(_at_)net(_dot_)ads-ent(_dot_)com>,
relay=allan(_at_)localhost
Oct 12 21:07:21 net sendmail[849]: VAA00845: to="|IFS=' '&& exec
/usr/bin/procmail -f-
 || exit 75 # allan" , ctladdr=allan (100/0), delay=00:00:00,
xdelay=00:00:00, mailer=
prog, stat=Sent


If anyone knows whats wrong PLEASE help>>>

Allan Simmons
Administrator
ADS-Enterprises
http://www.ads-ent.com
info(_at_)ads-ent(_dot_)com

<Prev in Thread] Current Thread [Next in Thread>
  • Procmail as an auto-responder, Allan Simmons <=