I am using AWS SES in the Ireland region and S3 in the Frankfurt region to deliver emails.
When I try to configure email receiving to deliver to S3, I encounter the following error:
Unknown error: couldn't write to this bucket XYZ
I have checked all the documentation and Stack Overflow posts. I also tried setting the bucket policy as advised by AWS documentation, but it didn’t work due to the different regions.
Here is the documentation I referred to: AWS SES Receiving Email Permissions
That’s what AWS docs advice as bucket policy and it doesn’t work for me :
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowSESAssume",
"Effect": "Allow",
"Principal": {
"Service": "ses.amazonaws.com"
},
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": {
"AWS:SourceAccount":"111122223333",
"AWS:SourceArn": "arn:aws:ses:region:111122223333:receipt-rule-set/rule_set_name:receipt-rule/receipt_rule_name"
}
}
}
]
}
In this case, you need to configure the region for your client. In case you can provide me code snippet, I can help you update the code to make it work.
1