Re: Send Delay Warning only to postmaster

2021-08-26 Thread Matt Corallo
> On Aug 26, 2021, at 13:29, Viktor Dukhovni wrote: > > On Thu, Aug 26, 2021 at 01:16:25PM -0700, Matt Corallo wrote: > >> I’m not particularly worried about congestion on this server, but maybe >> delay is the wrong warning to focus on - I’d like postmaster notifications >> for some tempo

Re: Send Delay Warning only to postmaster

2021-08-26 Thread Viktor Dukhovni
On Thu, Aug 26, 2021 at 04:29:27PM -0400, Viktor Dukhovni wrote: > You can start with something like: > > $ postqueue -j | > jq --argjson now "$(date +%s)" ' > ($now - .arrival_time) as $delay | > select (.queue_name == "deferred" and $delay > 300) | >

Re: Send Delay Warning only to postmaster

2021-08-26 Thread Viktor Dukhovni
On Thu, Aug 26, 2021 at 01:16:25PM -0700, Matt Corallo wrote: > I’m not particularly worried about congestion on this server, but maybe delay > is the wrong warning to focus on - I’d like postmaster notifications for some > temporary bounces, as they can indicate IP reputation rate-limits, which

Re: Send Delay Warning only to postmaster

2021-08-26 Thread Matt Corallo
> On Aug 26, 2021, at 13:09, Viktor Dukhovni wrote: > >  >> On 26 Aug 2021, at 4:02 pm, Matt Corallo 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 t

Re: Send Delay Warning only to postmaster

2021-08-26 Thread Viktor Dukhovni
> On 26 Aug 2021, at 4:02 pm, Matt Corallo 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 t

Send Delay Warning only to postmaster

2021-08-26 Thread Matt Corallo
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.