1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-20 02:52:11 +00:00

Check if mta-sts user exists before adding

This commit is contained in:
cmharper 2019-04-14 10:06:24 +01:00
parent dbec391264
commit 67c084cb12

View File

@ -230,7 +230,7 @@ chmod a+r /var/lib/mailinabox/mta-sts.txt
# install the postfix MTA-STS resolver
hide_output /usr/bin/pip3 install postfix-mta-sts-resolver
# add a user to use solely for MTA-STS resolution
useradd -c "Daemon for MTA-STS policy checks" mta-sts -s /usr/sbin/nologin
id -u mta-sts &>/dev/null || useradd -c "Daemon for MTA-STS policy checks" mta-sts -s /usr/sbin/nologin
# create systemd services for MTA-STS
cat > /etc/systemd/system/postfix-mta-sts-daemon@.service << EOF
[Unit]