Re: [Exim] question about smtp-traffic

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Development - multi.art.studio
Date:  
À: Development - multi.art.studio
CC: Yves Goergen, exim-users
Sujet: Re: [Exim] question about smtp-traffic
This is a multi-part message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
Development - multi.art.studio wrote:

>
> another idea:
> is there a way to do this by generating an additional custom logfile
> like apache does?
> i think this would be the *most effective solution* to have custom
> logfiles.....can this be done easily? are rules exist to do that?
>

yes it is - taken from exim doc:
_________________________


    45.16. Message log
    <http://www.exim.org/exim-html-4.30/doc/html/spec_toc.html#TOC373>


In addition to the general log files, Exim writes a log file for each
message that it handles. The names of these per-message logs are the
message ids, and they are kept in the /msglog/ sub-directory of the
spool directory. Each message log contains copies of the log lines that
apply to the message. This makes it easier to inspect the status of an
individual message without having to search the main log. A message log
is deleted when processing of the message is complete, unless
preserve_message_logs is set, but this should be used only with great
care because they can fill up your disk very quickly.

________________________

maybe parsing this generated logfiles for each message would be easier,
remember filename and only scan files which are not known, parse it,
after doing this, throw away logs older than a few days or hours...

there is also a logwrite command i guess we can use in a filter

system_filter = /home/Exim/exim.trafficlog.filter
system_filter_user = exim

and exim.trafficlog.filter could look like this

# Exim filter
logfile /home/LOGS/Exim/exim-traffic.log 0644
logwrite "$tod_log ID=$message_id L=$local_part OL=$original_local_part T=$h_to F=$h_from S=$message_size B=$message_body_size FR=$reply_address"

i didnt test it yet

does lookups work in exim filter? so we can add an if statement to
lookup which accounts to log ;) ???

thanks for reading

> greetings
> volker
>
> ---pizzaware for all!---
> www.erdtrabant.de
>
>> --
>> Yves Goergen <nospam.list@???>
>>
>> BlackBoard Internet Newsboard System --> blackboard.unclassified.de
>> Free (GPL), easy to use and install, secure, innovative! (PHP+MySQL)
>>
>> --
>>
>> ## List details at http://www.exim.org/mailman/listinfo/exim-users
>> Exim details at http://www.exim.org/ ##
>>
>>
>
>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users
> Exim details at http://www.exim.org/ ##
>
>


--