2

Is it possible to remove the mailed by: us-west-2.amazonses.com field in an email or replace it with mailed by: example.com? Amazon forums, this site, and google searches are very unclear. I am using Amazon SES to send the email. The via portion of the email is already removed, as I have a TXT record and DKIM enabled on the domain to prove ownership.

I understand that Amazon SES is the endpoint and is sending this email, but I'd like to know how to not advertise the fact.

I've also enabled SPF records on my domain, which I believe is just accomplishing the same feat twice if I'm using DKIM (I need verification if this is correct), but it still is labeling itself as mailed by amazonses.com. I've asked this question on Amazon SES Developer Forums and all google searches within the last year come back to this question or sites that have copied it. Is there a better place to ask this question?

sysadmin1138
  • 131,083
  • 18
  • 173
  • 296
user247445
  • 21
  • 1
  • 3

2 Answers2

2

You can replace mailed-by: us-west-2.amazonses.com with mailed by: sub.example.com but not with mailed-by: example.com.

In other words, unnaked domain (with subdomain) like sub.example.com is possible but naked domain like example.com is impossible to replace with us-west-2.amazonses.com for mailed-by.

To replace us-west-2.amazonses.com with sub.example.com for mailed-by, you must create a custom MAIL FROM domain.

The below is how you create the custom MAIL FROM domain sub.example.com.

Click on the domain example.com.

enter image description here


Then, the detail is shown.

enter image description here


Then, click on MAIL FROM Domain to show Set MAIL FROM Domain button.

enter image description here


Then, clicking on Set MAIL FROM Domain button, the window is open.

enter image description here


Then, put the subdomain "sub" to the field and click on Set MAIL FROM Domain button.

enter image description here


Then, the MX Record and SPF Record are shown. You must add the MX Record and SPF Record to Route 53 in addition to the records of the domain example.com to verify the custom MAIL FROM domain sub.example.com.

enter image description here


Finally, check if the custom MAIL FROM domain sub.example.com is verified under MAIL FROM domain section.

enter image description here


If MAIL FROM domain status is still pending verification, click on retry in blue.

enter image description here


Then, it will be verified.

enter image description here


After the custom MAIL FROM domain is verified, mailed-by is sub.example.com whether or not you send emails using example.com or sub.example.com and whether or not your account is in the sandbox.

Kai - Kazuya Ito
  • 193
  • 1
  • 2
  • 10
1

The mailed-by header is the usually used to persist the content of the envelope from or MAIL FROM through forwarding. Amazon do not allow the MAIL FROM to be customised. The following quote is from an Amazon employee in a comment on an blog post about SPF & DKIM:

The headers you mentioned [mailed-by] seem to be something appended by an ISP after the message left Amazon SES, rather than standard message headers. We unfortunately do not have control over receiver add-ons.

Nevertheless, assuming that the “mailed-by” value is based on the MAIL-FROM, the answer would be that right now all emails sent through Amazon SES have amazonses.com (or a subdomain of that) as the MAIL-FROM domain. We don't currently support its customization

Posted by Adrian@AWS on November 4, 2014 8:31:29 AM PST

Blates
  • 150
  • 6