setting up mail server on ubuntu using postfix
lets install the things we need for mailing
sudo apt-get install postfix mailutils courier-pop courier-imap
don’t forget to open necessary ports if you running on amazon (25, 143, POP, IMAP) also you need to make sure that you created MX-record