summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkedom <71038454+kedom1337@users.noreply.github.com>2024-03-28 13:58:30 +0000
committerGitHub <noreply@github.com>2024-03-28 13:58:30 +0000
commit5f16c868d9c428c3233f684fa28d90bd4cda04ac (patch)
tree9c0f208be2f58f3d416b8e1322363e7b5e86a09c
parent9f9f2b2e63c8e60730ea82c203dbbd9dd7fea082 (diff)
feat: turn user "dmarc" into "postmaster" for more generic use cases
-rw-r--r--emailwiz.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/emailwiz.sh b/emailwiz.sh
index 5110e89..f3005ae 100644
--- a/emailwiz.sh
+++ b/emailwiz.sh
@@ -363,16 +363,16 @@ dmarcentry="_dmarc.$domain TXT v=DMARC1; p=reject; rua=mailto:dmarc@$domain; fo=
spfentry="$domain TXT v=spf1 mx a:$maildomain ip4:$ipv4 ip6:$ipv6 -all"
mxentry="$domain MX 10 $maildomain 300"
-useradd -m -G mail dmarc
+useradd -m -G mail postmaster
-# Create a cronjob that deletes month-old dmarc feedback:
-cat <<EOF > /etc/cron.weekly/dmarc-clean
+# Create a cronjob that deletes month-old postmaster mails:
+cat <<EOF > /etc/cron.weekly/postmaster-clean
#!/bin/sh
-find /home/dmarc/Mail -type f -mtime +30 -name '*.mail*' -delete >/dev/null 2>&1
+find /home/postmaster/Mail -type f -mtime +30 -name '*.mail*' -delete >/dev/null 2>&1
exit 0
EOF
-chmod 755 /etc/cron.weekly/dmarc-clean
+chmod 755 /etc/cron.weekly/postmaster-clean
grep -q '^deploy-hook = echo "$RENEWED_DOMAINS" | grep -q' /etc/letsencrypt/cli.ini ||
echo "