98339[FEATURE] Restrict the recipients of emails
Commit message
Development and staging installations often hold production data, so emails sent while testing can reach real people. The new MAIL setting allowedRecipients delivers emails to listed addresses and domains only and logs every skipped recipient. Only the envelope is reduced, so the message still shows all original recipients. The restriction applies to every mail profile and to spooled emails when they are flushed.
Resolves: #111723 Releases: main Change-Id: I5d53f2829a5792f6958bb24e63a06fac96015a34
Test this change
Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch
- Check out patch set 1
-
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/39/98339/1 && git checkout FETCH_HEAD
- Cherry-pick onto main
-
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/39/98339/1 && git cherry-pick FETCH_HEAD
Review
-
Code review CR 0 Needs a vote
-
Verified V 0 Needs a vote
- core-ci +1 CI
Merge conflicts 25
- 98322[TASK] Accept preview tokens in the frontend
- 97235[BUGFIX] Preview hidden pages across site domains
- 96543[WIP][POC][TASK] Write and read records by the same rules and rights
- 97533[FEATURE] Use symfony/lock for locking
- 84603[TASK] Change typoscript from code to a data cache
- 95488[BUGFIX] Warn about endtime before starttime
- 95125[FEATURE] Support non-PHP cache backends for the site settings cache
- 95027[FEATURE] Allow a mail profile per site
- 97304[WIP][BUGFIX] Render the record form from unsaved values
- 97556[FEATURE] Store remote media preview images as processed files
- 97554[FEATURE] Introduce remote media providers
- 84995[FEATURE] Allow assigning users to groups in group editor
- 93628[WIP][TASK] Make GD the baseline image processor
- 95753[TASK] Cache resolved page routes
- 95172[FEATURE] Add EU AI content labelling to file metadata
- 95343[FEATURE] Add `adminOnly` for TCA columns
- 94207[FEATURE] Explicit access declaration for backend routes
- 91423[WIP][TASK] Move config values to both section columns and config
- 70840[WIP][FEATURE] Add possibility to add HTTP headers in frontend
- 80554[TASK] Prefer CSP hash values over nonce values
- 90107[FEATURE] Introduce database-only storage for OnlineMedia files
- 91404[!!!][TASK] Remove re-login password popup functionality
- 91411[WIP][FEATURE] Add support for HEIC and HEIF image formats
- 85574[WIP][FEATURE] Language-aware slugs and slug normalizer API
- 79622[WIP][FEATURE] Introduce video and audio file lists
Show 20 more changes Show less
Issues 1
Files 9
- typo3/sysext/core/Classes/Mail/AllowedRecipientsTransport.phpnew+85 −0
- typo3/sysext/core/Classes/Mail/MailProfileResolver.php+2 −0
- typo3/sysext/core/Classes/Mail/TransportFactory.php+16 −1
- typo3/sysext/core/Configuration/DefaultConfiguration.php+1 −0
- typo3/sysext/core/Configuration/DefaultConfigurationDescription.yaml+3 −0
- typo3/sysext/core/Documentation/Changelog/15.0/Feature-111723-RestrictTheRecipientsOfEmails.rstnew+70 −0
- typo3/sysext/core/Tests/Unit/Mail/Fixtures/RecordingTransportFixture.php+6 −0
- typo3/sysext/core/Tests/Unit/Mail/MailProfileResolverTest.php+11 −0
- typo3/sysext/core/Tests/Unit/Mail/TransportFactoryTest.php+86 −0
Review log 13
-
Josua Vogel uploaded patch set 1 12/04/26, 14:39
-
core-ci voted on patch set 1 V -1 12/04/26, 14:51 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/116346
-
core-ci voted on patch set 1 V +1 12/04/26, 15:52 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/116346