[exim] How to pass data in exim4 log files from mail command

Etusivu
Poista viesti
Vastaa
Lähettäjä: Olivier
Päiväys:  
Vastaanottaja: exim-users
Aihe: [exim] How to pass data in exim4 log files from mail command
Hello,

Our application is sending all day long pdf files to 2 different mailboxes.
For an unknown reason, some sendings fail.
When reading log files, it's not that easy to me to tell which pdf file has
to be resent.

So I would like to pass data from mail command line to exim4 log file so
that I can easily track missed.

I'm thinking of :

when typing
mail foo@??? -Z token123

I could find in log files:
mainlog.1:2008-03-20 14:36:42 1JcKwk-0007YS-6E ** root@??? Z=token123
R=smarthost T=remote_smtp_smarthost: SMTP error from remote mail server
after RCPT TO:<root@???>: host smtp.fr.oleane.com [194.2.0.81]: 550
5.7.1 <root@???>... Relaying denied. IP name lookup failed [
162.160.182.141]


Here (
http://www.exim.org/exim-html-current/doc/html/spec_html/ch49.html#SECTwhelogwri),
I found :

A summary of the field identifiers that are used in log lines is shown in
the following table:
A           authenticator name (and optional id)
C           SMTP confirmation on delivery
            command list for "no mail in SMTP session"
CV          certificate verification status
D           duration of "no mail in SMTP session"
DN          distinguished name from peer certificate
DT          on => lines: time taken for a delivery
F           sender address (on delivery lines)
H           host name and IP address
I           local interface used
id          message id for incoming message
P           on <= lines: protocol used
            on => and ** lines: return path
QT          on => lines: time spent on queue so far
            on "Completed" lines: time spent on queue
R           on <= lines: reference for local bounce
            on =>  ** and == lines: router name
S           size of message
ST          shadow transport name
T           on <= lines: message subject (topic)
            on => ** and == lines: transport name
U           local user or RFC 1413 identity
X           TLS cipher suite



My question is:
which of those field could reliably be used to receive personal data from
mail command ?

Regards