procmail
[Top] [All Lists]

Re: Problem with bounce messages

1998-02-20 13:08:52
On Fri, 20 Feb 1998 14:10:56 -0500 (EST), "Patrick M. Gray Jr."
<patrick(_at_)harvassoc(_dot_)com> wrote:
I have a procmail script I haven't played with for a while that is 
broken.  The first few lines are supposed to send any mailer daemon 
message to another address.  I suspect this is becasue I lack a ":0 
<sometheing else>" at the beginning near the daemon rule, but when I add 
just an ":0" everything goes to the alternate address, which isn't good.  

You are sending everything that is +not+ from a daemon to the other
address. Take out the "!". 

Since this system is in production, I don't want to do too much 
experimeting since my procmail knowledge is lackluster at best.  If you 

You test recipes by putting them in their own little baby .rc file and
feeding it stuff on standard input. 

    procmail test.rc < test.msg

Ideally this should be set up with DEFAULT=/tmp/scratch_file to avoid
unpleasant surprises in your inbox. A skeletal test.rc is available at
<http://www.iki.fi/~era/procmail/experiments.rc>

# Send mail to daemon if bounce message
#:0
* !^FROM_DAEMON
! hpgbcadm(_at_)harvassoc(_dot_)com

Just take out the # in front of the :0 and the shriek before
^FROM_DAEMON. 

Hope this helps,

/* era */

Your message was badly wrapped, please turn off auto-wrap when pasting
in things (or better yet use an editor which allows you to incorporate
files directly by naming them. C-x i in Emacs, something like !r in vi
I think). 

-- 
 Paparazzi of the Net: No matter what you do to protect your privacy,
  they'll hunt you down and spam you. <http://www.iki.fi/~era/spam/>

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