1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AWS SES で検証済のドメインとメールアドレスが競合しているときのカスタム MAIL FROM での書き換え

Posted at

次のようにドメインとメールアドレスをバリデーションしていて、

かつ、このそれぞれにカスタムの MAIL FROM を設定しているときに、下記のような送信メールの Return-Path/From のパターンで、どの検証済ドメイン/メールアドレスのカスタム MAIL FROM の設定で書き換えが行われるかのメモ。

Return-Path From 使用されたカスタム MAIL FROM の設定
001@example.com 001@example.com 001@example.com
002@example.com 002@example.com 002@example.com
001@example.com 002@example.com 002@example.com
002@example.com 001@example.com 001@example.com
xxx@example.com 001@example.com 001@example.com
001@example.com xxx@example.com example.com
xxx@example.com xxx@example.com example.com

つまり、Return-Path ではなく From に対して SES の設定が適用されて、ドメインとメールアドレスで検証済の設定が競合するときはメールアドレスの方が優先される。

Return-Path ではなく From に基づいて MAIL FROM (つまり Return-Path)が書き換えられるのが意外。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?