Postfix is a free and open-source mail transfer agent (MTA) that routes and delivers electronic mail. It is released under the IBM Public License 1.0 which is a free software license.
apt-get install postfix
The installer will trigger a basic configuration window.
Select your configuration type and enter your fqdn.