From owner-freebsd-questions Tue May 14 12:21:02 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA04598 for questions-outgoing; Tue, 14 May 1996 12:21:02 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id MAA04593 for ; Tue, 14 May 1996 12:21:00 -0700 (PDT) Received: from palmer.demon.co.uk (palmer.demon.co.uk [158.152.50.150]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id MAA27931 for ; Tue, 14 May 1996 12:20:57 -0700 Received: from palmer.demon.co.uk (localhost [127.0.0.1]) by palmer.demon.co.uk (sendmail/PALMER-1) with ESMTP id UAA20333; Tue, 14 May 1996 20:16:10 +0100 (BST) To: xiyuan qian cc: freebsd-questions@FreeBSD.ORG From: "Gary Palmer" Subject: Re: How can I redirect new mail arriving my host to other directory from the default /var/mail? In-reply-to: Your message of "Mon, 15 May 1995 01:13:52 +0900." <199505141613.BAA29381@www.haplink.co.cn> Date: Tue, 14 May 1996 20:16:08 +0100 Message-ID: <20331.832101368@palmer.demon.co.uk> Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk xiyuan qian wrote in message ID <199505141613.BAA29381@www.haplink.co.cn>: > Hi, my / directory is not large enough, when the new mail is very > large, usually cause my host file full. I have tried many mathods to > redirect the mail locates at the default directory /var/mail to other > directory which has more space, but all failed. If someone has such > experience, would you please give me a faviour. Thanks a lot! The easiest way is to move the /var/mail directory onto another partition (which has room) and make a symlink from the /var directory to the new location. e.g. mkdir /usr/var mv /var/mail /usr/var/mail ln -s /usr/var/mail /var This *MUST* be done while the mail system is idle, otherwise you risk losing mail. Gary -- Gary Palmer FreeBSD Core Team Member FreeBSD - Turning PC's into workstations. See http://www.FreeBSD.ORG/ for info.