On a new server running lucid, I get "you have new mail" in my admin account. However, I don't have a mail command available to read it. Do I need to install it manually (or mutt, etc.), or is a mail client included somewhere in the base install?
Asked
Active
Viewed 1.6k times
6
Jorge Castro
- 70,934
- 124
- 466
- 653
Andrew Vit
- 195
- 1
- 1
- 6
-
2Possible duplicate of [How are administrators supposed to read root's mail?](https://askubuntu.com/questions/2261/how-are-administrators-supposed-to-read-roots-mail) – Pablo Bianchi Mar 13 '19 at 23:53
-
I personally just `sudo less +G /var/mail/mail`. `+G` go directly to the end of the file, like `-e` on `journalctl`. – Pablo Bianchi Mar 13 '19 at 23:59
1 Answers
6
Installing bsd-mailx should give you a minimal mail reader command mail. You can rad the mail file with less if you wish. You mail will be a file in /var/mail.
Setting up your mail server for no local delivery and creating an off-host alias for root should get you mail to a central location. Generally, you will want to use a Smarthost for delivery.
BillThor
- 4,628
- 18
- 22