aboutsummaryrefslogtreecommitdiffstats
path: root/main/opensmtpd/opensmtpd.pre-install
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-11-11 10:04:03 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-11-11 10:09:44 +0000
commit58f4fccbf94e2ec11cb3d7d41c58ab3ddca681c6 (patch)
treee10f9885fd26943e66637ca08cc7ade6541d25e4 /main/opensmtpd/opensmtpd.pre-install
parent537910b75b561aa1d4cf70e9b22dbf98925f602d (diff)
downloadaports-58f4fccbf94e2ec11cb3d7d41c58ab3ddca681c6.tar.bz2
aports-58f4fccbf94e2ec11cb3d7d41c58ab3ddca681c6.tar.xz
main/opensmtpd: move from testing
Diffstat (limited to 'main/opensmtpd/opensmtpd.pre-install')
-rw-r--r--main/opensmtpd/opensmtpd.pre-install11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/opensmtpd/opensmtpd.pre-install b/main/opensmtpd/opensmtpd.pre-install
new file mode 100644
index 0000000000..af0620e3db
--- /dev/null
+++ b/main/opensmtpd/opensmtpd.pre-install
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+addgroup -S smtpd 2>/dev/null
+addgroup -S smtpq 2>/dev/null
+
+adduser -S -H -D -s /sbin/nologin -h /dev/null -g 'SMTP Daemon' -G smtpd smtpd 2>/dev/null
+adduser -S -H -D -s /sbin/nologin -h /dev/null -g 'SMTPD Queue' -G smtpq smtpq 2>/dev/null
+
+mkdir -p /var/spool/mail
+
+exit 0