aboutsummaryrefslogtreecommitdiff
path: root/mail/milter-greylist/files/milter-greylist.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mail/milter-greylist/files/milter-greylist.sh')
-rw-r--r--mail/milter-greylist/files/milter-greylist.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/mail/milter-greylist/files/milter-greylist.sh b/mail/milter-greylist/files/milter-greylist.sh
new file mode 100644
index 000000000000..45cda90666d2
--- /dev/null
+++ b/mail/milter-greylist/files/milter-greylist.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+# $FreeBSD$
+
+# PROVIDE: miltergreylist
+# REQUIRE: LOGIN
+# BEFORE: sendmail
+# KEYWORD: milter-greylist
+
+# Define these miltergreylist_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.miltergreylist
+# /etc/rc.conf.d/miltergreylist
+#
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
+#
+miltergreylist_enable="NO"
+miltergreylist_runas="smmsp"
+miltergreylist_pidfile="/var/run/milter-greylist.pid"
+miltergreylist_sockfile="/var/milter-greylist/milter-greylist.sock"
+miltergreylist_cfgfile="%%PREFIX%%/etc/mail/greylist.conf"
+miltergreylist_flags="-P $miltergreylist_pidfile -f $miltergreylist_cfgfile
+ -p $miltergreylist_sockfile -u $miltergreylist_runas"
+
+. %%RC_SUBR%%
+
+name="miltergreylist"
+rcvar=`set_rcvar`
+command="%%PREFIX%%/bin/milter-greylist"
+
+load_rc_config $name
+
+run_rc_command "$1"