Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Sep 2006 12:24:28 +0700 (ICT)
From:      Olivier Nicole <on@cs.ait.ac.th>
To:        jekillen@prodigy.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re: mail to root
Message-ID:  <200609200524.k8K5OSVX036232@banyan.cs.ait.ac.th>
In-Reply-To: <2d6e28fbc9d4d02b9c37e9f9c2ee62d7@prodigy.net> (message from jekillen on Tue, 19 Sep 2006 21:50:18 -0700)
References:  <2d6e28fbc9d4d02b9c37e9f9c2ee62d7@prodigy.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609200524.k8K5OSVX036232>