Repository navigation
feat(platform): relay mail for Microsoft's consumer addresses through Brevo (#2645) - #2646
Closed
ExtraToast wants to merge 1 commit into
Closed
ExtraToast wants to merge 1 commit into
ExtraToast wants to merge 1 commit into
Conversation
Contributor
Changes
No production or test lines added. Coverage
Coverage falls below Patch coverage: this pull request changes no line that coverage measures. |
Contributor
Author
|
Not needed: Microsoft mitigated the S3150 block on 157.173.115.164, so mail to Outlook.com goes direct again. |
3 tasks
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.
Closes #2645
Outlook.com, Hotmail, Live and MSN refuse 157.173.115.164 with S3150. Until Microsoft lifts the block, mail for any domain whose MX ends in
.olc.protection.outlook.comgoes through Brevo's SMTP relay; every other domain keeps going direct. Matching on the MX instead of a domain list catches every country variant (hotmail.nl, live.be, outlook.de and so on).infra/stalwart/apply.sh:reconcile_relayadds a Relay route (smtp-relay.brevo.com:465, implicit TLS, certificates checked) and a routing rule whenrelay.loginandrelay.keyare insecret/platform/mail, then reloads settings. Without them it removes the rule and the route. It reloads only when the rule changes.platform/bootstrap/secrets.sh --only mail: asks for the Brevo SMTP login and key, checks them with an SMTP login at Brevo, and offers the Stalwart restart as for mailboxes.platform/bootstrap/mail.sh: a tenth stage says whether the relay is on and walks through authenticating esa-blueshell.nl in Brevo. Until Brevo has authenticated the domain, it signs as itself and ourp=rejectDMARC policy rejects the relayed mail, so the stage counts that as a failure while the relay is on.Tested on a throwaway Stalwart v0.16.27 with the sidecar image built from this branch
Caveat
Bounces for relayed mail land in Brevo, not in
bounce@, so the api does not see them while the relay is on.