RH7.3,Postfix 2.1, procmail w/ SpamAssassin.
Using type 1 after-queue filtering.

===================================
Executing in master.cf:
procmail  unix  -       n       n       -       12      pipe
  flags=R user=filter
  argv=procmail -Y -f- -t -m /etc/mail/procmail/procmailrc ${sender}
${recipient}
===================================

I have set my procmail to requeue messages that do not get processed in a
normal amount of time.
TIMEOUT=120
:0 W
| spamc -x -t 1
## Note I set -t to 1 for testing purposes.  Normally -t 90 is my timeout.
:0 e
{
  EXITCODE=75
  HOST
}

===================================
Messages requeue just fine, but I get SIGPIPE message and strange responses
from "spamd" in my postfix maillog:
Sep  3 14:41:41 hickory spamd[6154]: processing message <[EMAIL PROTECTED]> for
filter:502.
Sep  3 14:41:42 hickory postfix/pipe[6146]: D3BEF4BDBF: to=<[EMAIL PROTECTED]>,
relay=procmail, delay=8, status=deferred (temporary failure)
Sep  3 14:42:44 hickory spamd[6154]: clean message (-4.8/6.5) for filter:502
in 63.0 seconds, 213585 bytes.
Sep  3 14:42:44 hickory spamd[6154]: clean message (-4.8/6.5) for filter:502
in 63.0 seconds, 213585 bytes.
Sep  3 14:42:44 hickory spamd[6154]: SIGPIPE received - reopening log socket
===================================

man spamc says when excedes timeout (-t 1), spamc will treat as a failure to
connect.
In testing, this is a EX_IOERR (74).  I manually set this to EX_TEMPFAIL
(75) instead and exit with HOST.

Why does spamd come back saying I have a clean message (TWICE), and yet the
real message was requeued?
What am I missing?

TIA
<<Dan>>

Reply via email to