[SOLVED] Where's the mail? No <user> directory in /var/mail
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Has the sending of system mail been removed from recent linux releases, or is there something wrong with the both of my systems? Do I need to configure something to make it work?
First please understand email is not a /Linux/ feature so can't be added or removed. Most distributions will include an MTA (Mail Transport Agent) in their default installations -- this normally includes an MDA (Mail Delivery Agent) that is responsible to store incoming mail -- uhm -- somewhere
So, first thing if you THINK there should be mail for you: Find out what MTA/MDA is installed on your system. Popular choices are postfix, exim or sendmail. All of them are heavily configurable. /var/mail/$user is the /traditional/ location for mailboxes in mbox format, but it is not obligatory. Many mail systems nowadays use something like $HOME/.mail/ instead and there are several newer formats like e.g. mdir or maildir. As soon as you know which MTA/MDA is installed on your system, you can examine its configuration to find out.
I assumed that Linux Mint, being derived from Ubuntu, would use the same system, but postfix isn't installed on Mint so maybe it uses a different system, or maybe none at all. It's after midnight here so I'm not doing any more searching tonight to find out.
Distribution: Xubuntu 16.04.1 / Linux Mint 18 XFCE / Linux Mint 18 Mate / Ubuntu Server 16.04.1 / Lubuntu 16.04.1
... and it turns out the /var/mail/<user> entry is a file, not a directory. It's a text file in which new mail is appended to the file. Presumably there are utilities to read and manage this file, but I'm just opening it in a text editor and deleting the contents when I've read it.
That's NOT a good idea. If you want to read mail from an mbox file directly, use for example mutt. As an alternative, there are several IMAP servers available that can serve mail from mbox files, for example dovecot.
xanios@ubuntu:~$ sudo smartctl -i /dev/sda
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
Device: VMware, VMware Virtual S Version: 1.0
Device type: disk
Local Time is: Sun Aug 1 20:03:08 2010 PDT
Device does not support SMART