Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Something like this should do the trick:

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

#This is important
@ IN MX 1
@ IN MX 3
@ IN MX 3
@ IN MX 5
@ IN MX 5
@ IN MX 5
@ IN MX 5
IN TXT v=spf1 ~all
share|improve this answer
ok so i paste this in /var/named/, but don't i need somewhere to define my emails? I mean do i need somewhere to write and not? – user Sep 12 '11 at 12:16
You do not need to define something per address. But given you have this little knowledge about DNS I don't think you are providing the nameserver for your domain right? Then you would need to set them in some sort of control panel where you got the domain from. – Bart De Vos Sep 12 '11 at 12:24
godaddy is my domain registrar, not my host, i got my vps from, I'm not using nameservers, i use ip address to point my domain to my can i do it from godaddy? google said that you need to change it from my host, but goddady is not my hosting provider – user Sep 12 '11 at 12:49
GoDaddy is your domainHOST so you will need to do it on their control-panel. Take a look here: – Bart De Vos Sep 12 '11 at 13:07
ahhhhh domainhost!! ok i get it, i thought they meant my webhost coz usually you when you say host = webhost and we usually say registrar and not domainhost lol!!! – user Sep 12 '11 at 13:12

Your Answer


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.