Re: [Exim] Howdy

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Phil Pennock
Ημερομηνία:  
Προς: tom bell
Υ/ο: Exim Mailing List (E-mail)
Αντικείμενο: Re: [Exim] Howdy
On 2001-11-16 at 19:06 +1000, tom bell wrote:
> I would like to log every email that is processed
> by the system including the size of each email
> preferably into a mysql database for billing
> purposes. I only want the from, to and size of
> each message logged.
>
> Any help or tips on this would be awesome.


Write a Perl script which, each days, goes over mainlog.01 to process
the previous day's data.

The format of the logs is pretty simple even just when looking at it,
but is also documented in the Specification (doc/spec.txt or online as
HTML from <http://www.exim.org/>).

If you match up the incoming <= log-lines with the outgoing ones where
the mail is sent out => with a Router R=your_router (easy to match
thanks to the message-id) then you shouldn't have any problems.
--
Ignorance is only a sign of idiocy the second time around.