arikchakma / mly.fyi

Monitor your sent emails effortlessly. Gain insights on delivery status and engagement metrics with ease.
https://mly.fyi
MIT License
93 stars 8 forks source link

Check why SES redirect links throws error #26

Open arikchakma opened 4 months ago

arikchakma commented 4 months ago

https://us-east-1.mly.fyi/CL0/https:%2F%2Farikko.dev/1/0100018f2c2ae500-46469ecd-b107-4bf3-9b6b-fcfb542b7319-000000/Izmo81Vyr2s62HLZsnBma2UPvYIBZOtd89SlxibGnL0=350

image
arikchakma commented 4 months ago

Solutions References:

Please note that if you don't have plans to use https links in your email body it will be fine without these configurations.

  1. https://docs.aws.amazon.com/ses/latest/dg/configure-custom-open-click-domains.html#configure-custom-open-click-domain-https
  2. https://repost.aws/knowledge-center/configure-cloudfront-to-forward-headers - tl;dr Disable caching and create a Response Policy. Click Headers, and choose Include the following headers. Choose ' Host ' from the Add header dropdown list, then add custom user-agent and X-Forwarded-For headers.
  3. https://docs.aws.amazon.com/acm/latest/userguide/troubleshooting-caa.html (Optional) - You might face a CAA issue while creating a certificate for the CloudFront alternative domain –– which is your redirect domain region.example.com. Solve it by adding 0 issue "amazon.com" in your DNS CAA type.

CloudFront Caching Resources

  1. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/RequestAndResponseBehaviorCustomOrigin.html#request-custom-headers-behavior
  2. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html#header-caching-web-device