procmail
[Top] [All Lists]

Re: formail : No such file or direcory

2001-02-26 11:00:19
Kiran wrote:
procmail to setup autoresponders. Everything seems to working but this
is error that I get : 

procmail: Executing "(/usr/bin/formail,-rt,-APrecedence: junk 
(autoreply),-A,X-Loop: test12_vacation, "
(/usr/bin/formail: (/usr/bin/formail: No such file or directory               
 

What's output of "procmail -v" ?

Now given the below, I would have expected:

  procmail: Executing "(/usr/bin/formail,-rt,-APrecedence: junk 
(autoreply),-A,X-Loop: test12_vacation, cat, /home/test12/.autoreply) | 
/usr/sbin/sendmail -t -oi"

Here are a few ideas to try.


The .procmailrc file is listed below.

# Set the proper shell
SHELL=/bin/sh
VERBOSE=yes;
LOGABSTRACT=all;
FORMAIL=/usr/bin/formail
LOGFILE=/home/test12/procmail.log

1. Just to make sure formail is where you think it is, add this:

  # Is formail really there??!?
  :0
  * ^X-Loop: rowrbazzle
  /dev/null

  :0fhw
  * ^Subject: rowrbazzle 2734653
  | $FORMAIL -A "X-Loop: rowrbazzle"


and then send yourself email with exactly that subject and see if formail
got invoked (i.e., see if the X-Loop got added).



# Autoresponder section
:0 h c
* !^FROM_DAEMON
* !^X-Loop: test12_vacation
* ^Subject:.*info*
* ^TOtest12@
| ($FORMAIL -rt -A"Precedence: junk (autoreply)" \
       -A "X-Loop: test12_vacation"  \
       cat /home/test12/.autoreply) | $SENDMAIL -t -oi

2. Next suggestion: examine your .procmailrc using vi and type ":se
list".  The problem is, if you have anything (blank, tab, whatever)
after the '\' at the end of line, then procmail won't realize that the 
next line is a continuation.  So in your vi window, you want the above 
to look like this:

    | ($FORMAIL -rt -A"Precedence: junk (autoreply)" \$
           -A "X-Loop: test12_vacation"  \$
           cat /home/test12/.autoreply) | $SENDMAIL -t -oi$

(The '$' at the end of line is an end-of-line marker; it may be in a
different color.)  If, as I suspect, it looks like this instead:

    | ($FORMAIL -rt -A"Precedence: junk (autoreply)" \$
           -A "X-Loop: test12_vacation"  \   $
           cat /home/test12/.autoreply) | $SENDMAIL -t -oi$

or like this:

    | ($FORMAIL -rt -A"Precedence: junk (autoreply)" \$
           -A "X-Loop: test12_vacation"  \^I$
           cat /home/test12/.autoreply) | $SENDMAIL -t -oi$

(the ^I is what a tab looks like in "list" mode) then you need to
delete trailing blanks. 

3. Final suggestion: Insert a semicolon before the "cat".

-- 
Neither I nor my employer will accept any liability for any problems
or consequential loss caused by relying on this information.  Sorry.
Collin Park                         Not a statement of my employer.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail