This is kind of a basic question and it might sound stupid but I am new to this whole mail server thing and I am trying to learn how to setup one.
I have a VPS server which runs Ubuntu 12.04 (OpenVZ). I want to host few websites on this VPS and want these websites to send out emails correctly.
I want each website to send/receive emails using the domain on which it runs.
I.e. If a website is running on example.com I should be able to create emails like firstname.lastname@example.org, email@example.com and should be send and receive emails to these email accounts.
Will I have to run my own mail server to achieve this or are there any other solutions which I can use?
Also, the VPS all ready have sendmail configured and is able to send out emails. If I want to install postfix, will I have to remove sendmail?
Thanks for your help in advance.