I have some websites on AWS (Windows Server 2012 R2), and I'm trying setup a mail server. I have installed hMailServer, and in the guide say I need configure the DNS records for mail. I never needed setup email server from zero like now, then I'm a bit confused about the DNS records needed for this.
I read in some guide I will need A, MX and PTR records for this. Currently, my registar has only this records:
mydomain.com A 1.2.3.4
www.mydomain.com A 1.2.3.4
Now, I think I will need create that records:
mail.mydomain.com A 1.2.3.4
mail.mydomain.com MX 10 mail.mydomain.com
My questions:
- Am I doing correctly?
- What about the PTR record? I needed?
- I will/can use this "mail.mydomain.com" like above in SMTP, POP and IMAP? Or I will need create different DNS records for this?
- How can I do/know if I did correctly? I was using mxtoolbox, but even there I dont understand if I need inform "mydomain.com" or "mail.mydomain.com" on the tests.