diff --git a/README.md b/README.md index 3750857..e5c4b2b 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,22 @@ Log onto your registrar and set and A and AAAA record onto your domain that poin Now, you want to point these records in a way that `mail.yourdomain.com` resolves to your server's IP. +Now, make sure to also add these TXT records (these TXT records have no name. Input `@` if it forces you to put a name in): +``` +v=spf1 mx a:mail.yourdomain.com ip4:51.79.70.119 ip6:2607:5300:205:200::35c2 -all +``` +``` +v=DMARC1; p=reject; rua=mailto:postmaster@yourdomain.com; fo=1 +``` +Replace the domain, ip4 and ip6 with your own. + +Lastly, add this `MX` record to your domain: +``` +mail.yourdomain.com +``` + +If it asks for a distance/priority parameter, input `10`. + **Keep your domain's DNS manager open, we're not done with it.** ## Step 2 @@ -123,15 +139,6 @@ In your DNS settings of your domain, create a TXT record called `mail._domainkey Make sure to copy-paste what the script outputs, not the bullshit I gave as an example, you moron. -Make sure to also add these TXT records (the TXT records have no name. Input `@` if it forces you to put a name in): -``` -v=spf1 mx a:mail.yourdomain.com ip4:51.79.70.119 ip6:2607:5300:205:200::35c2 -all -``` -``` -v=DMARC1; p=reject; rua=mailto:postmaster@lolcat.ca; fo=1 -``` -Replace the domain, ip4 and ip6 with your own. - # Check the shit works Make sure to wait for the DNS to propagate, and then send an email to ping@tools.mxtoolbox.com. You should get an email back with your deliverability score, and it should tell you if your DKIM is setup correctly. You'll also see what headers are being sent when you send out an email. Here are what my headers look on my server: