From owner-freebsd-isp Tue Oct 27 17:02:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA25829 for freebsd-isp-outgoing; Tue, 27 Oct 1998 17:02:13 -0800 (PST) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from phoenix (phoenix.aye.net [206.185.8.134]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id RAA25823 for ; Tue, 27 Oct 1998 17:02:10 -0800 (PST) (envelope-from ratbert@phoenix.aye.net) Received: (qmail 4309 invoked by uid 2800); 28 Oct 1998 01:00:11 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 28 Oct 1998 01:00:11 -0000 Date: Tue, 27 Oct 1998 20:00:10 -0500 (EST) From: To: Scott Lambert cc: freebsd-isp@FreeBSD.ORG Subject: Re: Expiring old mail? In-Reply-To: <19981026185229.A386@csw.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 26 Oct 1998, Scott Lambert wrote: > Hi, > > I recently ran into a problem with my mail server. The /var/mail disk filled > up. (not good) > > Anyway after several hours of "mail -f username" and deleting 7 month-old un- > read messages and > 1 month-old read messages, I freed up approximately 700MB > of disk. (Why do people subscribe to every mailing list on the planet and > not read their mail?) > > We have approximately 9,000 e-mail accounts on our mail server. Is there an > "expire" like tool for the mail spool files? I would like to be able to > setup rules such as "any un-read mail more than 2 months old gets deleted" > and "any read mail more than 1 month old gets deleted." That should give our > users enough time to get their mail onto all the machines they may want. It > will also allow someone to be out of town for up to 7 weeks without losing > any e-mail. Perhaps unread of 3.5 months would be better to allow for summer > vacation. > > Thanks for any suggestions, > > Scott Lambert > Mail, News, and Shell Administrator > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > Qmail (http://www.qmail.org) using its Maildir format works for me. Uses a directory structure per mail user (don't have to be real users) like $HOME/Maildir/{new,cur,tmp}. Each message is in an individual file. New messages in Maildir/new, and if the pop client chooses to leave messages on the server they are migrated to Maildir/cur after they are read. Mbox format is also supported and allows you to use other pop servers. The Maildir format (to my knowledge) only works with the qmail popper. Sure took a load off our server with customers that never delete their mail and check for new mail every 60 seconds. If I want to delete read messages that are more than 90 days old, I just delete files that are 90+ days old in Maildir/cur. -- Barrett To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message