From owner-freebsd-questions@FreeBSD.ORG Fri Dec 14 19:57:14 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FBE316A417 for ; Fri, 14 Dec 2007 19:57:14 +0000 (UTC) (envelope-from idmc_vivr@intgdev.com) Received: from omr10.networksolutionsemail.com (omr10.networksolutionsemail.com [205.178.146.60]) by mx1.freebsd.org (Postfix) with ESMTP id C335113C4D1 for ; Fri, 14 Dec 2007 19:57:13 +0000 (UTC) (envelope-from idmc_vivr@intgdev.com) Received: from mail.networksolutionsemail.com (ns-omr10.mgt.hosting.dc2.netsol.com [10.49.6.73]) by omr10.networksolutionsemail.com (8.13.6/8.13.6) with SMTP id lBEJjFxS021872 for ; Fri, 14 Dec 2007 14:45:15 -0500 Received: (qmail 9989 invoked by uid 78); 14 Dec 2007 19:44:43 -0000 Received: from unknown (HELO webmail16) (205.178.146.50) by ns-omr10.lb.hosting.dc2.netsol.com with SMTP; 14 Dec 2007 19:44:43 -0000 Received: from 209.254.236.34 (idmc_vivr@intgdev.com [209.254.236.34]) by webmail16 (Netsol 11.2.30) with WEBMAIL id 5303; Fri, 14 Dec 2007 19:44:43 +0000 From: "V.I.Victor" To: freebsd-questions@freebsd.org Importance: Normal Sensitivity: Normal Message-ID: X-Mailer: Network Solutions Webmail, Build 11.2.30 X-Originating-IP: [209.254.236.34] X-Forwarded-For: [(null)] Date: Fri, 14 Dec 2007 19:44:43 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Changing "/var/mail" to a symlink X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Dec 2007 19:57:14 -0000 Because of "/var" size considerations, I'd like to use a symlinked "/usr" directory for email instead of "/var/mail". Based on today's research, I think the following will work. With mail delivery off, I 'su' and: mkdir /usr/var.mail cd /var cp -p mail/* /usr/var.mail/ mv mail mail.bak ln -s /usr/var.mail mail Since 'ls -l /var' shows: drwxrwxrwt 2 root mail 512 Dec 14 14:24 mail I should then: cd /usr chmod 1777 var.mail chown root:mail var.mail No changes are made to the "/var/mail" symlink. Then, if everything works, I just delete "/usr/mail.bak". Does this seem OK? Sorry to bother everyone with what's probably a trivial question, but I *really* want to avoid screwing-up. The machine is remote; accessed via ssh. Thanks!