I want to setup a custom email imap domain name as a DNS record that points, for example, imap.mydomain.io
to imap.google.com
, so that I can give imap.mydomain.io
url to my email customers. This is because I want them to use imap.mydomain.io
address in their email software clients.
I don't know if, for this purpose, I should use a CNAME
or a URI
in my domain DNS record table.
From the choice of setting up one of those two DNS records, what would be the most elegant and best approach?
Thanks
You should not just point your hostname e.g. to the
imap.google.com
as there's TLS involved; the certificate doesn't match your domain!While there is an
SRV
record defined for IMAP (RFC 6186, 3.2), client's don't globally support it, and you would need to use it on client's email domains, without your domain in between.The most compatible option would be to provide your customers with the original hostnames. An
SRV
record is a good addition that might help with automatic configurations.