Re: [Exim] Howdy

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Phil Pennock
日付:  
To: tom bell
CC: 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.