Install bootmail by entering the following commands in the terminal:
sudo apt update sudo apt install bootmail
Description:
automatically email one or more admins when a system reboots
bootmail is a handy utility that will automatically send an email to a configurable list of email addresses each time the system boots. This is perhaps useful for unattended servers that should not reboot often. It appends a configurable list of log files to the email body. . If you install the suggested packages, it will also cryptographically sign the email messages.
Homepage: http://launchpad.net/bootmail
Version: 1.11-0ubuntu1
Section: universe/admin