Skip to content

Commit

Permalink
update template
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 13, 2021
1 parent 8666fa1 commit de7ba98
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions ses-domain/ses_dns.md.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,29 @@ Configuration of DMARC unknown at this time.

Once the DNS changes are done, you can validate them with these commands:

* Internal

```shell
SERVER=""
echo -n "in txt _amazonses.${domain}. "
dig $SERVER +short in txt _amazonses.${domain}. | grep -c "${validation_txt}"
dig $SERVER +short in txt _amazonses.${domain}.
%{ for dk in dkim_tokens ~}
echo -n "in cname ${dk}._domainkey.${domain}. "
dig $SERVER +short in cname ${dk}._domainkey.${domain}. | grep -ci "${dk}.dkim.amazonses.com"
dig $SERVER +short in cname ${dk}._domainkey.${domain}.
%{ endfor ~}
echo -n "in mx ${mail_from}.${domain}. "
dig $SERVER +short in mx ${mail_from}.${domain}. | grep -ci "feedback-smtp.${region}.amazonses.com"
echo -n "in txt ${mail_from}.${domain}. "
dig $SERVER +short in txt ${mail_from}.${domain}. | grep -ci "v=spf1 include:amazonses.com -all"
dig $SERVER +short in mx ${mail_from}.${domain}.
dig $SERVER +short in txt ${mail_from}.${domain}.
```

To specify a different sever, set `SERVER="@148.129.127.22"` or some other specific sever IP.

* External

Use [Dig Webinterface](https://www.digwebinterface.com/). Paste thse in and change the types to `TXT`, `CNAME`, and `MX` to see the values.

```shell
_amazonses.${domain}.
%{ for dk in dkim_tokens ~}
${dk}._domainkey.${domain}.
%{ endfor ~}
${mail_from}.${domain}.
${mail_from}.${domain}.
```

0 comments on commit de7ba98

Please sign in to comment.