From owner-freebsd-questions@FreeBSD.ORG Wed Sep 20 05:24:53 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 B510616A403 for ; Wed, 20 Sep 2006 05:24:53 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3B0F43D45 for ; Wed, 20 Sep 2006 05:24:52 +0000 (GMT) (envelope-from on@cs.ait.ac.th) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) by mail.cs.ait.ac.th (8.13.1/8.12.11) with ESMTP id k8K5OSrF069700 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 20 Sep 2006 12:24:33 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.13.3/8.12.11) id k8K5OSVX036232; Wed, 20 Sep 2006 12:24:28 +0700 (ICT) Date: Wed, 20 Sep 2006 12:24:28 +0700 (ICT) Message-Id: <200609200524.k8K5OSVX036232@banyan.cs.ait.ac.th> From: Olivier Nicole To: jekillen@prodigy.net In-reply-to: <2d6e28fbc9d4d02b9c37e9f9c2ee62d7@prodigy.net> (message from jekillen on Tue, 19 Sep 2006 21:50:18 -0700) References: <2d6e28fbc9d4d02b9c37e9f9c2ee62d7@prodigy.net> X-Virus-Scanned: on CSIM by amavisd-milter (http://www.amavis.org/) Cc: freebsd-questions@freebsd.org Subject: Re: mail to root 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: Wed, 20 Sep 2006 05:24:53 -0000 > 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? Local mail delivery can be specific: mail could be delivered even is no smtp server is running. This is highly dependant of your environment and of what is used to generate this very email. Some scripts could make a direct call to whatever your mail server is and instruct it just to deliver that email, it would not require the server to run as a daemon. For example you send the header+body of your email to standard input of "sendmail -t" it will take your mail and deliver it. > 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 It is preferable that you cannot ssh as root. Prefer using sudo instead of su (/usr/ports/security/sudo). IMHO su should not exist anymore. Bests, Olivier