feat: switch email provider from Brevo to Amazon SES#6758
Open
feat: switch email provider from Brevo to Amazon SES#6758
Conversation
Replace symfony/brevo-mailer with symfony/amazon-mailer to support 1,000+ daily registrations (Brevo free tier capped at 300 emails/day). Raise EmailBudgetManager daily limit from 300 to 5,000 with proportional type reserves. Remove local DKIM signing code since SES handles DKIM natively via DNS. Remove .dkim/private.key from deploy shared files. Closes #6719 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace hardcoded 300 with EmailBudgetManager::DAILY_LIMIT so the test adapts to budget limit changes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace hardcoded 150/140 with EmailBudgetManager::TYPE_RESERVES so the test adapts when reserve values change (was breaking after SES migration raised verification reserve from 150 to 2500). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
a5d55ad to
37929c2
Compare
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.
Summary
Closes #6719
symfony/brevo-mailerwithsymfony/amazon-mailer— supportsses+smtp://transport DSNEmailBudgetManager::DAILY_LIMITfrom 300 → 5,000 with proportional type reserves (verification: 2500, reset: 500, consent: 500, admin: 750, management: 750)MailerAdapter— SES handles DKIM natively via DNS CNAME recordsdkim.private.keyparameter fromconfig/services.phpand.dkim/private.keyfromdeploy.phpshared filesBefore deploying (manual steps)
catrob.atdomain, request production accessMAILER_DSN=ses+smtp://ACCESS_KEY:SECRET_KEY@default?region=eu-central-1in.env.prod.localTest plan
bin/phpunit --filter EmailBudgetManagerTest— all 12 tests pass with updated limits🤖 Generated with Claude Code