[exim] logging information

Top Page
Delete this message
Reply to this message
Author: Gray, Richard
Date:  
To: exim-users
Subject: [exim] logging information
Hi,

I've got a rather peculiar problem that I'm hoping you chaps might be
able to help me with. We are running exim 4.3 on freeBSD 4.10

Basically, I want to log info for each message that arrives. However, I
can't use the standard logging route because we export our syslogs for
processing within a different setup, and I can't change the format of
the log file.

My current idea is to use the appendfile transport together with an
unseen router to write the data out to a separate file by using the
message_prefix string expansion.

I have this transport so far (no guarantees for accuracy or validity)

logging_information:
driver = appendfile
file = /var/log/exim/CSVlog
message_prefix = "$tod_log,$message_id,\
    
$sender_host_address,$sender_host_name,$sender_helo_name,$sender_address
,$header_from,\
              $recipient(don't think this variable is
valid),$header_to,\

    
$header_subject,$header_X-Spam-Level,$size(doubt this one too)"
headers_only

Basically what I want to output is a CSV file that I can import into
various spreadsheet type programs for statistical analysis. Am I doing
crayzee things, or does this seem like a reasonable way to achieve what
I want to achieve?

TIA

Richard


---------------------------------------------------
This email from dns has been validated by dnsMSS Managed Email Security and is free from all known viruses.

For further information contact email-integrity@???