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 am registering domains on behalf of customers and need to setup email forwarding so I can setup an email address as simple as to forward to their existing mail service (hotmail, gmail etc). We are hosting their websites at their domains but do not wish to host an email server or make them switch email providers at this time.

I have complete control over the DNS setup of their domains and a CentOS server to run some sort of mail-forwarding software on.

How do I go about setting this up / what sort of software do I need?

share|improve this question

migrated from Oct 3 '11 at 15:34

This question came from our site for pro webmasters.

Is this on shared hosting or VPS/real server? – paulmorriss Oct 3 '11 at 15:20
@paulmorriss Real server – Dunhamzzz Oct 3 '11 at 15:57
up vote 4 down vote accepted

I recommend exim as MTA.

Its really simple.

Just add small 'forward' file, like


And , dont forget add MX record to dns.

share|improve this answer
Thanks, I will look into it, is it possible to do wildcards? – Dunhamzzz Oct 4 '11 at 9:45
as i know - yes. wildcards are possible – Korjavin Ivan Oct 4 '11 at 11:08
What DNS/MX Records do I need to setup? – Dunhamzzz Oct 5 '11 at 13:40
@ MX 10 – Korjavin Ivan Oct 5 '11 at 16:50

Even as pure forwarder it must to be full-size e-mail server (it just not have local users and forward all to another MTA). How to setup, which MTA to use is slightly different and next question (just to note - any MTA, which your postmaster know well, can be used)

share|improve this answer

If you don't wish to manage a mail server yourself, you better use Google Apps for Business (‎) or Hotmail for Domain ( These way you can create mail addresses with your own domain without managing mail server yourself.

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.