procmail
[Top] [All Lists]

new procmail user question

1996-10-17 11:03:01
i am having some trouble with forwarding mail to another site after changing
the From: and Subject: lines to suit my needs.

here is the pertinent info:[i think]
=====================================
system linux [slackware3.0]
===========================
.forward file
|/usr/local/bin/procmail
====================
.procmailrc file
PATH=/bin:/usr/bin:/usr/local/bin
MAILDIR=/usr/spool/mail                 #you'd better make sure it exists
#DEFAULT=$MAILDIR/mbox                  #completely optional
LOGFILE=/files4/edoyle/from.proc        #/home/edoyle = /files4/edoyle
VERBOSE=on
FROM=edoyle(_at_)modicon(_dot_)com
SUB=tech_info
SEND=/usr/sbin/sendmail                 #/usr/lib/sendmail is a link to 
/usr/sbin
FORMAIL=/usr/local/bin/formail
FMLOG=/files4/edoyle/from.proc
JOHN=edoyle(_at_)ceds86(_dot_)uml(_dot_)edu

#test: mail from anyone with "brick" in subject
 :0 c
              * ^From.*                         #all mail should be from someone
              * ^Subject:.*brick                #with brick in subject
                | ( ${FORMAIL} -l ${FMLOG}\     #use formail and log
                -I "Subject: ${SUB}"\           #change the Subject: > ${SUB}
                -I "From: ${FROM}" )            #change the From: > ${FROM}
                | ${SEND} -oi ${JOHN}           #send to ${JOHN}
==================================================================
i get the mail locally[mailing list mail] and i want to send it on to a friend 
${JOHN}
but it never gets there.
=================================================
from the log:
=============
procmail: [9119] Thu Oct 17 11:19:50 1996
procmail: Assigning "FROM=edoyle(_at_)modicon(_dot_)com"
procmail: Assigning "SUB=tech_info"
procmail: Assigning "SEND=/usr/sbin/sendmail"
procmail: Assigning "FORMAIL=/usr/local/bin/formail"
procmail: Assigning "FMLOG=/files4/edoyle/from.proc"
procmail: Assigning "JOHN=edoyle(_at_)ceds86(_dot_)uml(_dot_)edu"
procmail: Match on "^From.*"
procmail: Match on "^Subject:.*brick"
procmail: Assigning "LASTFOLDER=( /usr/local/bin/formail -l 
/files4/edoyle/from.proc -I Subject: tech_info -I From: 
edoyle(_at_)modicon(_dot_)com )"
procmail: Skipped "| ${SEND} -oi ${JOHN} "
procmail: Locking "/usr/spool/mail/edoyle.lock"
procmail: Assigning "LASTFOLDER=/usr/spool/mail/edoyle"
procmail: Opening "/usr/spool/mail/edoyle"
procmail: Acquiring kernel-lock
procmail: Executing 
"(,/usr/local/bin/formail,-l,/files4/edoyle/from.proc,-I,Subject: 
tech_info,-I,From: edoyle(_at_)modicon(_dot_)com,)"
(: (: No such file or directory
procmail: [9119] Thu Oct 17 11:19:51 1996
procmail: Unlocking "/usr/spool/mail/edoyle.lock"
From cliffy(_at_)teaparty(_dot_)modicon(_dot_)com  Thu Oct 17 11:19:50 1996
 Subject: bricks
  Folder: /usr/spool/mail/edoyle                                            381
procmail: Notified comsat: "edoyle(_at_)0:/usr/spool/mail/edoyle"
======================================================

2 things seem wrong, first i have this:

procmail: Skipped "| ${SEND} -oi ${JOHN} "

i don't see why it would "skip" this.

and second is:

procmail: Executing 
"(,/usr/local/bin/formail,-l,/files4/edoyle/from.proc,-I,Subject: 
tech_info,-I,From: edoyle(_at_)modicon(_dot_)com,)"
(: (: No such file or directory

i don't see what file it can't find, procmail is running so it must have found 
that, and 
formail is in /usr/local/bin so it should be able to find that as well.
========================

teaparty:/files4/edoyle$ which procmail
/usr/local/bin/procmail
teaparty:/files4/edoyle$ which formail 
/usr/local/bin/formail
==================================

any and all help is appreciated.

thanks

eamonn

Eamonn Doyle                            |edoyle(_at_)modicon(_dot_)com  
Senior Net/Sys Admin.                   |whois ed10
Schneider Automation a.k.a. Modicon     |post-,host-,news-,web-master
http://teaparty/                        |(508)975-9148   

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