pkgsrc/mail/spamd/files/pfspamd.sh
peter 868975711d Initial import of spamd-20050624 (from OpenBSD 3.7 sources).
spamd is a fake sendmail(8)-like daemon which rejects false mail.  If the
pf packet filter (security/pflkm) is configured to redirect port 25 (SMTP)
to this daemon, it will attempt to waste the time and resources of
the spam sender.

Approved by Thomas Klausner.
2005-06-28 12:43:57 +00:00

23 lines
352 B
Bash

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: pfspamd.sh,v 1.1.1.1 2005/06/28 12:43:57 peter Exp $
#
# PROVIDE: pfspamd
# REQUIRE: DAEMON
#
. /etc/rc.subr
name="pfspamd"
rcvar=$name
command="@PREFIX@/libexec/spamd"
pfspamd_postcmd()
{
if [ -x @PREFIX@/libexec/spamd-setup ]; then
@PREFIX@/libexec/spamd-setup
fi
}
load_rc_config $name
run_rc_command "$1"