On Wed, 11 Mar 2020 at 11:15, Wietse Venema <wie...@porcupine.org> wrote:

> Dominic Raferd:
> > On Wed, 11 Mar 2020 at 11:06, Wietse Venema <wie...@porcupine.org>
> wrote:
> >
> > > Dominic Raferd:
> > > > Using postfix 3.3.0 I recently set, in main.cf, 'delay_warning_time
> =
> > > 15m'.
> > > > Now when an outgoing message is delayed I see these in the log:
> > > >
> > > > ... postfix/bounce[12303]: warning: [built-in]: zero result in delay
> > > > template conversion of parameter "delay_warning_time_hours"
> > > > ... postfix/bounce[12303]: warning: please reduce time unit "hours"
> of
> > > > "delay_warning_time_hours" in delay template
> > > > ... postfix/bounce[12303]: warning: for instructions see the
> bounce(5)
> > > > manual
> > > >
> > > > Strangely (to me), these messages appear 20 minutes (not 15 minutes)
> > > after
> > > > the original message was delayed.
> > > >
> > > > I am not using any special delay template:
> > > > # postconf bounce_template_file
> > > > bounce_template_file =
> > > >
> > > > I have looked at man 5 bounce. Does the built-in template use an
> > > > undocumented parameter 'delay_warning_time_hours'?
> > >
> > > use 'delay_warning_time_minutes'
> > >
> > >         Wietse
> > >
> >
> > Thanks but where do I use this? I never used delay_warning_time_hours
> > anywhere! I only set 'delay_warning_time = 15m' in main.cf.
> >
> > If I need to create a bespoke bounce template file (because
> > delay_warning_time_hours is used in the built-in default template), where
> > can I see the built-in default template so that I can work from it?
>
> man 5 bounce
>
>        delay_warning_time_suffix
>               Expands into the  value  of  the  delay_warning_time
> parameter,
>               expressed  in the time unit specified by suffix, which is
> one of
>               seconds, minutes, hours, days, or weeks.
>
> man 1 postconf
>
>        -t [template_file]
>               Display  the templates for text that appears at the
> beginning of
>               delivery status notification (DSN) messages,  without
> expanding
>               $name expressions.
>
> man 5 bounce
>
> GENERAL PROCEDURE
>        To create a customized bounce template file, create a temporary
> copy of
>        the file /etc/postfix/bounce.cf.default and edit the temporary file.
>
> And so on.
>
>         Wietse
>
> postconf -t
>

Thanks again. I add to main.cf:
# match text in delay message to the setting delay_warning_time = 15m
delay_warning_time_hours = 0.25

but then:
# postfix reload
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter:
delay_warning_time_hours=0.25

.. yet this parameter is used in the default bounce template as shown by
postconf -t.

(Still I am not using a bespoke bounce template file, maybe I have to, even
if it is identical to the default, to make this warning message go away?)

Reply via email to