diff --git a/ses-domain/ses_dns.md.tpl b/ses-domain/ses_dns.md.tpl index ca5721d..b2cbe29 100644 --- a/ses-domain/ses_dns.md.tpl +++ b/ses-domain/ses_dns.md.tpl @@ -58,3 +58,20 @@ ${mail_from}.${domain}. ${ttl} in txt "v=spf1 include:amazonses.com -all" ## DMARC Records Configuration of DMARC unknown at this time. + +# Valdation of records + +Once the DNS changes are done, you can validate them with these commands: + +```shell +echo -n "in txt _amazonses.${domain}. " +dig +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" +%{ endfor ~} +echo -n "in mx ${mail_from}.${domain}. " +dig +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" +```