Configure DNS to forward email to google

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?


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.


From Google: Configuring Your MX Records: Other domain hosts

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