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 9d977d5 commit 69e3541
Showing 1 changed file with 7 additions and 20 deletions.
27 changes: 7 additions & 20 deletions ses-domain/ses_dns.md.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@
Update DNS to complete SES verification with the following details. This must be done
on all views: internal, Dmz, and Public, though Public is the most important one.

* TXT records for validation:

```
$ORIGIN ${domain}.
_amazonses ${ttl} in txt "${validation_txt}"
```

* TXT records for validation fully qualified:

```
Expand All @@ -24,15 +17,6 @@ _amazonses.${domain}. ${ttl} in txt "${validation_txt}"
Update DNS to set the DKIM records with the following details. This must be done
on all views: internal, Dmz, and Public, though Public is the most important one.

* CNAME records:

```
$ORIGIN ${domain}.
%{ for dk in dkim_tokens ~}
${dk}._domainkey ${ttl}in cname ${dk}.dkim.amazonses.com.
%{ endfor ~}
```

* CNAME records fully qualified:

```
Expand Down Expand Up @@ -64,14 +48,17 @@ Configuration of DMARC unknown at this time.
Once the DNS changes are done, you can validate them with these commands:

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

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

0 comments on commit 69e3541

Please sign in to comment.