2004-05-27 23:12:08 +02:00
|
|
|
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
# PROVIDE: miltergreylist
|
|
|
|
# REQUIRE: LOGIN
|
2008-10-07 22:26:23 +02:00
|
|
|
# BEFORE: mail
|
2004-05-27 23:12:08 +02:00
|
|
|
# KEYWORD: milter-greylist
|
|
|
|
|
|
|
|
# Define these miltergreylist_* variables in one of these files:
|
|
|
|
# /etc/rc.conf
|
2004-07-29 22:07:03 +02:00
|
|
|
# /etc/rc.conf.local
|
2004-05-27 23:12:08 +02:00
|
|
|
# /etc/rc.conf.d/miltergreylist
|
|
|
|
#
|
|
|
|
# DO NOT CHANGE THESE DEFAULT VALUES HERE
|
|
|
|
#
|
2005-06-30 13:55:19 +02:00
|
|
|
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
|
|
|
|
name="miltergreylist"
|
|
|
|
rcvar=`set_rcvar`
|
|
|
|
|
2008-07-26 12:41:17 +02:00
|
|
|
command="%%PREFIX%%/libexec/milter-greylist"
|
|
|
|
|
2005-06-30 13:55:19 +02:00
|
|
|
load_rc_config $name
|
|
|
|
|
2004-07-29 22:07:03 +02:00
|
|
|
miltergreylist_enable=${miltergreylist_enable-"NO"}
|
2006-12-10 06:10:38 +01:00
|
|
|
miltergreylist_runas=${miltergreylist_runas-"mailnull"}
|
2004-07-29 22:07:03 +02:00
|
|
|
miltergreylist_pidfile=${miltergreylist_pidfile-"/var/run/milter-greylist.pid"}
|
|
|
|
miltergreylist_sockfile=${miltergreylist_sockfile-"/var/milter-greylist/milter-greylist.sock"}
|
|
|
|
miltergreylist_cfgfile=${miltergreylist_cfgfile-"%%PREFIX%%/etc/mail/greylist.conf"}
|
|
|
|
miltergreylist_flags=${miltergreylist_flags-"-P $miltergreylist_pidfile \
|
|
|
|
-f $miltergreylist_cfgfile -p $miltergreylist_sockfile -u $miltergreylist_runas"}
|
2004-05-27 23:12:08 +02:00
|
|
|
|
|
|
|
run_rc_command "$1"
|