Re: [Exim] question about smtp-traffic

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Development - multi.art.studio
Datum:  
To: Yves Goergen
CC: exim-users
Betreff: Re: [Exim] question about smtp-traffic
Hi,

Yves Goergen wrote:

> On 29.04.2004 11:06 (+0100), Philip Hazel wrote:
>
>> 2. You can write a program/script that "tails" the log file. It is then
>> fully up-to-date.
>
> (...)
>
>> A separate process that "tails" the log file could provide this. As an
>> add-on, it means that the overhead would not be imposed on people who
>> don't want it. Furthermore, if it runs slowly, it won't hold up mail
>> delivery. But somebody will have to implement it...
>
>
> OK, sounds reasonable. But I didn't find information about the size of
> transferred mails in the logs at first sight. The logs seem to be kind
> of an unstructured debug output... Are there some criteria I can find
> interesting lines with?
>

i would suggest to use <== and S= as a filter and then parse the size
out of S=

2004-04-29 22:41:55 1BJILy-0004UD-QF <=
2_return_1048.1BJHui-0000Kw-Dj@??? U=exim P=scanned-ok
S=5631 id=20040429201339.GB1713@???

but this dont tell us the domain or user the mail is delivered to
but next line with this ID tells us:

2004-04-29 22:41:55 1BJILy-0004UD-QF => dev.null
<dev.null@???> R=virtual_known_local_useralias
T=virtual_alias_delivery

may be possible to do with tail, grep, sed or whatever
but sounds completely difficult to me to do so, because im not a perfect
;) and i think of grouping the entries and updating only one line for
domain or/and user
this may be done with dbm or whatelse, i never used before, this is only
an idea...

volker

> --
> 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/ ##
>
>