mailfrom

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package mailfrom defines the custom MAIL FROM subdomain convention shared by sender-identity provisioning (which configures it in SES and emits its DNS records) and the outbound sender (which uses it as the aligned Return-Path).

One source of truth so three things always agree: what e2a tells SES the MAIL FROM domain is, the MX/SPF records e2a asks the customer to publish, and the envelope sender the relay actually uses. When a domain is sending-verified the Return-Path becomes `bounces@bounce.<domain>` — aligned to the From org-domain — so SPF aligns and the "via e2a" / "mailed-by" label disappears.

Index

Constants

View Source
const Label = "bounce"

Label is the subdomain prefix for the custom MAIL FROM domain. A fixed convention for v1 (a per-deployment config knob is a trivial future addition — thread one string to NewSender + the SES provider).

Variables

This section is empty.

Functions

func Domain

func Domain(domain string) string

Domain returns the custom MAIL FROM domain for a sending domain, e.g. Domain("acme.com") == "bounce.acme.com".

func EnvelopeSender

func EnvelopeSender(domain string) string

EnvelopeSender returns the SMTP MAIL FROM (Return-Path) address used for a verified domain's outbound mail, e.g. "bounces@bounce.acme.com". The local part is arbitrary for SES (bounces route via the subdomain's MX to SES's feedback handler); `bounces` is conventional and human-legible.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL