summaryrefslogtreecommitdiff
path: root/mail/smtpd/files/smtpd.in
blob: b48e54eccce4ec216b4370afa82e38812f64f5df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: smtpd
# REQUIRE: DAEMON
#
# Add the following lines to /etc/rc.conf to run smtpd:
#
# smtpd_enable (bool):		Set it to "YES" to enable smtpd.
#				Default is "NO".
#

. /etc/rc.subr

name="smtpd"
rcvar=${name}_enable

command=%%PREFIX%%/sbin/smtpfwdd

load_rc_config ${name}

: ${smtpd_enable="NO"}

run_rc_command "$1"