Retry queued mail when SMTP becomes ready
Debian Trixie package bundle / packages (push) Successful in 24m6s

This commit is contained in:
Mario Fetka
2026-07-26 16:48:04 +02:00
parent 753971e45a
commit 43bc6d1e87
+6 -4
View File
@@ -609,11 +609,13 @@ AddPushAgent(QueueClient *client,
XplMutexUnlock(Queue.PushClients.lock);
/* Queue entries can reach the outgoing queue while the agents are still
* registering during startup. Wake the monitor as soon as the SMTP
* delivery agent is available instead of leaving those entries behind
* until the normal remote-delivery retry interval expires. */
* registering during startup. A normal monitor restart deliberately
* skips young outgoing entries to avoid a tight delivery retry loop, so
* merely waking it is not sufficient here. Treat a newly available SMTP
* agent like an explicit flush: retry persisted entries immediately once,
* after which failed deliveries return to the normal retry interval. */
if (queue == Q_OUTGOING) {
Queue.restartNeeded = TRUE;
Queue.flushNeeded = TRUE;
}
return 0;
}