SES Authorization Policy not working
0
Hello, within SES sending mails is possible and working, but i would like to restrict the FROM address which is not working. Even with a limiting(aws@example.com) sending authorization policy I can send with any FROM address. Here is my Sending authorization policies:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "XXX",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::XXX:user/ses-smtp-userXXX"
},
"Action": "ses:SendRawEmail",
"Resource": "arn:XXX:identity/XXX",
"Condition": {
"StringLike": {
"ses:FromAddress": "aws@example.com"
}
}
}
]
}
IAM policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "ses:SendRawEmail",
"Resource": "*"
}
]
}
Do i have to set the condition also for the IAM policy? What is the better/right way for which use-case: IAM or sending authorization policy
asked 3 months ago9 views
1 Answers
0
Accepted Answer
Hi.
The default policy is allowed.
You can allow only specific addresses by denying other than specific From addresses as shown below.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "XXX",
"Effect": "Deny",
"Principal": {
"AWS": "arn:aws:iam::XXX:user/ses-smtp-userXXX"
},
"Action": "ses:SendRawEmail",
"Resource": "arn:XXX:identity/XXX",
"Condition": {
"StringNotLike": {
"ses:FromAddress": "aws@example.com"
}
}
}
]
}
Relevant questions
SES Authorization Policy not working
Accepted Answerasked 3 months agoProblems sending emails from webmail (not a problem from SES console)
Accepted Answerasked 6 months agoMy aws SES production access is denied
asked a month agoSending SES emails using UTF-8 characters in the address
Accepted Answerasked 2 months agoSES is not sending Email to outlook and Ymail
asked 7 months agoHow to receive bounce replies to e-mail address when sending via Amazon SES? [Xenforo Forum Bounce Handling]
asked 3 months agoSES Delegate Sender and ConfigurationSetDoesNotExist
Accepted Answerasked 6 months agoblock sending email to a specific address
asked 2 years agoSES Reconnect Not Working
asked 4 months agoSending email via SES without SMTP
asked 2 months ago