~dricottone/huttese-apk

ref: 407bec0a045e3dd936e0906e51b62f885889c6e2 huttese-apk/sr.ht/go-msgauth/dkim-milter.initd -rw-r--r-- 793 bytes
407bec0a — Drew DeVault py3-pyphen: drop package 2 years ago
                                                                                
5918c901 Drew DeVault
35ca3fd6 Drew DeVault
5918c901 Drew DeVault
fa795188 Drew DeVault
5918c901 Drew DeVault
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
26
27
28
29
#!/sbin/openrc-run
name="dkim-milter"
description="Milter for DKIM signatures and verification"
supervisor=supervise-daemon
command=/usr/bin/dkim-milter
_domains=
for d in $dkim_sign_domains
do
	_domains="$_domains -d $d"
done
command_args="-l $dkim_listen_address -s $dkim_selector -k $dkim_key $_domains"
if [ -n "$dkim_host" ]
then
	command_args="$command_args -i $dkim_host"
fi
command_user="dkim:dkim"

start_pre() {
	[ -n "$output_log" ] && checkpath -f "$output_log" \
		-m 644 -o dkim:dkim
	[ -n "$error_log" ] && checkpath -f "$error_log" \
		-m 644 -o dkim:dkim
	if [ -z "$dkim_sign_domains" ] || [ -z "$dkim_key" ] || [ -z "$dkim_selector" ]
	then
		eerror "$RC_SVCNAME is not configured to sign any domains"
		eerror "Edit /etc/conf.d/$RC_SVCNAME before continuing"
		eend 1
	fi
}