Re: [exim] Logging time taken for delivery

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: W B Hacker
Data:  
Para: exim users
Assunto: Re: [exim] Logging time taken for delivery
Customer Support wrote:
> I'm wanting to log the time taken for mail to arrive from the time the
> senders mail client to the time the mail arrives with us.
>
> Is the value $tod_full the time and date now, or the sent time?
> Does exim actually figure out the sent time in a variable anywhere?
>
> If exim doesn't do any of this I'm assuming expanding $message_headers
> and figuring the dates via a script is the only option?
>


Exim does it for you. Total time on-box and in-queue is logged. Eximstats will
also report the min/max/mean/average and by domain, routing type, between dates,
on a full log or an extract you might make from it.... whatever you ask of it.

EX:

2009-12-17 22:34:09 [58251] 1NLOui-000F9T-MZ => wbh <wbh@???>
F=<exim-users-bounces+conducive.org@???>
P=<exim-users-bounces+conducive.org@???> R=db_user T=db_delivery S=2784
QT=29s DT=0s

2009-12-17 22:34:09 [58251] 1NLOui-000F9T-MZ Completed QT=29s

Each router/transport is reported separately as to 'Queue Time (QT) and Delivery
time (DT). Sub one-second here as it is a local delivery.

Here is an over-the-net delivery:

2009-12-16 17:01:18 [40569] 1NKxFU-000AYI-EQ => cservice@???
<CService@???> F=<wbh@???> P=<wbh@???>
R=dnslookup T=remote_smtp S=2053 H=mail.loudounwater.org [206.113.130.54]:25
C="250 Ok: queued as 42ADA1C9EC1" QT=2s DT=2s

2009-12-16 17:01:18 [40569] 1NKxFU-000AYI-EQ Completed QT=2s


You can adjsut the log detail you want/do not want with selective + and -.

The above was prooduced with:

log_selector = +all -all_parents -queue_run -arguments

Season to suit your taste...


Bill Hacker