How does non-web based email like Microsoft Outlook or Mozilla Thunderbird work? [closed]
Andrew Henderson
If I use some desktop-based email program like Mozilla Thunderbird on my own individual computer and someone on one of the other gazillion computers in the world writes me an email, how does the email find its way to me?
Furthermore, if the email program is on a local computer and not centralized, what prevents two or more people from making accounts with the same exact name?
3 Answers
The programs are clients to a mail server. The web based email clients are also just that, clients. The mail server itself is another service. Either way these clients communicate with the actual mail server when you check your mail or send a message. The mail sent to you is mapped to the particular email server, and not your client software. That is why you will only have one instance of a username for any given domain.
1Here you have decent explanation how email works with nice pictures :)
To answer you questions:
Email finds a way as any other network packet - via an ip address - there's not difference in that.
Your SMTP server needs to be able to find MX records of domain of your recipient - in this case it needs to be centralized. Check this out - open command prompt and enter:
nslookup [enter]
set type=mx [enter]gmail.com
This is how you find smtp servers :) So if send mail to it knows where to go. Further more - if I have my own smtp server I can send you email signed by any address like (it's just a piece of text in my e-mail) - but your provider smtp probably won't receive this mail, or throw it into spam cause it won't trust this server.
3Your email program does a lot of things for you behind the scenes. This includes setting your username and password, etc. You could learn about the process by accessing your email with telnet. Also, some clients, like Thunderbird, allow you to view the email source. You might be surprised to know the information stored there.
There are several reasons why your attempt to use the IP address did not work. Perhaps it expects the mailbox domain to be spelled out, or perhaps you didn't set your password. If you really want to learn about email, download sendmail and try it out on your own computer.