Re: [exim] Special logging for successful deliveries

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Marc Sherman
Data:  
Para: exim-users
Asunto: Re: [exim] Special logging for successful deliveries
Chris Lear wrote:
>
> The filter file looks like this:
>
> #Exim filter
> if $h_x_application_flash:is not "" then
>     logfile /var/log/exim/special_log/log 640
>     logwrite $message_headers
> endif

>
> This writes the message headers into the special log file, then the
> message is delivered as usual. What they do with the log file is their
> problem.
>
> Here's the difficulty. Because this logging is done at routing time, an
> entry in the log doesn't actually mean that the mail has been delivered.
> Mail that gets queued and retried, for example, gets logged multiple
> times, but may never reach the recipient.


Try writing your log file in a format similar to that of the main exim
log, and then combining the two together by post-processing with exigrep.

- Marc