[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: .forward and .procmailrc



Catalin Popescu <cpopescu@ottonel.pub.ro> writes:

> -------------------------------------------------------------------------------
> 02/04/1998 22:36:19: [m0y0BYR-000I3ZC] Received FROM:rpopescu@ottonel.pub.ro HO\ST:localhost PROTOCOL:smtp PROGRAM:sendmail ORIG-ID:<Pine.LNX.3.96.980204223607\.573A-100000@pitagora> SIZE:462
> 02/04/1998 22:36:20: [m0y0BYR-000I3ZC] Failed TO:"|IFS=' ' && exec /usr/bin/pro\cmail -f- || exit 75 #cpopescu" DIRECTOR:dotforward TRANSPORT:pipe ERROR:(ERR14\4) transport pipe: child returned status EX_2 (2)
> 02/04/1998 22:36:20: [m0y0BYS-000I8uC] Received FROM:<+> HOST:pitagora PROTOCOL\:bsmtp PROGRAM:smail SIZE:4694
> 02/04/1998 22:36:21: [m0y0BYS-000I8uC] Failed TO:"|IFS=' ' && exec /usr/bin/pro\cmail -f- || exit 75 #cpopescu" DIRECTOR:dotforward TRANSPORT:pipe ERROR:(ERR14\4) transport pipe: child returned status EX_2 (2)
> 02/04/1998 22:36:21: [m0y0BYS-000I8uC] mail moved to /var/spool/smail/error/0y0\BYS-000I8uC
> 02/04/1998 22:36:21: [m0y0BYR-000I3ZC] Error sent FOR:"|IFS=' ' && exec /usr/bi\n/procmail -f- || exit 75 #cpopescu" TO:postmaster
> 02/04/1998 22:36:21: [m0y0BYR-000I3ZC] Completed.
> ------------------------------------------------------------------------------

First the good news - your mail isn't lost forever, and is piling up
in smail's error area.  Once you get this problem resolved, you can
get all your old mail by doing (as root):

cd /var/spool/smail
mv error/* input
runq

But first we need to see what the problem is with your .forward - from 
the error messages, smail is trying to invoke procmail, but is running 
into problems.  Here's how I'd test it.

As cpopescu, do the following:
sh -c "IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #cpopescu"

You should then get a blank line as procmail waits for your input;
type:
>From testing
From: someone
To: cpopescu
Subject: Not much

This is just a test message

<CTRL-D>

Where I have <CTRL-D> I mean for you to hit CTRL-D.  At some point in
this whole process, you'll get an error message from procmail telling
you what problem it's having - looking at the procmail source, I can't 
tell what would make procmail use that exit code.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: