Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 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?

share|improve this question
up vote 1 down vote accepted

Any decent MTA can handle mail forwarding and sending outgoing mail for clients. The main ones on *nix are Postfix and Exim. With Postfix you would use mail forwarding domains to handle the first requirement, and standard relaying with user authentication to handle the second.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.