- Newest
- Most votes
- Most comments
So, I tracked this down myself, but thought it would be useful to post here. The issue is that you can't use the same domain to send and receive from. So, when you send emails, it uses the feedback MX record. The domain for that email - in my case appmail.foo.com is only used for sending, in the SendMail request, you need to add a Source: "admin@appmail.foo.com", but also a ReplyToAddresses (e.g. ["support@foo.com"] so that if someone replies, it goes to the alternate address - support@foo.com. Now, let's say the email went to bob@bar.com. You would want Bob to be able to unsubscribe. Prior to the addition of extra email headers like Link-Unsubscribe (just announced https://aws.amazon.com/about-aws/whats-new/2024/03/amazon-ses-headers-sending-email/). For the person to unsubscribe, you had to put a link in the email. Now, with SES v2 Sending APIs, you can include the Link-Unsubscribe header and have the response go to a Receiving subdomain like unsubscribe.foo.com - you could then attach a Lambda (https://aws.amazon.com/blogs/aws/new-receive-and-process-incoming-email-with-amazon-ses/) to that and process the unsubscribe. Alternatively, use List Management new in SES V2 (https://docs.aws.amazon.com/ses/latest/dg/sending-email-list-management.html). The SES docs could be clearer in the introduction as to why the SendMail API is used and that it cannot receive email at the same address - thus the ReplyToAddresses.
Relevant content
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 24 days ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a year ago