Retry queued mail when SMTP becomes ready
Debian Trixie package bundle / packages (push) Successful in 24m6s
Debian Trixie package bundle / packages (push) Successful in 24m6s
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user