From owner-freebsd-hackers Fri Jun 12 10:29:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA26366 for freebsd-hackers-outgoing; Fri, 12 Jun 1998 10:29:24 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mail.atipa.com (altrox.atipa.com [208.128.22.34]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id KAA26341 for ; Fri, 12 Jun 1998 10:29:14 -0700 (PDT) (envelope-from freebsd@atipa.com) Received: (qmail 17056 invoked by uid 1017); 12 Jun 1998 16:26:19 -0000 Date: Fri, 12 Jun 1998 10:26:19 -0600 (MDT) From: Atipa To: Terry Lambert cc: Evren Yurtesen , freebsd-hackers@FreeBSD.ORG Subject: Re: hello In-Reply-To: <199806121634.JAA09705@usr02.primenet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 12 Jun 1998, Terry Lambert wrote: > > I have a so serious problem... > > my /var/mail directory is nearly full... > > and I do not know what to do, also I do not want to > > change the current hard drive with a newer one, I just want to > > add a new drive... > > how may I tell sendmail to have some users' emails to store > > to the new disk??? Install qmail. Set up qmail to deliver to user's home directories (as long as the are on local (non-NFS) disks). You'll need to add a special case for the user "root". Then: bash# cd /var/mail bash# for i in *; do > export USERHOME=`finger $i |grep home| head -1| awk '{print $2}'` > echo -n "Copying mail for user $i to $USERHOME/Mailbox... " > cp $i $USERHOME/Mailbox > chown $i $USERHOME/Mailbox > chmod 600 $i $USERHOME/Mailbox > echo "Done" > done Kevin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message