Let's say I have an webspace with a mailserver at mail.webspace.com
and an own domain called mail.mydomain.com
.
mail.webspace.com
is the domain I got from my hosting provider to enter for IMAP and SMTP whenever I'm configuring an email client.
What I want to achieve now is to somehow have mail.mydomain.com
work for that mailserver as well, but without any config changes on the mailserver since I have no access to it. The goal is to be able to enter either mail.webspace.com
or mail.mydomain.com
for IMAP/SMTP in any email client. The clients should be able to connect via SSL on both domains, not just mail.webspace.com
, which always works.
From my understanding I would need something at DNS level for mail.mydomain.com
to do this (like a 301 redirect or CNAME), however I don't know how and whether this is the right way of doing it.
So, is there a way to do this?