top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Why I get this message " You have new mail in /var/spool/mail/root " ?

+3 votes
4,854 views

Why I get this message " You have new mail in /var/spool/mail/root " in CentOs?

My queries are the following -
1. Why this is generated ?
2. How to disable this ?
3. Is this system generated ?
4. Is this message gain any importance ?

posted Dec 19, 2013 by Nithin Kp

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
4. Is this message gain any importance ?

No one else can decide what is important to you. But it can be things like 'your hard disk is about to fail'.

3 Answers

+3 votes

Try the following
https://www.google.at/search?q=linux+system-mails

Why I get this message " You have new mail in /var/spool/mail/root " in CentOs?
because you have new mail (many a times messages contain output of cron jobs, or a system security report by logwatch, or similar junk)

1. Why this is generated?
because you have new mail

2. How to disable this?
you should not or edit /ect/aliases to forward any mails to a SMTP server which may need a whitelisting there https://www.google.at/search?q=%2Fetc%2Faliases

3. Is this system generated?
yes

4. Is this message gain any importance?
yes because you get logwatch and whatever system-mails like smartd telling you a harddisk may die or a software raid notifies you about a failed disk and such things
https://www.google.at/search?q=%22You+have+new+mail+in+%2Fvar%2Fspool%2Fmail%2Froot%22

answer Dec 19, 2013 by anonymous
+3 votes

Basically, this is just a "You've got mail" notification.

Most likely these are system generated logs or errors being mailed to root. When logged into root type "mail" to see them.

Importance wise, it depends on what you perceive as important. I myself like to know what is going on with my system so I leave them on, while others do not.

Disabling them would involve either, disabling postfix all together (or any other mailserver), this would prevent all system mail.

Or, if you are using this as an email server, disabling other things such as logwatch, and any other script which may mail root,

Lastly another option is creating a dumby user for all mail directed at root to go by setting up aliases in /etc/aliases (Basically at end: root: dumbyuser) and then running newaliases.

Hope this helps...

answer Dec 19, 2013 by anonymous
Just one doubt - sorry for this silly doubt..
What is a dumby user ??
I thk he is saying dummy user
+1 vote
1. Why this is generated ?

Because root has mail in his mailbox.

2. How to disable this ?

You can disable the message with biff n (IIRC). You can also redirect root's (future) mail to a user mailbox by modifying /etc/aliases and running newaliases when done. (That will not do anything with mail already delivered to root.)

3. Is this system generated ?

The message is system-generated. The mail is very likely output from various system jobs, like cron jobs or other daemons. In theory a person could have send a message to root but that's not very common.

4. Is this message gain any importance ?

The only way to know is by reading the messages! Some of them may simply be informational, others may be important.

answer Dec 19, 2013 by anonymous
man bash; "Shell Variables"

 MAILCHECK
 Specifies how often (in seconds) bash checks for mail. The default is 60 seconds. When it is time to check for mail, the shell does so before displaying the primary prompt. If this variable is unset, or set to a value that is not a number greater than or equal to zero, the shell disables mail checking.
Similar Questions
0 votes

Server running Centos and MySQL and Client is a windows xp machine.
I have setup a SSH tunnel with putty and run mysql administrator. It works fine with the root account.

With a non-root account I get
the server service or the configuration file could not be found. I can log on but I can't see the databases that I should be allowed to see.

Running a mysql -h 127.0.0.1 -u myuser -p mypassword from linux works fine

I have created a .my.cnf file in the home folder with 600 permissions in the linux box and filled it with:

[client]
 pass='mypass'
 user=myuser

Server configuration file is under /etc/my.cnf. What am I doing wrong?

0 votes

I need neighbour discovery rpm for IPV6 on CentOS 6.2 any pointer. Actually I am able to find out RHEL 5/CentOS 5 but could not locate CentOS 6 compatible RPM.

0 votes

Google gives many links to such a thing, but when I pursue them I do not get to an URL.
Where I can actually download one.

+2 votes

I'm planning to use CentOS 6.x on a handful of LAN servers. So far I've been using Slackware64 14.0 and 14.1 for the job.

I wonder what's the orthodox/recommended way of configuring and iptables firewall with CentOS. I understand there's the system-config-securitylevel-tui NCurses interface which allows defining a basic set of rules. But what about the handful of more advanced rules I have to configure?

Here's an example of an /etc/rc.d/rc.firewall script that I might use with Slackware. It contains mostly basic rules, and a couple of more advanced rules, one to limit SSH access, the other one to redirect HTTP traffic to Squid.

If I want to copy my actual firewall configuration to CentOS, what would be the recommended way? I started from a bare bones minimal CentOS 6.5 installation, so system-config-securitylevel-tui is not even installed.
Is it a good idea to try to configure /etc/sysconfig/iptables by hand? What do you suggest?

+10 votes

In Cent-OS, If i press any special character from my keyboard it is giving some other character output display. Which i have not intended/pressed.
For example, If i press @ from keyboard the actual display character in output i am getting is "
Reversal is also same. It is happening with all special characters on keyboard. Help me out for this.

...