(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



save log all mail messages


What is this stuff?

If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):



From - Mon Sep 18 15:52:16 2000
Path: news.randori.com!newsfeeder.randori.com!feed2.onemain.com!feed1.onemain.com!newsfeed.mesh.ad.jp!sjc-peer.news.verio.net!news.verio.net!iad-read.news.verio.net.POSTED!nosuchsite!bill
Newsgroups: comp.unix.sco.misc
From: bill@wjv.com (Bill Vermillion)
Subject: Re: How to save ALL inbound and outbound mail
Reply-To: bv@wjv.com
Organization: W.J.Vermillion - Orlando / Winter Park
Message-ID: <G13CzH.10Au@wjv.com> 
References: <CDqw5.196$b64.28124@news1.primary.net> <39C28972.6EC08990@aplawrence.com> 
Lines: 42
Date: Mon, 18 Sep 2000 16:40:29 GMT
NNTP-Posting-Host: 157.238.210.197
X-Complaints-To: abuse@verio.net
X-Trace: iad-read.news.verio.net 969297840 157.238.210.197 (Mon, 18 Sep 2000 17:24:00 GMT)
NNTP-Posting-Date: Mon, 18 Sep 2000 17:24:00 GMT
Xref: news.randori.com comp.unix.sco.misc:65960
X-Mozilla-Status: 8010
X-Mozilla-Status2: 00000000

In article <39C28972.6EC08990@aplawrence.com>,
Tony Lawrence  <tony@aplawrence.com> wrote:
>Fabio Giannotti wrote:

>> Hello all,



>> Running 5.0.5 with sendmail 8.8.8.

>> Does anyone know how to do sendmail.cf "magic" to allow the
>> server to keep a copy of all inbound and outbound mail?

>> (Client needs this for legal CYA reasons...)

>When you start the daemon, add "-X
>/var//log/monster_maill_log".  You'll need to stop sendmail
>fairly often to compress and rotate those logs; they will
>get monstrous.. I do this at several client sites probably
>for the same reasons your client wants to do it- we keep a
>few days on the server and the rest can be had from tape if
>ever needed..

Thanks for that pointer Tony.  So many programs - so many flags.

I just tried it and I saw why it gets 'monstrous'.  It logs the file
incoming and delivery too. That's all the handshake headers and 2
copies of the message. I just sent a 1 line email message
- plain text - 43 characters long.  The log file is 3512.
Monstrous is almost an understatement.



Looking at it I had a small thought.  Besides compressing and
rotating the logs, you could pre-process them by doing something as
grep "<<<" <logfile.name> > incoming.messages and 
grep ">>>" <logfile.name> > outgoing.messages, of course
using part of the date command to give you dated message files.
That would make things a trifle bit more manageable.

Thanks for expanding my knowledge base.

Bill

-- 
Bill Vermillion -   bv @ wjv . com




Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



/Bofcusm/563.html copyright 1997-2004 (various authors) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.



More:
       - OSR5
       - Bofcusm


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress