> On 26 Aug 2021, at 4:02 pm, Matt Corallo <ps...@mattcorallo.com> wrote:
> 
> I’d like to set an aggressive warning delay but only warn postmaster, not the 
> sender. It appears delay_warning_time is used for both sender-warnings and 
> notify_classes, so there doesn’t appear to be a way to do this.

The delay_warning to the sender is per-message, and the last thing you'd
want as postmaster is to have your mailbox flooded with delay warnings
on every queue hiccup, possibly exacerbating the congestion.

If you want to track delivery latency, use the logs to trigger a consolidated
alert when enough messages are delayed.  You can use "postqueue -j", or "qshape"
or a smoothed average from the "delays=" logging...

FWIW, I always disable *all* postmaster notifications.

-- 
        Viktor.

Reply via email to