868975711d
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.
23 lines
352 B
Bash
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"
|