openbsd-ports/mail/postfwd/pkg/postfwd2.rc
giovanni 2c4dd5a552 Import mail/postfwd, a postfix policy server
help and ok brad@ and landry@

Postfwd is a policy server that combines complex Postfix restrictions
in a ruleset similar to those of most firewalls. Postfwd
uses the Postfix policy delegation protocol to control access to
the mail system before a message has been accepted. It allows you
to choose an action (e.g. reject, dunno) for a combination of several
SMTP parameters (like sender and recipient address, size or the
client's TLS fingerprint).
2013-03-20 14:22:06 +00:00

21 lines
309 B
Bash

#!/bin/sh
#
# $OpenBSD: postfwd2.rc,v 1.1.1.1 2013/03/20 14:22:06 giovanni Exp $
daemon="${TRUEPREFIX}/sbin/postfwd2"
daemon_flags="-u _postfwd -g _postfwd -f /etc/postfix/postfwd2.cf"
. /etc/rc.d/rc.subr
pexp="perl: ${daemon}"
rc_stop() {
${daemon} --stop
}
rc_reload() {
${daemon} --hup
}
rc_cmd $1