Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

/var/mail/root file is empty

SOLVED
Go to solution
ap_4
Occasional Contributor

/var/mail/root file is empty

Hi,

OS: 11.23
rx3600

I noticed our root mail file is empty.
I can email files from root to our exchange unix mail box no problem, but the system is not emailing root when errors occur.

I am not running sendmail. We are using a relay. I have .forward in place.
If I run a test for mail
example:

mail root
test
.

my /var/mail/root file is empty.
At one time this was working.
Any ideas why this stopped working?.

pwd
/var/mail
# ls -sltr
total 0
0 -rw-rw---- 1 oracle mail 0 Jul 27 04:00 oracle
0 -rw-rw---- 1 root mail 0 Jul 27 10:57 root
2 REPLIES
James R. Ferguson
Acclaimed Contributor
Solution

Re: /var/mail/root file is empty

Hi:

This is expected. You are forwarding your mail and hence there is nothing retained locally in 'root' *UNLESS* your 'forward' file includes itself:

# cat /.forward
root
operators
alert@my.org

Regards!

...JRF...

Regards!

...JRF...
Steven Schweda
Honored Contributor

Re: /var/mail/root file is empty

> my /var/mail/root file is empty.
> At one time this was working.
> Any ideas why this stopped working?.

> I am not running sendmail.

Who do you think will put anything into
/var/mail/root if you're not running an
e-mail receiving program (like sendmail) on
the system?

> We are using a relay.

Who's sending e-mail to the relay?

> I have .forward in place.

What's in it? And who looks at it?

> mail root
> test
> .

Does this get delivered anywhere?