Skip to content

Commit

Permalink
Updated setup instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Feb 8, 2024
1 parent 72782ce commit 36540a7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions setup/15_install_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ Also copy the following two files too:
pem: private key (guard it well)
cert: public key
DMARC
---
Add this TXT record to the $MAILDOMAIN DNS zone:
_dmarc.$MAILDOMAIN. IN TXT \"v=DMARC1; p=reject;\"
PTR
---
Expand All @@ -107,8 +112,20 @@ If your hosting provider does not allow you to set PTR records but has
assigned their own hostname, then edit /etc/zone-mta/pools.toml and replace
the hostname $HOSTNAME with the actual hostname of this server.
TL;DR
-----
Add the following DNS records to the $MAILDOMAIN DNS zone:
$MAILDOMAIN. IN MX 5 $HOSTNAME.
$MAILDOMAIN. IN TXT \"v=spf1 ip4:$PUBLIC_IP ~all\"
$DKIM_SELECTOR._domainkey.$MAILDOMAIN. IN TXT \"$DKIM_DNS\"
_dmarc.$MAILDOMAIN. IN TXT \"v=DMARC1; p=reject;\"
(this text is also stored to $INSTALLDIR/$MAILDOMAIN-nameserver.txt)" > "$INSTALLDIR/$MAILDOMAIN-nameserver.txt"


printf "Waiting for the server to start up.."

until $(curl --output /dev/null --silent --fail http://localhost:8080/users); do
Expand Down

0 comments on commit 36540a7

Please sign in to comment.