How to cleanly remove Exim 4 on Ubuntu

Run the following command:

apt-get remove exim4 exim4-base exim4-config exim4-daemon-light

All your configs stay on the server so that you can easily get mailing running again by installing it:

apt-get install exim4


exim – How to cleanly remove Exim4 mail server on Ubuntu – Stack Overflow.

How to Send Email in Terminal

In this article I demonstrate how to send emails from the terminal of an Ubuntu machine. It’s assumed you have a Mail Transfer Agent like Exim 4 or Postfix set up.

 echo "<message goes here>" | mail \
 -s "<subject goes here>" <to email address>


How to send email from the Linux command line – Simple Help.