Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've no time to install a mail server on my Ubuntu server and I have a client who needs to receive emails on his email account (the domain is registered with my hosting).

What's the best solution to forward the mails to a temporary gmail account (maybe just with apache)?

share|improve this question

migrated from superuser.com Oct 8 '10 at 9:55

This question came from our site for computer enthusiasts and power users.

1  
Forwarding mail with Apache? I think you're getting slightly confused –  Ben Quick Oct 8 '10 at 10:41

3 Answers 3

up vote 0 down vote accepted

I'm not sure why you think you need to change Apache to alter your mail routing

You need to set your MX records to those advised by your mail provider (Google in this case, but the looks of things). You set your MX records in DNS. So, you need to contact your DNS provider for this to be done

I would guess that your DNS provider is the same company that you bought your domains from. But, if you share the domain name, then it's possible to check who hosts your DNS

share|improve this answer
    
Ok i've updated the MX records. Now Google says I have to wait 48 hours. Just the first two are enough ? ASPMX.L.GOOGLE.COM. Priority 10, ALT1.ASPMX.L.GOOGLE.COM. 20 . –  Patrick Oct 8 '10 at 11:19
    
Yep. You have a primary MX of aspmx.l.google.com and if that is unavailable the fallback is alt1.aspmx.l.google.com. If they are the only two records that Google have suggested, then I'd stick with that. Wait for DNS to refresh where required, and you should be good to go. If you're happy with this, then please could you accept an answer to your question? –  Ben Quick Oct 8 '10 at 11:21
    
I've accepted the answer, google lists 10 MX records. My hosting service has 2 records by default, so I just set that ones so far... is it working anyway ? –  Patrick Oct 8 '10 at 17:57
    
2 records will be fine. As for if it's working, I have no idea - I can't test an address I don't know :) –  Ben Quick Oct 11 '10 at 8:15

If you've control over the domain settings, why not setting up Google Apps?

share|improve this answer
    
Ok i've registered and updated the MX records. Now Google says I have to wait 48 hours. Just to be sure: Are the first two MX parameters are enough, or should I add all of them ? ASPMX.L.GOOGLE.COM. Priority 10, ALT1.ASPMX.L.GOOGLE.COM. 20 . –  Patrick Oct 8 '10 at 11:20

Details on Google Apps can be found here, with the FAQ and setup instructions are provided. It'll get you up and running within minutes (plus however long your TTL on your MX records is).

share|improve this answer
    
Ok i've registered and updated the MX records. Now Google says I have to wait 48 hours. Just to be sure: Are the first two MX parameters are enough, or should I add all of them ? ASPMX.L.GOOGLE.COM. Priority 10, ALT1.ASPMX.L.GOOGLE.COM. 20 . –  Patrick Oct 8 '10 at 11:20

Your Answer

 
discard

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.