#!/bin/sh
#
# Example how to use Dr.WEB and SpamAssassin together.
# To activate this script:
# 1) copy script to /opt/drweb;
# 2) replace in master.cf line:
#   flags=R user=drweb argv=/opt/drweb/drweb-postfix -f ${sender} -- ${recipient}
# by:
#   flags=R user=drweb argv=/opt/drweb/filters.sh -f ${sender} -- ${recipient}
#

FILTER_SPAMC="spamc -u drweb"
FILTER_DRWEB="/opt/drweb/drweb-postfix"
cat | $FILTER_SPAMC | $FILTER_DRWEB $*
