|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
In article <1158579176.848756.309010@i3g2000cwc.googlegroups. com> "JonB"
<jfretby@googlemail.com> writes: >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. As far as I can see the only way to achieve that would be to modify the C source (should be fairly trivial) - unless there is some config option that already does it that I've missed. As you have figured out, there's no way to do it from the rulesets - once delivery has completed successfully, there's nothing more for the rulesets to do - so they don't get called... --Per Hedeland per@hedeland.org |
|
![]() |
| Outils de la discussion | |
|
|