compress/tar archive mail dirs

Julian Field mailscanner at
Fri Nov 21 14:34:25 GMT 2003

Take a look at the clean.quarantine cron job that comes with the Linux
versions of MailScanner. That deletes quarantines/archives that are over a
certain age, but it would be pretty easy to make it tar and compress them
instead of delete them. Then just reduce the "1 month" to "2 days".

At 14:22 21/11/2003, you wrote:
>Hi all
>anyone got a handy script that will find previous days archive email
>dirs and compress/tar them up and delete the directory afterwards?
>Could write something myself, but not wanting to re-invent the wheel...
>alternatively could this be an option in the Archive Mail config so when
>it rolls over to the next dir, it tgz-ed (or whatever) yesterdays
>archive directory??
>Martin Hepworth
>Snr Systems Administrator
>Solid State Logic
>Tel: +44 (0)1865 842300
>This email and any files transmitted with it are confidential and
>intended solely for the use of the individual or entity to whom they
>are addressed. If you have received this email in error please notify
>the system manager.
>This footnote confirms that this email message has been swept
>for the presence of computer viruses and is believed to be clean.

Julian Field
MailScanner thanks transtec Computers for their support

PGP footprint: EE81 D763 3DB0 0BFD E1DC  7222 11F6 5947 1415 B654

More information about the MailScanner mailing list