I have basic understanding of how everything works. But I want to get better understanding and dive deeper.
I will how do I understand all these stuff.
Consider we are sending letter to hello@world.com
- When we are sending letter firstly DNS resolves
world.com
domain. - It asks
.
DNS server than it is redirected to.com.
DNS zone server and than to theNS
server/servers that are responsible for storing info aboutworld.com
domain. We can change(redirect to another)NS
servers in domain control panel. - After finding proper
NS
server which is responsible for providing information about this domain it retrieves data aboutMX
record. - Mail is sent to the SMTP server specified in
MX
record usingSMTP
protocol - Because we are not using
POP3
protocol over letter is saved on theSMTP
server responsible for maintenance of our domain (MX record). - So
SMTP
server backups all our mail on the server and we can access our mail from anywhere usingIMAP
protocol.
Am I right ?
Most of time MX
record has hoster mail servers specified.
So my main question is
If I change MX
record of my domain to another server, than I will lost all mail history ? Or it is possible to transfer mail to new server ? And if I switch back again to old SMTP
server will I find all my mail there or it will be removed ?
Maybe I am completely wrong, but I will be grateful for any help.