#!/bin/sh

# PROVIDE: spmfilter
# REQUIRE: LOGIN
# BEFORE:  mail
# KEYWORD: shutdown
#
#
# Add the following lines to /etc/rc.conf to enable spmfilter:
#
# spmfilter_enable="YES"
#
# See spmfilter(1) for flags or the config file.
#

. /etc/rc.subr

name=spmfilter
rcvar=spmfilter_enable

command=/usr/local/sbin/spmfilter
sig_stop=KILL

load_rc_config $name

: ${spmfilter_enable="NO"}
: ${spmfilter_config="/usr/local/etc/spmfilter.conf"}
: ${spmfilter_flags="-f ${spmfilter_config}"}

run_rc_command "$1"
