Yes, you can easily setup a mail server, but...
Typically, mail servers are linked to specific domains, so you'd need to setup your own domain and configure mail for that domain to go to your mail server. Your mail server can then filter the mail into multiple mailboxes, one per user.
The...