summaryrefslogtreecommitdiff
path: root/main/opensmtpd/opensmtpd.pre-install
blob: af0620e3db171249695ca102a51b61d5ac461288 (plain)
1
2
3
4
5
6
7
8
9
10
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