When logging into your Ubuntu server, you might be greeted with the message You have new mail in /var/mail/root. But how do you read that mail and how did it get there?
It means that you have installed sendmail on Ubuntu (or any other flavour of Linux) and you received one or more messages in your inbox. The message(s) can originate from your system itself, or from an external e-mail address.
Read your messages in Ubuntu
To see what messages you received from the command line, this command will reveal the message(s):
<code>cat /var/spool/mail/root</code>
The message could look like this:
Removing messages from /var/mail/root
To purge these messages and to get rid of the message you received on logging in, you can simply delete it with this command:
Do not forget to include the >
sign, otherwise it won’t work.
Hey Thomas,
Was er maar voor elke Linux vraag zo’n duidelijk en correct artikel met een oplossing. De volgende dagen da ik zeker de rest ook bekijken!
Met vriendelijke groeten