Repository navigation
fix: send mail through a smarthost without login - #129
Merged
Merged
Conversation
Without SMTP credentials the template rendered smtp_user as "". Synapse requires authentication as soon as smtp_user is set, so every mail failed with "Server does not support Client Authentication schemes". smtp_user and smtp_pass are now null when no username is set.
A value holding ${KEY} of a later variable, for example in a password,
was expanded again and corrupted.
The directory search returned nothing in the CI update scenario, even after two minutes. Synapse fills the directory from a background update, which can run longer on the slow test VM. On failure the test now lists the pending updates.
stephdl
marked this pull request as ready for review
November 20, 2026 17:59
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.
Synapse could not send any mail when the cluster smarthost has no username, which is the default when it points to the mail server of the cluster. Every mail failed with
502 Server does not support Client Authentication schemes. NethServer/dev#7648The template rendered
smtp_user: ""when no username was set. Synapse turns on SMTP authentication as soon assmtp_useris defined, even when it is empty. I now rendersmtp_userandsmtp_passasnullwithout a username. With a username, both values stay quoted.${SOME_KEY}of a later variable was expanded again and corrupted.@,:,#, quotes and${...}, then restore it and wait for Synapse.How to test
homeserver.yamlkeeps the values unchanged.