Skip to content

[WEBSITE-723] Send founder emails through SES so Outlook stops showing "on behalf of" - #79

Merged
zackkatz merged 1 commit into
developfrom
feature/website-723-founder-sender-ses
Dec 4, 2026
Merged

zackkatz merged 1 commit into
developfrom
feature/website-723-founder-sender-ses

Conversation

@zackkatz

@zackkatz zackkatz commented Dec 4, 2026

Copy link
Copy Markdown
Member

The founder test email sent through Mailgun arrived with Sender: zack=gravitykit.com@mg.gravitykit.com. Mailgun adds that header whenever the From address is not on its sending domain, and Outlook shows it as "zack=gravitykit.com@mg.gravitykit.com on behalf of Zack Katz", so a personal follow-up looks automated. Founder emails now go through Amazon SES, which signs as gravitykit.com, bounces to ses.gravitykit.com, and adds no Sender: header. That was checked on a live hello@ email sent through SES on 2026-12-03, where SPF, DKIM and DMARC all passed.

For review: the only code change is the default of customcrm/founder_sender/connector, from mailgun to amazon (Gravity SMTP's name for SES). The From swap, the settings-write guard and the routing all follow that value.

Part of WEBSITE-723

What changed

  • FounderSender::connector() defaults to amazon. Founder emails are forced to SES with no backup retry, as they were to Mailgun. If SES refuses one, it fails rather than going out through Mailgun with the Sender: header.
  • The SES user ses-gravitykit-website (AWS account 019006345227, inline policy SesGravityKitWebsiteSendingPolicy) now allows ses:FromAddress hello@ and zack@gravitykit.com. This was changed in AWS on 2026-12-04, before this PR. aws iam simulate-principal-policy reports hello@ allowed, zack@ allowed, sales@ denied.
  • Gravity SMTP 2.3.3's SES connector reads From and Reply-To through the same get_from() / get_reply_to() as Mailgun and forwards custom headers such as List-Id the same way. Its settings live in the option gravitysmtp_amazon with the same from_email / force_from_email keys.
  • AGENTS.md: founder emails go through SES, why Mailgun was dropped, and that a new founder address must also be added to the SES user's IAM policy.

Blast radius

  • Touches: FounderSender::connector() and the default of the filter customcrm/founder_sender/connector (internal, added in [WEBSITE-723] Let chosen FluentCRM emails send From Zack's address instead of hello@ #77; not in the docs MCP).
  • Used by: none outside fluent-crm-custom-features (used-by.sh, 0 hits).
  • Customer code: none found (IntelliKit threads, 0 conversations).
  • Docs: none (IntelliKit website, 0 matches).
  • Risk: Contained. Only emails From an allowlisted founder address change connector; every other email keeps SES first and Mailgun as backup.

Release: none (internal gravitykit.com plugin; customers don't install it).

Tests

  • php84 vendor/bin/phpunit: 234 tests pass; FounderSenderTest also passes on PHP 7.4. Setting the default back to mailgun fails 4 tests.
  • After deploy: one FluentCRM email From zack@ to a test inbox, checking for no Sender: header, d=gravitykit.com, Reply-To and List-Id.

Abilities: none. Internal site plumbing with no user-facing setting or screen.

Mailgun adds `Sender: zack=gravitykit.com@mg.gravitykit.com` to every email whose From is not on its sending domain, and Outlook shows that as "on behalf of", so a personal follow-up looked automated. SES signs as gravitykit.com with the bounce domain ses.gravitykit.com and adds no Sender header (checked on a live hello@ email). The SES user's IAM policy now allows zack@gravitykit.com as well as hello@, so the founder connector defaults to `amazon`. The `customcrm/founder_sender/connector` filter can still pick Mailgun.

Part of WEBSITE-723.
@linear-code

linear-code Bot commented Dec 4, 2026

Copy link
Copy Markdown

WEBSITE-723

@coderabbitai

coderabbitai Bot commented Dec 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: d4fe52b5-0d75-458e-a97a-6ef35e2ba5aa

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@zackkatz
zackkatz merged commit 6569e20 into develop Dec 4, 2026
2 checks passed
@zackkatz
zackkatz deleted the feature/website-723-founder-sender-ses branch December 4, 2026 04:17
@zackkatz zackkatz mentioned this pull request Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant