mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-23 15:37:01 +00:00
Currently, we pick the first host in the MX list, and attempt delivery there. If it fails, we just report the failure to the queue, which will wait for some time and then try again. This is not ideal: we should fall back to the other MXs in the list, as the first host could be having issues for a long time, and not attempting with the rest just delays delivery. This patch implements the fallback, so we try all MXs before deciding to report a failed delivery (unless, of course, an MX returned a permanent failure).