大网数据广告活动
服务器运维问答

How to replace "via amazonses.com" with my apps branding "via example.com" for the email identities in AWS SES?

· 52CE 我爱测

So in SES - there are two ways to verify identities as I can see: Email identities Domain identities With domain identiies - it is easier to fix the "signed-by" and "mailed-by" headers in the outgoing mails. If the DKIM/SPF DNS r…

问题原文

原帖链接 · Rohan · CC BY-SA 4.0

So in SES - there are two ways to verify identities as I can see:

  1. Email identities
  2. Domain identities

With domain identiies - it is easier to fix the "signed-by" and "mailed-by" headers in the outgoing mails. If the DKIM/SPF DNS records are set properly - it works well.

But with email identities - AWS SES adds something like "via amazonses.com". Now I am looking to fix this with my app's branding instead. So that when my clients only want to verify email identities and not whole domains - they can send emails via my app (and behind the scenes via SES) but when the emails go out - instead of saying "via amazonses.com", it should put my apps brancing like "via example.com" instead for the email identities.

How can I achieve this? :)

EDIT:

  1. Someone verifies an email identity - [email omitted] - I want it to say "via mydomain.com" instead of "via amazonses.com"
  2. Someone verifies clientdomain.com - I want it to say "signed-by: clientdomain.com" and the "via...." will be removed

Number 2 is simple and I can achieve that with EasyDKIM in SES but I am having trouble figuring out how to achieve number 1

已采纳解答

原帖链接 · Rohan · CC BY-SA 4.0

To achieve this successfully - we had to verify the main domain which we wanted to sign with in case of email identities. Example mydomain.com is the domain, we verified that domian including setting the MAIL FROM domain in it.

Then, we went ahead and verified the single email identity we wanted to send and sign it with mydomain.com. I used my personal email but for this example we will use [email omitted].

Finally we had to tweak the FROM header like so in PHP before hitting the AWS PHP SDK for SES and call the sendRawEmail method

$message->setFrom('[email omitted] via mydomain.xyz <[email omitted]>');

Final solution was that Gmail said from header was:

from:   [email omitted] via mydomain.xyz <[email omitted]>

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2022-04-06)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。