procmail
[Top] [All Lists]

Re: Should I tempfail when spamfiltering

2004-08-25 12:06:42
"David W. Tamkin" <dattier(_at_)panix(_dot_)com> wrote in message
news:412CD16D(_dot_)2030909(_at_)panix(_dot_)com(_dot_)(_dot_)(_dot_)
      EXITCODE = $EX_TEMPFAIL
      HOST = "_spamc_failed_"

If you're hoping to get "_spamc_failed_" in the logfile by doing that,
it won't happen unless you have verbose logging on (which you might, but
nothing in that excerpt indicated it).  If LOGABSTRACT is yes or all,
this will log the reason without needing verbosity on:

EXITCODE = $EX_TEMPFAIL
LASTFOLDER = "_spamc_failed_"
HOST # unsetting is enough

Good point, I also missed adding the "-x"
Another shot
====== procmailrc ======
## Run SpamAssassin Daemon Client
## Calling SpamAssassin Daemon executed as spamd -d -x -a -u filter -m 5
EX_TEMPFAIL = 75
:0
* ! ^X-Spam-Checker-Version: SpamAssassin .* on $host
{
  :0
  * > 256000
  {
    :0fhw
    | formail -A "X-VMC: BIG"
  }
  :0 E
  * ! ^TO_spamassassin-users(_at_)incubator(_dot_)apache(_dot_)org
  * ! ^TO_postfix-users@(postfix.org|cloud9.net)
  * ! ^X-Spam-Checker-Version: SpamAssassin .* on $host
  {
    :0 fw
    | /usr/bin/spamc -x
    :0 e ## If previous errors, run this
    * ! ^X-Spam-Checker-Version: SpamAssassin .* on $host
    {
      EXITCODE = $EX_TEMPFAIL
      LOG="$DATE: SPAMC Failed"
      HOST = "_spamc_failed_"
    }
  }
}
========================
<<Dan>>



____________________________________________________________
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