AWS SES - Custom MAIL FROM and From addresses.

0

Hi everyone,

I've recently added a new AWS SES identity (domain) to use SMTP services for sending emails from our company's PBX server.

I've successfully validated my new entity, setting Easy DKIM and Custom MAIL FROM using a subdomain as required (EX. "subdomain.example.com"). I finally managed to use SMTP credentials to successfully send email messages as intended.

BUT, after reading this post (See: SFP" under "Why use my own MAIL FROM domain?"), my questions are:

  1. Can "From" address subdomain be different from "MAIL FROM" subdomain? EX. From: "pbx@example.com" and MAIL FROM: "something-from-aws-ses@subdomain.example.com"

  2. Why MAIL FROM address must be a subdomain? Can't I use "example.com" as my MAIL FROM domain?

I just want to send email messages from my "example.com" domain using SMTP. I also don't understand why I need a new SPF record on subdomain.example.com (I already have one for example.com SPF record I could have added AWS SES to). Fairly enough, DKIM records were set by AWS SES on example.com, which confuses me further.

1 Answer
3

Think of an email using a postal letter analogy. You write your letter and put it in an envelope and the post service delivers it. In SMTP, programs called Mail Transfer Agents (MTA) are the post service, and they transfer the messages. The messages have an envelope part and the "letter" itself, which consists of headers and the message body, just like a written letter has a date and inside address (the header) and the salutation, body, and closing (the body).

During the SMTP protocol negotiation between MTAs, the sending MTA communicates details of both the envelope and the letter. The "return address" is send using the MAIL FROM verb form, and the outside recipient address(es) are sent using the RCPT TO verb form. These addresses may or may not correspond to the addresses in the "letter" portion, which is transmitted using the DATA verb form. Sometimes copies of the "letter" are sent to multiple MTAs to be delivered to users local to those MTAs, so the RCPT TO addresses will only be for the local deliveries, but the "inside addresses" (the To: and CC:) headers, will list the entire distribution of the letter. BCCs are handled by addressing only via RCPT TO and not on a header To: or CC: line.

In SES, AWS uses the MAIL FROM address to handle "returned mail," also known as a bounce or non-delivery report. By segregating the Return-Path to a dedicated domain, SES can implement a custom incoming mail receiver to handle returned message notifications and then forward them to the original message submitter either via SMTP relay or via the feedback notification capability to a SNS topic.

answered 2 years ago
profile picture
EXPERT
reviewed 23 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions