Sendmail logging 'ntries' on final Delivery/Fail?
Hi All,
We're running Sendmail 8.13.8 - and I'm trying to get it to log the
'number of tries' {ntries} for when the message was finally delivered.
e.g. At the moment we have the following logged:
"
Sep 18 12:20:43 nullbox sendmail[36221]: k8IBKhT1036421:
to=someone@somedomain.com, ctladdr=root (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30006, relay=[192.168.23.2],
dsn=2.0.0, stat=Sent (k8IBKhFJ036242 Message accepted for delivery)
"
What I'm trying to do is either get the 'ntries' variable logged on
that line, or if not - near it.
I've written a rule that will log this - but I can't figure out which
ruleset to put it in, everything seems to go on 'before' the email is
delivered.
We have the log level set to 8 on this machine, so it doesn't litter
our logs with redelivery attempts - hence the need to log the number of
tries on the final / successful (or failed) delivery attempts.
Cheers,
Jon
|