diff options
Diffstat (limited to 'security/amavisd-new/files/amavis-milter.in')
-rw-r--r-- | security/amavisd-new/files/amavis-milter.in | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/security/amavisd-new/files/amavis-milter.in b/security/amavisd-new/files/amavis-milter.in new file mode 100644 index 000000000000..ec6136b96661 --- /dev/null +++ b/security/amavisd-new/files/amavis-milter.in @@ -0,0 +1,32 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: amavis_milter +# REQUIRE: amavisd +# BEFORE: mail +# KEYWORD: shutdown + +# +# Add the following lines to /etc/rc.conf to enable amavis-milter: +# +#amavis_milter_enable="YES" +# + +. /etc/rc.subr + +name=amavis_milter +rcvar=amavis_milter_enable + +command=%%PREFIX%%/sbin/amavis-milter +required_files=%%PREFIX%%/etc/amavisd.conf + +# set defaults + +amavis_milter_enable=${amavis_milter_enable:-"NO"} +amavis_milter_flags=${amavis_milter_flags:-"-D -p %%AMAVISDIR%%/amavis-milter.sock"} +amavis_milter_user=${amavis_milter_user:-"%%AMAVISUSER%%"} + +load_rc_config $name +run_rc_command "$1" |