cofigure bind for google apps mx record

I have 4 emails for my domain created using google apps I can send emails from them but cannot receive, I have a centos vps, no cpanel, no mail server.

How to configure bind so I can receive mails?


Solution 1:

Something like this should do the trick:

#The cnames are not needed, but nice to have. It will allow you to access mail via mail.domain.com
mail IN CNAME ghs.google.com.
calendar IN CNAME ghs.google.com.
docs IN CNAME ghs.google.com.
sites IN CNAME ghs.google.com.
start IN CNAME ghs.google.com.

#This is important
@ IN MX 1 aspmx.l.google.com.
@ IN MX 3 alt1.aspmx.l.google.com.
@ IN MX 3 alt2.aspmx.l.google.com.
@ IN MX 5 aspmx2.googlemail.com.
@ IN MX 5 aspmx3.googlemail.com.
@ IN MX 5 aspmx4.googlemail.com.
@ IN MX 5 aspmx5.googlemail.com.
IN TXT v=spf1 include:_spf.google.com ~all