aboutsummaryrefslogtreecommitdiffstats
path: root/testing/spampd/spampd.initd
diff options
context:
space:
mode:
authorChloe Kudryavtsev <toast@toastin.space>2018-11-03 21:22:59 -0400
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-11-09 14:06:06 +0000
commita5a124a7baec9eddae08acd6f72ce8fc71f68a21 (patch)
tree490673e8c93845d43973f06e6f17ccf6815ee250 /testing/spampd/spampd.initd
parent95911a5ea48744c72dd4a3ec0d3b0ca5568fddd9 (diff)
downloadaports-a5a124a7baec9eddae08acd6f72ce8fc71f68a21.tar.bz2
aports-a5a124a7baec9eddae08acd6f72ce8fc71f68a21.tar.xz
testing/spampd: new aport
https://www.worlddesign.com/index.cfm/page/software/open-source/spampd.htm An SMTP / LMTP proxy that uses spamassassin to mark spam. Similar to amavisd-new, but lets spamassassin modify headers directly, and significantly simpler to use/configure.
Diffstat (limited to 'testing/spampd/spampd.initd')
-rw-r--r--testing/spampd/spampd.initd16
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/spampd/spampd.initd b/testing/spampd/spampd.initd
new file mode 100644
index 0000000000..139830f158
--- /dev/null
+++ b/testing/spampd/spampd.initd
@@ -0,0 +1,16 @@
+#!/sbin/openrc-run
+command="/usr/bin/spampd"
+pidfile="/run/${RC_SVCNAME}.pid"
+command_args="-p=$pidfile
+ ${user:+-u=$user} ${group:+-g=$group}
+ ${host:+--host=$host} ${port:+--port=$port}
+ ${sock:+--socket=$sock} ${smod:+--socket-perms=$smod}
+ ${rhost:+--relayhost=$rhost} ${rport:+--relayport=$rport}
+ ${rsock:+--relaysocket=$rsock}
+ $args"
+
+# no reload because HUP does not reload spamassassin configuration
+
+depend() {
+ before mta
+}