How to refresh an SES domain that has failed verification

0

For Amazon SES, If a domain in the Pending state is not verified within 72 hours it goes into the Unverified (Failed) state. If the DKIM records are configured it will not automatically be verified. There is a "Retry" option in the console that puts the domain back in the pending state so that it will be verified. The question is how can the Retry be triggered via the API?

The only option I can see is to delete and re-add it. Is there are cleaner or proper way of doing it?

BrianJ
已提问 1 年前517 查看次数
2 回答
1

There is no API Call to 'retry' the Domain verification process through API Calls. In the case of domian re-verification via API call, you would first need to 'delete' the domain using 'DeleteIdentity' API call and then attempt to verify the domain again using the 'VerifyDomainIdentity' API call

DeleteIdentity - https://docs.aws.amazon.com/ses/latest/APIReference/API_DeleteIdentity.html

VerifyDomainIdentity - https://docs.aws.amazon.com/ses/latest/APIReference/API_VerifyDomainIdentity.html

profile picture
专家
已回答 1 年前
0
已接受的回答

I am just following up. I found another post that said it could be done with Version1 of the API by calling VerifyDomainDkim(). I tried it out and it worked perfectly.

https://stackoverflow.com/questions/74747845/can-i-retry-dkim-domain-verification-in-aws-through-api-or-some-other-automated

BrianJ
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则