My Question
Hello All! Man, I love Stack Overflow :)
Anyway, I am configuring my first ever Mail Server and want to do it right.
The actual server is configured and working great so just need a bit of help with the rdns & SFP public records of my domains. I have spent days researching but I am utterly confused so could do with a much appreciated hand.
Using this sample data below:
Domains the mail server handles: example.com, example.co.uk, example.net
Mail Server IP (For IMAP and SMTP): 123.123.123.123 for all domains
Website Server IP (A Record / For Port 80 HTTP): 101.101.101.101 = .com, 102.102.102.102 = .co.uk, 103.103.103.103 = .net
How do I setup the records?
My best guesses
rdsn set correct so emails not rejected as spam
Am I right in thinking that rdns is configured around the domains A records as follows:
rdns 101.101.101.101 = example.com
rdns 102.102.102.102 = example.co.uk
rdns 103.103.103.103 = example.net
And that the mail server on IP 123.123.123.123 can rdns to whatever my ISP decides? Or does the mail server IP rdsn have to point to one of the same IPs above (say 101.101.101.101 for the .com) in which case, whatabout the .co.uk and the .net? Is'nt RDNS set only one domain per IP? I've read a lot of conflicting information on all of this.
spf set correct so emails not rejected as spam
Do I set the below the same for each domain?
v=spf1 mx:example.com mx:example.co.uk mx:example.net ~all
Or do I need a new domain which points straight to my mail server? Say:
mail.example.com (A Record / For Port 80 HTTP): 123.123.123.123
&
v=spf1 mx:mail.example.com ~all
Set as the SPF for example.com, example.co.uk and example.net?
Any help on the above MUCH MUCH MUCH loved and appreciated. Thanks a lot. And ignore my best guesses if they are way off, only shown to display what I have learnt so far.
Also please note I have full control over rdsn, dns and MX records and spf txt etc on all my domains and IPs so whatever needs doing - i'll do it! Many thanks. :)