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'm trying to reconfigure a bind record on an Ubuntu 9.04 server so that email is redirected out to gmail My existing records look like this (not the real ip)

; MX Records
@   IN	MX	10	mail

; Address Records
@   IN	A	70.88.42.67
www IN	A	70.88.42.67
ftp IN	A	70.88.42.67
mail    IN	A	70.88.42.67

Am I correct in thinking that the change that is needed is simply

; MX Records
@       IN      MX      10      mail

; Address Records
@   IN	A	70.88.42.67
www IN	A	70.88.42.67
ftp IN	A	70.88.42.67
mail    IN      CNAME   ghs.google.com

I'm making the changes to the db file held in /var/cache/bind and subsequently going to restart bind to apply them. Is this sufficient?

share|improve this question

3 Answers 3

up vote 9 down vote accepted

You probably want something like this. (see link)

	IN	MX	1  	ASPMX.L.GOOGLE.COM.
	IN	MX	5 	ALT1.ASPMX.L.GOOGLE.COM.
	IN	MX	5	ALT2.ASPMX.L.GOOGLE.COM.
	IN	MX	10	ASPMX2.GOOGLEMAIL.COM.
	IN	MX	10	ASPMX3.GOOGLEMAIL.COM.
	IN	MX	10	ASPMX4.GOOGLEMAIL.COM.
	IN	MX	10	ASPMX5.GOOGLEMAIL.COM.

Make sure you add that trailing period.

share|improve this answer
    
I ALWAYS forget the trailing period on FQDN, and the silly DNS server NEVER does what I want until I go back and put the Period in:-) –  BillN Jun 3 '09 at 23:41

From Google: Configuring Your MX Records: Other domain hosts

http://www.google.com/support/a/bin/answer.py?answer=33915

share|improve this answer

You cannot reference a CNAME record in your MX record. You will need to obtain the correct MX entry from Google.

share|improve this answer

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.