Skip to content

SESv2 SendEmail returns AccessDeniedException although IAM Policy Simulator allows the request

0

SESv2 SendEmail returns AccessDeniedException although IAM Policy Simulator allows the request

This is a follow-up to an earlier resolved question about the default configuration set. An AWS re:Post Expert confirmed that when ConfigurationSetName is omitted, the implicitly selected default configuration set is not evaluated as an IAM resource.

The remaining issue is a separate authorization discrepancy.

Setup

  • Amazon SES v2 direct SendEmail
  • Content.Simple
  • Same AWS account
  • Verified parent-domain identity
  • Sender address is under that domain and is not separately verified
  • ConfigurationSetName omitted
  • FromEmailAddressIdentityArn omitted
  • IAM principal has ses:SendEmail permission on the verified domain identity ARN

The credentials authenticate successfully to the intended IAM principal.

I also confirmed there is no:

  • permissions boundary
  • SCP
  • group or inline policy
  • additional attached policy
  • SES identity resource policy

Observed behavior

The live SESv2 request returns:

AccessDeniedException

IAM Policy Simulator allows the intended request when the relevant context values are supplied.

The baseline policy uses:

  • the exact verified domain identity ARN
  • ses:FromAddress
  • aws:RequestedRegion

I then tested each condition independently:

  • removing only aws:RequestedRegion → live request still returned AccessDeniedException
  • removing only ses:FromAddress → live request still returned AccessDeniedException

IAM simulation allowed both test cases.

The original baseline policy was restored afterward.

Questions

For a same-account SESv2 SendEmail request like this:

  1. Is the verified parent-domain identity ARN normally the only SES resource evaluated when no sending-authorization ARN is supplied?
  2. Can the live SES authorization path evaluate something that IAM Policy Simulator does not represent and return AccessDeniedException?
  3. Is there a supported way to identify the actual resource ARN or authorization context used by the denied live request, for example through CloudTrail?

I am specifically asking about direct SESv2 SendEmail, not SMTP, Mail Manager, delegated sending, or an explicitly supplied configuration set.

1 Answer
1

Hello.

Can SES perform any additional service-side authorization check that is not represented by IAM Policy Simulator and that could produce AccessDeniedException?

AWS explicitly states that the Policy Simulator evaluates specified actions, resources, and contexts without executing actual AWS service requests, and that results may differ from those in a live environment. Examples cited include VPC endpoint policies, role chaining, and multiple resource-based policies.
https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_testing-policies.html

The policy simulator results can differ from your live AWS environment. We recommend that you check your policies against your live AWS environment after testing with the policy simulator to confirm that you have the desired results. For more information, see How the IAM policy simulator works.

Therefore, I recommend testing with an IAM configuration that uses an asterisk for the resource ARN or has slightly broader permissions, and then gradually restricting the policy.

EXPERT

answered a month ago

EXPERT

reviewed a month ago

  • Should authorization normally be evaluated only against the verified parent-domain identity ARN when no sending-authorization ARN is supplied?

    I would need to check the API logs in CloudTrail to be certain, but since the ARN is likely listed there, I believe that specific ARN is what is being evaluated.

  • Update: the issue is still unresolved.

    I have continued narrowing it down:

    • SES domain identity and DKIM are verified.
    • The request is a simple SESv2 SendEmail.
    • No configuration set is supplied.
    • IAM simulation allows the request.
    • There is no permissions boundary, SCP, or SES identity resource policy blocking it.
    • Removing the region condition did not help.
    • Removing the sender-address condition did not help.
    • The live request still returns AccessDeniedException.

    At this point, what additional authorization check can SES apply to the live SendEmail request that would not appear in iam:SimulateCustomPolicy?

    If CloudTrail can expose the exact denied resource or authorization context, what fields should I inspect?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.