Repository navigation
[BUGFIX] Deliver mail with UTF-8 in its headers to relay hosts without SMTPUTF8 - #629
Merged
Merged
Conversation
…t SMTPUTF8 Postfix flags a message from sendmail with UTF-8 in its headers, e.g. in the subject, as SMTPUTF8, and bounces it with "SMTPUTF8 is required, but was not offered by host" when the relay host does not offer SMTPUTF8, as many mail catchers do not. The start script of Postfix now sets smtputf8_enable = no, so such a message is delivered as 8BITMIME.
|
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
Postfix flags a message from
sendmailwith UTF-8 in its headers, for example in the subject, as SMTPUTF8, and bounces it when the relay host does not offer SMTPUTF8, as many mail catchers do not. The start script of Postfix now setssmtputf8_enable = no, so such a message is delivered as 8BITMIME.Related issue: #289 (Postfix SMTPUTF8 should be off by default), closed, but it still applies to the published images.
Changes
provisioning/base/general/bin/service.d/postfix.d/10-init.sh:smtputf8_enable = noinmain.cf;make generate.testMailWithUtf8InTheSubjectReachesTheRelayHostinPostfixChecks:mail()withGrüßein the subject reaches the SMTP sink of the tests, which does not offer SMTPUTF8.docs/images/php.md, section Mail: Postfix does not use SMTPUTF8.How it was verified
php-dev:8.5-alpinewithPOSTFIX_RELAYHOST=[127.0.0.1]:2525and the SMTP sink of the image tests (ci/image-tests/Fixtures/opt/image-tests/smtp-sink.php),mail()with the subjectImage test with UTF-8: Grüße:10-init.shpostconf smtputf8_enable${{$compatibility_level} <level {1} ? {no} : {yes}}nodsn=5.6.7, status=bounced (message requires SMTPUTF8, but no server was found …)dsn=2.0.0, status=sent (250 stored)"With the new
10-init.sh" is the published image with the script of this pull request mounted over/opt/docker/bin/service.d/postfix.d/10-init.sh.Rebased on master with #627;
ci/console generatechanges nothing. The CI run of this pull request runs the new test in the development images (Postfix runs there), Debian and Alpine, amd64 and arm64.Not verified: a relay host that offers SMTPUTF8 together with UTF-8 addresses.