[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Handling Email Output
From: |
Tod Oace |
Subject: |
Re: Handling Email Output |
Date: |
Wed, 26 Jan 2005 13:32:45 -0800 |
On Jan 26, 2005, at 12:35, Brian E. Seppanen wrote:
Has anyone come up with a clever way to take the email and archive it,
so that it can be retained for a time and then rotated out after a
certain period of time.
I'm sure I can craft something using procmail, and logrotate but
wondering if others had suggestions or interesting ways they've
handled the issue.
I use procmail:
:0c
/var/spool/rootmail/`date +%Y-%m-%d`
and cfengine:
tidy:
# Clean out old archived root mail:
machine_with_the_archive::
/var/spool/rootmail
include=*
recurse=1
age=180
ifelapsed=1440 # daily
--
Tod Oace, Intel Corporation <tod@intel.com>