- Newest
- Most votes
- Most comments
The issue is that you're trying to use IAM access keys directly for SMTP authentication with Amazon SES, which won't work. For SMTP authentication with SES, you need specific SMTP credentials that are different from your IAM access keys.
When using SES with an email client via SMTP, you need to:
-
Generate SMTP credentials specifically for SES. These are different from regular IAM access keys, even though they're derived from IAM credentials.
-
Make sure you're creating these SMTP credentials in the correct AWS region where your SES service is configured.
-
Ensure your IAM user has the proper permissions. While you have "ses:SendRawEmail" permission, you might also need "ses:SendEmail" depending on how your email client is sending messages.
To fix this issue:
- Go to the SES console
- Navigate to the SMTP settings section
- Create SMTP credentials specifically for your IAM user
- Use these SMTP credentials (not your IAM access keys) in your email client
This explains why your other user works - it likely has proper SMTP credentials configured, not just IAM access keys.
Sources
Amazon SES bug or problem | AWS re:Post
Identity and access management in Amazon SES - Amazon Simple Email Service
Python3 boto3 email-sending error in EC2 (ubuntu) | AWS re:Post
answered a year ago
