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