Skip to content

Failover for SMTP #8607

Closed
Closed

Description

@link2xt

This is the issue for making Smtp::connect_configured() select the transport without configured_addr (#8572)
First step is to make it possible to switch the sending transport without losing the message queue, but i will keep it in this issue as well even if it is a separate PR.

Previous related PR: #8345

Activity

  1. self-assigned this
    on Aug 19, 2026
  2. r10s commented on Sep 15, 2026

    @r10s
    Contributor

    idea discussed internally yesterday (not saying, it should be exactly like that):

    • when a message needs to be sent, and there is no SMTP connection or we consider the SMTP connection too old, pick a random relay and try to SMTP connect to that
    • if that fails, try the next relay, and so on
    • connecting might be done kind of parallel, if first relay is not connected after one second try the next already
  3. link2xt commented on Sep 16, 2026

    @link2xt
    CollaboratorAuthor

    when a message needs to be sent, and there is no SMTP connection or we consider the SMTP connection too old, pick a random relay and try to SMTP connect to that
    if that fails, try the next relay, and so on

    Implemented this in #8705.

    connecting might be done kind of parallel, if first relay is not connected after one second try the next already

    We have this parallelization for hostnames/ports of a single transport already, and below that level also for IP addresses, so parallelizing transports as well might be too much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions