RE: [Exim] Re: SMTP Logging

Góra strony
Delete this message
Reply to this message
Autor: Lonnie Santella
Data:  
Dla: exim-users
Temat: RE: [Exim] Re: SMTP Logging
Thanks Steve, for your insight and tips. I think you're on the same track as
me - it's just that I'm a little new to the area of configuring the pipe
script which facilitates the recording of the message body. That's a new
area for me.

Ultimately, my interest is in the message bodies of incoming email, and
subsequent outgoing correspondance - not so much the original outgoing
campaign. The original message template, which contains the info we need to
track, is composed striaght from the database server, so it's automatically
committed to the database.

After several thousand messages go out, several thousand responses come in -
those message bodies need to be recorded (like in a database) in such a way
that it can easily be manipulated, analyzed, reported, etc. Same goes for
the correspondance that is sent from our internal nurses to the patients -
that outgoing email contains unique mesage bodies that need similar
recording.

I had a hunch that one area to explore might be to find a means to script a
pipe of the message (including body) to a MYSQL database. Great in theory,
but not sure how to go about doing this, or even if it's an efficient
practice given my goal. The first problem that I run into is the fact that
all logging utilities thus far (i.e. syslogd, Exim's proprietary logging,
etc) can record just about everything EXCEPT the message body. If I could
just get past that first hurdle, I'd be willing to take a swing at exporting
that to a database.

The scope of my goal here is relatively small - I just want an efficient
means of recording message bodies - hopefully to a database. That's goal #1.
I know this is done around the world, because I've had occasion when dealing
with different support organizations that when I reference an email (with a
S/N in the subject line) they can quickly produce the email and review it.
Compaq and Cisco have both done this - and at times the email they retrieve
could be as much as a year old.

Is it possible that someone at Compaq & Cisco has been inputting email data
into a database by some less automated process? Sure - all sorts of things
are possible. But the larger the environment, and the larger the volume of
email that you're dealing with, the more clear it becomes that there is a
need for a fully automated process of storing email data (including message
body) for long term, in a manner that lends iteself to being querried.

That's what I need. Thanks again for the help I have received. I appreciate
it.

Lonnie


>From: Steven Ericsson Zenith <steven@???>
>To: exim-users@???
>Subject: [Exim] Re: SMTP Logging
>Date: Sun, 13 Jun 2004 14:54:49 -0700
>Received: from exim-colo-01.whoc.theplanet.co.uk ([195.92.249.251]) by
>mc4-f6.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Sun, 13 Jun 2004
>14:58:52 -0700
>Received: from localhost ([127.0.0.1]:58674 helo=localhost.localdomain)by
>exim-colo-01.whoc.theplanet.co.uk with esmtp (Exim 4.34)id
>1BZczx-0006sg-IG; Sun, 13 Jun 2004 22:58:41 +0100
>Received: from adsl-67-116-8-242.dsl.snfc21.pacbell.net
>([67.116.8.242]:37964 helo=memeiosys.com)by
>exim-colo-01.whoc.theplanet.co.uk with esmtp (Exim 4.34)id
>1BZcww-0006M3-Eifor exim-users@???; Sun, 13 Jun 2004 22:55:34 +0100
>Received: from memeiosys.com (localhost.localdomain [127.0.0.1])by
>memeiosys.com (8.12.8/8.12.8) with ESMTP id i5DLsoXa006104for
><exim-users@???>; Sun, 13 Jun 2004 14:54:50 -0700
>Received: (from steven@localhost)by memeiosys.com (8.12.8/8.12.8/Submit) id
>i5DLsn4S006100;Sun, 13 Jun 2004 14:54:49 -0700
>X-Message-Info: JGTYoYF78jFWnQUroOEZw/9xPZ94BGKP
>Message-Id: <200406132154.i5DLsn4S006100@???>
>Errors-To: exim-users-admin@???
>X-BeenThere: exim-users@???
>X-Mailman-Version: 2.0.13
>Precedence: bulk
>List-Help: <mailto:exim-users-request@exim.org?subject=help>
>List-Post: <mailto:exim-users@exim.org>
>List-Subscribe:
><http://www.exim.org/mailman/listinfo/exim-users>,<mailto:exim-users-request@exim.org?subject=subscribe>
>List-Id: A user list for the exim MTA <exim-users.exim.org>
>List-Unsubscribe:
><http://www.exim.org/mailman/listinfo/exim-users>,<mailto:exim-users-request@exim.org?subject=unsubscribe>
>List-Archive: <http://www.exim.org/pipermail/exim-users/>
>Return-Path: exim-users-admin@???
>X-OriginalArrivalTime: 13 Jun 2004 21:58:53.0092 (UTC)
>FILETIME=[9DB09640:01C45191]
>
>
>Lonnie Santella wrote:
> > What I'm asking for is a good approach to storing and recording message
> > bodies so they can be retrieved based on intelligent, structured
>searches. I
> > had always believed that database storage of emails was the best method
>for
> > this, but if there's a better way, I'm all ears.
>
>Your intuitions are right in my view - though, if the data is unstructured
>and
>does not need stat reports then you might consider a search engine approach
>as
>suggested. But, from what you say, it sounds like you have report and
>tracking
>requirements that would not be met by this approach.
>
>For the volume you have suggested a pipe transport through a script that
>does the decomposition and database storage may suit you - or you might
>consider sending the email to BSMTP files and processing those files
>periodically to populate your database - for example, you could do this
>once per day offline.
>
>Sincerely,
>Steven
>
>--
>Dr. Steven Ericsson Zenith
>
>--
>
>## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
>details at http://www.exim.org/ ##
>