Technology Insights

Ubuntu CLI Mail Command: The program ‘mail’ can be found in the following packages

While working on a clients Ubuntu Linux computer I needed to send some of the logs to myself so I could analyze them at a later date but there was not an SMTP server installed on the computer. This can be resolved by installing the Exim MTA (Mail Transfer Agent) using the below apt-get command which is actually stated fairly clearly in the output of attempting to use the mail command from the Ubuntu CLI as shown below. The initial attempt at using the mail command as well as the output from apt-get is displayed in the below example output.