Re: [Exim] question about smtp-traffic

Pàgina inicial
Delete this message
Reply to this message
Autor: Yves Goergen
Data:  
A: Tor Slettnes
CC: Exim-users list
Assumpte: Re: [Exim] question about smtp-traffic
On 29.04.2004 22:41 (+0200), Tor Slettnes wrote:
> In the mainlog, look for something like:
>
> 2004-04-29 11:52:46 1BJGeJ-00083O-68 <= exim-users-admin@???
> H=exim-colo-01.whoc.theplanet.co.uk [195.92.249.251] P=esmtp S=3332
> id=40914EAB.1010208@???
> 2004-04-29 11:52:46 1BJGeJ-00083O-68 => tor <tor@???>
> R=cyrus_lmtp T=cyrus_lmtp
> 2004-04-29 11:52:46 1BJGeJ-00083O-68 Completed
>
> The size of that message was 3332 bytes ("S=3332"). It was delivered
> to me ("=> tor").


Hm, that's very uncomfortable to parse, when messages are spreaded
across multiple lines! I'd like to count mails from AND to a particular
user, identifyable by username (for local sending, via PHP e.g.) or any
of his domains (when sending via SMTP or receiving from someone else).
It would be fine if I could skip messages that are delivered locally, so
that don't go over the network. The log format seems not safely parsable
to me, I cannot find a clear syntax like with Apache. And I cannot find
mails that I sent to compare with them... Are mails that I send over my
mailserver not logged in the mainlog?

This is what I know by now about how to set the filter:
     {date} {time} {msgid} <= <> U={username} P=local S={size}
     {date} {time} {msgid} => {address} {...} T=remote_smtp {...}
     {date} {time} {msgid} Completed


--
Yves Goergen <nospam.list@???>

BlackBoard Internet Newsboard System --> blackboard.unclassified.de
Free (GPL), easy to use and install, secure, innovative! (PHP+MySQL)