I recently set up my own mail server using postfix as MTA and dovecot as an imap 'server' (is this the right term?). Now dns records is the last thing to do and I was wondering if I understood this right. Suppose my domain is: mycomp.com
.
Postfix and Dovecot use a certificate generated for mail.mycomp.com and should lastly be reachable by that subdomain. Therefore I need to set up two records one mx record for mycomp.com
that points to mail.mycomp.com
and an A record for mail.mycomp.com
that finally points to my server ip. Would those be the proper dns records?