[Dovecot] dovecot-antispam crm114 config

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Tue Nov 11 13:54:51 EET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 11 Nov 2008, Peter Fern wrote:

> Does anyone have a working crm114 config for dovecot-antispam?  I have

to debug antispam backends that spawns another program I recommend to 
replace the call with a shell script, e.g.:

#!/bin/bash

tmpf=/tmp/antispam.log.$$

(
  date
  id
  let i=0
  for arg; do
   let i=1+i
   echo "arg $i $arg"
  done
  cat - > $tmpf.msg
  command "$@" < $tmpf.msg
  rc=$?
  echo rc=$rc
  date
  exit $rc
) 2> $tmpf.err > $tmpf.log

Bye,

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJGXKNVJMDrex4hCIRAmreAJsGwVRLtHUxuu+REg8oG5t9IK2g+QCfcRqs
RO+S8EKIoSXx24GQ3miUY+0=
=Y3PO
-----END PGP SIGNATURE-----


More information about the dovecot mailing list