Some weeks ago, I was trying to explain the eMail flow and how protocols are involved. I am not very good explaining, so I took now my time and I have done this little description. I hope it is useful for everyone.
When you send an eMail, you use the SMTP protocol to interact with servers. This protocol is the one that usually runs in the so popular port 25/tcp, 465/tcp or 587/tcp. Port 25 is used for server-to-server interaction while 465/tcp or 587/tcpis used for client-to-server interaction.
IMAP or POP are protocols responsible for delivering eMail messages from the server to the end user computer. IMAP usually runs on 143/tcp and 993/tcp; POP usually runs on 110/tcp and 995/tcp.
So, here it is my little explanation:
- The eMail is pushed into the mail server using the SMTP protocol; usually, this connexion would take place using ports 465/tcp or 587/tcp.
- The mail server will query DNS server to know where to send the message. DNS will return MX record, if MX record is missing, Mail server will use A or AAAA record.
- The message will be sent to the pointed server.
- The message will arrive in the server pointed by DNS answer and it will be stored in Fernanda's mailbox.
- Fernanda will query her mail server for any new messages. This transfer will be done using IMAP or POP protocols.
- Fernanda got a new eMail!
Enjoy!blog comments powered by Disqus