From owner-freebsd-questions@FreeBSD.ORG Thu Sep 21 14:33:02 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D6FC16A403 for ; Thu, 21 Sep 2006 14:33:02 +0000 (UTC) (envelope-from backyard1454-bsd@yahoo.com) Received: from web83112.mail.mud.yahoo.com (web83112.mail.mud.yahoo.com [216.252.101.41]) by mx1.FreeBSD.org (Postfix) with SMTP id 9A98743D7B for ; Thu, 21 Sep 2006 14:33:01 +0000 (GMT) (envelope-from backyard1454-bsd@yahoo.com) Received: (qmail 97920 invoked by uid 60001); 21 Sep 2006 14:33:01 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=bgQZpo3tzjWzKxHHms5/Mst6SsN7isUQbjrZTZ6VYgcLUMuzp8HNob8x1Nx+rRrYFQ0fogXzb0XoHmsqXCImCUy/DBLmLHuzI2qMXF/wln9cmjHDyxq+v2/mfwGcRxF9E8e4PgxKYFjANzyUPkAT48yYaa+baTUX+5Xoa5Y6lgo= ; Message-ID: <20060921143301.97918.qmail@web83112.mail.mud.yahoo.com> Received: from [63.240.228.37] by web83112.mail.mud.yahoo.com via HTTP; Thu, 21 Sep 2006 07:33:01 PDT Date: Thu, 21 Sep 2006 07:33:01 -0700 (PDT) From: backyard To: Roger 'Rocky' Vetterberg , jekillen In-Reply-To: <45129F56.7020409@401.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: FreeBSD Mailing List Subject: Re: mail to root X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: backyard1454-bsd@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Sep 2006 14:33:02 -0000 --- Roger 'Rocky' Vetterberg wrote: > jekillen wrote: > > Hello again; > > I have a question about how mail from the system > is generated for root. > > This question was prompted when I edited the > Postfix aliases file and > > ran newaliases, then did postfix reload, assuming > the mail system was > > running. I was informed that Postfix was not > running. So the question, > > how does mail generated by the system get > delivered to the root account? > > Here is my motive: > > I have a server that I want to run headless. I > want to be able to retrieve > > mail to root from another machine via ssh login > (on the same private net > > work number/netmask 255.255.255.0). I cannot login > to the system as > > root over ssh. I don't know if I can read root > mail with su (as wheel group > > member). I tried this but maybe I'm not using the > appropriate parameter. su - root will load up roots environment and let you check his mail. At least that worked for me last night... > > Or maybe there isn't any. I don't know where to > look for an answer to this > > question, other than this knowledgeable > group.....Oh, man mail maybe? > > Thanks in advance > > Jeff K > > I suggest you use .forward to get root's mail to > another account. > As root, do this: > echo username >> /root/.forward > > That should forward root's mail to whatever username > you specified. probably the best solution for a headless box, then you don't have to su'in in to the machine. Nor risk snoops gaining the password of all passwords... > > -- > R > -brian