Email Identity

本节我们将介绍使用Email Identity这种方式进行验证


创建Email Identity

进入SES的Verified identities页面,点击Create identity:

image-20231005054007396

选择Email address并填入自己的邮箱:

image-20231005054136035

上面的操作也可能通过命令行实现:aws sesv2 create-email-identity --email-identity example@example.com

在邮箱中会收到一封邮件,点击里面的链接:

image-20231004221532638

点击确认链接后,通过控制台来查看验证的状态:

image-20231004221628825

当然也可以通过命令行也确认验证状态:

$ aws sesv2 get-email-identity --email-identity xxx@qq.com | jq

{
  "IdentityType": "EMAIL_ADDRESS",
  "FeedbackForwardingStatus": true,
  "VerifiedForSendingStatus": true,
  "DkimAttributes": {
    "SigningEnabled": false,
    "Status": "NOT_STARTED",
    "SigningAttributesOrigin": "AWS_SES",
    "NextSigningKeyLength": "RSA_1024_BIT"
  },
  "MailFromAttributes": {
    "BehaviorOnMxFailure": "USE_DEFAULT_VALUE"
  },
  "Policies": {},
  "Tags": [],
  "VerificationStatus": "SUCCESS"
}

这个命令除了返回email验证的状态外,还返回了DKIM属性。