Updated setup instructions

This commit is contained in:
Andris Reinman 2024-02-08 10:33:41 +02:00
parent 72782ce455
commit 36540a7bda
No known key found for this signature in database
GPG key ID: DC6C83F4D584D364

View file

@ -99,6 +99,11 @@ Also copy the following two files too:
pem: private key (guard it well) pem: private key (guard it well)
cert: public key cert: public key
DMARC
---
Add this TXT record to the $MAILDOMAIN DNS zone:
_dmarc.$MAILDOMAIN. IN TXT \"v=DMARC1; p=reject;\"
PTR PTR
--- ---
@ -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 assigned their own hostname, then edit /etc/zone-mta/pools.toml and replace
the hostname $HOSTNAME with the actual hostname of this server. 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" (this text is also stored to $INSTALLDIR/$MAILDOMAIN-nameserver.txt)" > "$INSTALLDIR/$MAILDOMAIN-nameserver.txt"
printf "Waiting for the server to start up.." printf "Waiting for the server to start up.."
until $(curl --output /dev/null --silent --fail http://localhost:8080/users); do until $(curl --output /dev/null --silent --fail http://localhost:8080/users); do