4

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?

Cruachan
  • 429
  • 1
  • 9
  • 17

3 Answers3

10

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.

Zoredache
  • 128,755
  • 40
  • 271
  • 413
  • 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 03 '09 at 23:41
6

From Google: Configuring Your MX Records: Other domain hosts

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

Mark Regensberg
  • 1,421
  • 12
  • 14
0

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

Doug Luxem
  • 9,592
  • 7
  • 49
  • 80