procmail
[Top] [All Lists]

Autoreply error, ( reason: can't create (user) output file )

2005-01-30 20:29:59


Hi,
Been having some grief with a procmail recipe for autoreplies.
Running procmail 3.22 on solaris 8.

It should send an autoreply to sender and forward a copy of the mail to the
original recepient

The recipe looks like this
------------ cut here --------------------
LOGFILE=/var/log/procmail.log
VERBOSE=yes

# mail from outside the company
:0 h c
* !^FROM_DAEMON
* !^X-Loop: hr(_at_)ticketek(_dot_)com(_dot_)au
{
        # send a copy to recepient also
        :0 c
        ! hr(_at_)mimesweeper(_dot_)EXCHANGE

        :0 A
        | (formail -r \
        -I"From: Ticketek Human Resources 
<hr(_at_)ticketek(_dot_)com(_dot_)au>" \
        -I"Precedence: junk" \
        -A"X-Loop: hr(_at_)ticketek(_dot_)com(_dot_)au"; \
         echo Dear Applicant, ; \
         echo etc etc etc; \
         echo ; \
        ) | $SENDMAIL -t
}

# Catch-all case; send this to postmaster
:0 E
! postmaster
# all done!
------------ cut here --------------------


This is the error message I receive
------------ cut here --------------------
   ----- The following addresses had permanent fatal errors -----
"|/usr/local/bin/procmail -m /etc/procmailrcs/hr"
    (reason: can't create (user) output file)
    (expanded from: <hr(_at_)inside(_dot_)ticketek(_dot_)com(_dot_)au>)

   ----- Transcript of session follows -----
550 5.0.0 "|/usr/local/bin/procmail -m /etc/procmailrcs/hr"... Can't create
output
------------ cut here --------------------


The autoreply goes on it way ok ( for all my testing )

For customers it is a different story, they receive:
------------ cut here --------------------
"|/usr/local/bin/procmail -m /etc/procmailrcs/hr"
    (reason: can't create (user) output file)
    (expanded from: <hr(_at_)inside(_dot_)ticketek(_dot_)com(_dot_)au>)

   ----- Transcript of session follows -----
procmail: Error while writing to " (formail -r \
        -I"From: Ticketek Human Resources 
<hr(_at_)ticketek(_dot_)com(_dot_)au>" \
        -I"Precedence: junk" \
        -A"X-Loop: hr(_at_)ticketek(_dot_)com(_dot_)au"; \
         echo Dear Applicant, ; \
         echo ; \
        ) | $SENDMAIL -t"
550 5.0.0 "|/usr/local/bin/procmail -m /etc/procmailrcs/hr"... Can't create
output
------------ cut here --------------------

This just confuses people as they can't tell if their email made it or not.


Procmail log shows:
procmail: Error while writing to " (formail -r \
        -I"From: Ticketek Human Resources 
<hr(_at_)ticketek(_dot_)com(_dot_)au>" \
        -I"Precedence: junk" \
        -A"X-Loop: hr(_at_)ticketek(_dot_)com(_dot_)au"; \
         echo Dear Applicant, ; \
        ) | $SENDMAIL -t"


Googling around does not give a clue for this situation.
I have piped to a file, heaps of swap and disk space.  ( > 200MB in both )

What bugs me the most is that ALL my testing show it works the way you want
it to work
No errors in log, autoreply arrives as expected etc. but I do get a bounce
message.

Have sent over 200 messages at various times to reproduce the error.

Have anyone experienced this before?
How can I try to debug this?

Thanks
Peter
--
Peter Chun | Systems Administrator
TICKETEK PTY LIMITED 
P +61 2 9266 4180
F +61 2 9299 7588
M +61 408 687 210 
E peterch(_at_)ticketek(_dot_)com(_dot_)au
A Lvl 6, 171 Clarence Street, Sydney NSW 2000 

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
<Prev in Thread] Current Thread [Next in Thread>
  • Autoreply error, ( reason: can't create (user) output file ), Peter Chun <=