I do not know what are the options are and how to google them and I am little far from the subject, so I am asking it here:
We are a student club and we have a virtual Ubuntu server by our school, it has a limited space and we host our web page there. In the back end, we want to setup such mail server that can direct incoming mails to previously mapped addresses (such as GMail). Additionally, we want our mail to be sent from this host, by setting up SMTP. We want our mail to have
email@example.com and to be sent from our server to have a valid IP.
I have found information on how to redirect the incoming mail, but I could not find a hybrid solution for both. I can write them on my own, with C, Java or NodeJS however I do not want to reinvent the wheeel and probably there is a better wheel out there but I cannot find. Is there any server that can do these?