Olivier wrote:
> 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.
If only two mailboxes, can one presume also a limited number of
correspondents / servers in total?
If so, you may be able to solve the problem at the source.
Suspicion is that one end or the other is running out of time due to
large file size and other delays.
See if setting log_selector= +all turns up evidence.
You MAY then be able to get the specific subset of servers involved
adjusted to longer smtp timeouts.
Yo umight also want to try use of 'unseen' instead of shadow tranports,
at least for debugging. These don't break all at once, so even if
delivery is not perfect, you may have more visibility.
>
> 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