Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I consistently come up with "You have new mail in /var/mail/root" message in command line mode of my Ubuntu server. How to disable the new mail messages?

share|improve this question
up vote 3 down vote accepted

Disabling this setting is easy. Simply include


in your .bashrc file (for login shell) or .bash_profile (for non-login shells, i.e. ssh) and the message shouldn’t appear.

For me it speeds up login for my linux server and removes clutter.

share|improve this answer

I think that un-setting the MAIL variable should do the trick.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.