I've tried searching for some examples on how to do this "the right way", but I've had little luck. Maybe my search-fu is lacking, so here goes:
This will be a combination web/mail/other server. Out of all the services, mail is the one I'm most concerned about, so I want to get this right.
My current settings:
Code:
flanders:~# cat /etc/hostname
flanders
flanders:~# cat /etc/hosts
127.0.0.1 flanders.grunkalunka.net flanders localhost
flanders:~# cat /etc/mailname
mail.grunkalunka.net
Relevant DNS info
Code:
@ MX 0 mail.grunkalunka.net.
@ A 69.93.XXX.YYY
* A 69.93.XXX.YYY
mail A 69.93.XXX.YYY
Given this info, my questions are:
Does it make sense to simplify the whole thing to change the MX record, /etc/mailname and RDNS to just "grunkalunka.net"? Is there any benefits or drawbacks to this? Any further changes I should do (like to /etc/host{name,s})?
If I cannot do that, do I have to change the value of /etc/host to "mail"? Likewise in /etc/hosts?
What should I set the RDNS to resolve to? grunkalunka.net, mail.grunkalunka.net, or flanders.grunkalunka.net?
I believe my SPF record should look like this:
Code:
v=spf1 a mx ~all
Does that look alright?
Many thanks in advance.