Trouble sending ses email to s3 bucket

0

Ive never done any of this before and I'm having trouble verifying my new @domain email. Ive set up an s3 bucket. I used chatgpt to write the policy. Im configuring my email receiving rule in ses but I keep getting "The action or operation requested is invalid. Verify that the action is typed correctly."

I have the regions set correctly. The bucket name was copied and pasted

Ive replaced actual values with domain, arn, mybucket

{
    "Version": "2012-10-17",
    "Id": "SESPermissionPolicy",
    "Statement": [
        {
            "Sid": "AllowSESPolicy",
            "Effect": "Allow",
            "Principal": {
                "Service": "ses.amazonaws.com"
            },
            "Action": [
                "s3:PutObject",
                "s3:GetObject",
                "s3:DeleteObject"
            ],
            "Resource": "arn:aws:s3:::mybucket/*",
            "Condition": {
                "StringEquals": {
                    "aws:Referer": "domain"
                }
            }
        },
        {
            "Sid": "AllowSESReceiveEmails",
            "Effect": "Allow",
            "Principal": {
                "Service": "ses.amazonaws.com"
            },
            "Action": [
                "s3:PutObject",
                "s3:GetObject",
                "s3:DeleteObject"
            ],
            "Resource": "arn:aws:s3:::mybucket/*",
            "Condition": {
                "StringEquals": {
                    "aws:Referer": "domain"
                },
                "StringLike": {
                    "aws:Referer": "copied arn email@domain"
                }
            }
        }
    ]
}
1 Answer
0

Hello.

I think you can set up reception on Amazon SES by following the steps in the document below.
Please check the bucket policy as well.
https://repost.aws/knowledge-center/ses-receive-inbound-emails

profile picture
EXPERT
answered 3 months ago

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.

Guidelines for Answering Questions