Repository navigation
[WEBSITE-723] Send founder emails through SES so Outlook stops showing "on behalf of" - #79
Merged
Merged
Conversation
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.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 asgravitykit.com, bounces toses.gravitykit.com, and adds noSender: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, frommailguntoamazon(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 toamazon. 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 theSender:header.ses-gravitykit-website(AWS account 019006345227, inline policySesGravityKitWebsiteSendingPolicy) now allowsses:FromAddresshello@ and zack@gravitykit.com. This was changed in AWS on 2026-12-04, before this PR.aws iam simulate-principal-policyreports hello@ allowed, zack@ allowed, sales@ denied.get_from()/get_reply_to()as Mailgun and forwards custom headers such asList-Idthe same way. Its settings live in the optiongravitysmtp_amazonwith the samefrom_email/force_from_emailkeys.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
FounderSender::connector()and the default of the filtercustomcrm/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.sh, 0 hits).Release: none (internal gravitykit.com plugin; customers don't install it).
Tests
php84 vendor/bin/phpunit: 234 tests pass;FounderSenderTestalso passes on PHP 7.4. Setting the default back tomailgunfails 4 tests.Sender:header,d=gravitykit.com, Reply-To andList-Id.Abilities: none. Internal site plumbing with no user-facing setting or screen.