procmail
[Top] [All Lists]

Re: Should I tempfail when spamfiltering

2004-08-26 08:10:18
"Mike Peeler" <procl(_at_)list(_dot_)z-concept(_dot_)com> wrote in message
news:CMM(_dot_)0(_dot_)91(_dot_)0(_dot_)1093465288(_dot_)zconcept(_at_)panix5(_dot_)panix(_dot_)com(_dot_)(_dot_)(_dot_)
...For fun, let's
rearrange into an exception-based structure.  For a message too big
for spamd, running spamc only costs like formail, so...

I added comments for completeness...  Thanks for your help Mike!
<<Dan>>

============= procmailrc =======================
## Using SpamAssassin site-wide, via procmail under user "filter"
## Calling SpamAssassin Daemon executed as: spamd -d -a -x -u filter -H
/home/filter

:0 fw    ## Avoid previously processed mail and mail from Spam maillists
that can poison bayes.
* ! ^X-Spam-Checker-Version: SpamAssassin .* on $HOST
* ! ^TO_spamassassin-users(_at_)incubator(_dot_)apache(_dot_)org
* ! ^TO_postfix-users@(postfix.org|cloud9.net)
| /usr/bin/spamc -x        ## Use -x to disable safe-fallback, as procmail
does this internally

:0 e    ## Small e says try this recipe if conditions matched but failed in
previous recipe.
{
  :0 fhw  ## Make sure not bigger than 256K, is so add custom header tag
X-VMC: BIG
  * > 256000
  | /usr/bin/formail -A "X-VMC: BIG"

  :0 E     ## Big E says try this recipe unless last tried recipe matched.
  {
    EXITCODE=75     ## EX_TEMPFAIL EXITCODE to force re-queue
    HOST                    ## unset HOST to exit procmail and re-queue
  }
}

=====================================================




____________________________________________________________
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