procmail
[Top] [All Lists]

Re: Uses for HOST in procmailrc???

1996-01-16 13:27:15
 Michael asks about this recipe:
 
:0
* ^From(_dot_)*johndoe(_at_)somewhere(_dot_)edu
{
EXITCODE=69
HOST=done
}
 
Is the value for HOST simply a bogus hostname? What in this
recipe actually causes the mail to bounce,

  The exit value.  When sendmail gets  a return value of 69, the mail
bounces. 

Thanks for the help. This recipe worked, I'm just curious *WHY*.

  There is not much of a trick. Setting host makes it stop evaluating
this file.  setting the EXITCODE makes it return a certain value...  It
is up to whatever is calling procmail to interpret the return  value

Soren