POP3 & SMTP Protocols: Answers to Common Questions

  • Thread starter Thread starter fisico30
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the Post Office Protocol (POP3) and Simple Mail Transfer Protocol (SMTP), focusing on their roles in email configuration, server architecture, and operational mechanics. Participants explore technical aspects, including port usage, server types, and the relationship between incoming and outgoing mail servers.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Exploratory

Main Points Raised

  • Some participants explain that POP3 is used for retrieving mail while SMTP is for sending mail, with ports 110 and 25 serving as the respective communication channels.
  • There is a question about whether ports represent different parts of memory storage on the server, with one participant clarifying that ports are "sockets" for communication rather than memory locations.
  • Some participants propose that incoming and outgoing mail servers can be either the same physical computer or different ones, with no consensus on the necessity of separation.
  • One participant mentions that larger ISPs likely have multiple servers for handling email services, accessing data from a central file server.
  • There is a discussion about the nature of comments in the /etc/services file, with some participants noting their significance for human readers and the historical context of the authors.
  • Another participant humorously references RFC 1149, indicating a preference for a less conventional protocol.

Areas of Agreement / Disagreement

Participants express various viewpoints on the architecture of email servers and the function of ports, with no clear consensus on whether incoming and outgoing servers must be separate or can be combined. The discussion remains unresolved regarding the specifics of server configurations and the implications of port usage.

Contextual Notes

Participants highlight the complexity of email server operations and the potential for multiple configurations, but details about specific implementations or configurations remain unclear. There is also a lack of agreement on the implications of port assignments and server roles.

fisico30
Messages
362
Reaction score
0
Hello Forum,

in order to configure our email to send and receive email we need need to use an email client program that supports the Post Office Protocol (POP3) and Simple Mail Transport Protocol (smtp) standards. POP is a protocol for retrieving mail from the ISP mail server while smtp is used for sending mail (mailman).

The mail servers have an IP address. Port 110 and port 25 are the two logical ports on the same mail server. Do these ports represent two different parts of the memory storage of the server?

Sometimes, when our email is not working correctly we are told to make changes to our client configuration...
POP3 is also called an incoming Mail Server, like IMAP and HTTP. SMTP is called the outgoing Mail Server. Are the incoming and outgoing mail servers the same physical computer or two different ones?

Do ISP have multiple incoming and multiple outgoing mail servers?

Can there be more than one incoming mail server for one email account?

thanks
fisico30
 
Computer science news on Phys.org
fisico30 said:
Hello Forum,

in order to configure our email to send and receive email we need need to use an email client program that supports the Post Office Protocol (POP3) and Simple Mail Transport Protocol (smtp) standards. POP is a protocol for retrieving mail from the ISP mail server while smtp is used for sending mail (mailman).

The mail servers have an IP address. Port 110 and port 25 are the two logical ports on the same mail server. Do these ports represent two different parts of the memory storage of the server?

Sometimes, when our email is not working correctly we are told to make changes to our client configuration...
POP3 is also called an incoming Mail Server, like IMAP and HTTP. SMTP is called the outgoing Mail Server. Are the incoming and outgoing mail servers the same physical computer or two different ones?

Do ISP have multiple incoming and multiple outgoing mail servers?

Can there be more than one incoming mail server for one email account?

thanks
fisico30

SMTP, POP and IMAP are protocols followed by pieces of software that might or might not run on the same physical computer (for instance, my friend's old setup which hosted his company's e-mail and web, his FTP and even an internet radio station--it was a really small scale operation). My understanding of ports is that they're like internal mail addresses (e.g. "packet for mail room!")
http://en.wikipedia.org/wiki/List_of_mail_servers

Most larger ISPs / companies / schools / organizations probably have quite a few computers hosting each of these services, each accessing the data stored on a central file server (or few). I don't really know the details of such things, but large-scale internet operations are quite sophisticated and complex. For instance, Wikipedia elaborates on their operations:
http://en.wikipedia.org/wiki/Wikipedia#Software_and_hardware
 
MATLABdude said:
My understanding of ports is that they're like internal mail addresses (e.g. "packet for mail room!")[/url]

Pretty much so. Each TCP/IP packet has a field which contains a "port number." The low-level TCP/IP software on a server looks at that number and routes the packet to a corresponding application, as listed in a table somewhere. On many Unix or Unix-like systems, this table is in the file /etc/services. Here's part of that file on my Mac OS X system, for ports 20-25:

Code:
ftp-data         20/udp     # File Transfer [Default Data]
ftp-data         20/tcp     # File Transfer [Default Data]
ftp              21/udp     # File Transfer [Control]
ftp              21/tcp     # File Transfer [Control]
#                          Jon Postel <postel@isi.edu>
ssh              22/udp     # SSH Remote Login Protocol
ssh              22/tcp     # SSH Remote Login Protocol
#                          Tatu Ylonen <ylo@cs.hut.fi>
telnet           23/udp     # Telnet
telnet           23/tcp     # Telnet
#                          Jon Postel <postel@isi.edu>
                 24/udp     # any private mail system
                 24/tcp     # any private mail system
#                          Rick Adams <rick@UUNET.UU.NET>
smtp             25/udp     # Simple Mail Transfer
smtp             25/tcp     # Simple Mail Transfer
 
That's weird: what's with all the names and e-mail addresses?
 
cat /etc/services is rather interesting...
 
MATLABdude said:
what's with all the names and e-mail addresses?

Those are comments for human readers, signaled by the # mark at the beginning of those lines. The TCP/IP software ignores them.

I suspect those are the people who were responsible for making those port number assignments in the first place. For example, a Google search for "Tatu Ylonen" reveals that he was one of the designers of the SSH (Secure Shell) protocol. And Jon Postel wrote RFC 318 which first defined the telnet protocol.

This is the first time I remember seeing those comments included in an /etc/services file.
 
Last edited:
I personally prefer RFC 1149.
 
fisico30 said:
The mail servers have an IP address. Port 110 and port 25 are the two logical ports on the same mail server. Do these ports represent two different parts of the memory storage of the server?

The ports represent so called "sockets" and they provide a place on a computer to "plug in".
There is no memory associated with a port, but the information sent and received is handled by the TCP/IP kernel driver and queued in memory.
Port 25 is the SMTP port to which a server listens for messages that people want to send.
Port 110 is the POP3 port to which a server listens for requests of people to view and manipulate their mailbox.

fisico30 said:
Sometimes, when our email is not working correctly we are told to make changes to our client configuration...
POP3 is also called an incoming Mail Server, like IMAP and HTTP. SMTP is called the outgoing Mail Server. Are the incoming and outgoing mail servers the same physical computer or two different ones?

Incoming and outgoing mail servers can be the same or different, it does not matter.

An SMTP server acts like a router, redirecting mail to another SMTP server if necessary. The final SMTP server "drops" the email in the appropriate mailbox.
This means you can send your mail to any SMTP server. It's only recently that mail servers of major internet providers only accept mail from their own clients.

A POP3/IMAP server provides the service to access your mailbox, to list your messages, to read them, and to delete them. POP3 and IMAP are two different protocols to do the same thing, although IMAP has more advanced functionality.

A HTTP server typically shows your email in HTML pages, but redirects all requests to a POP3 or IMAP server.

In all cases the request messages that are sent are simple plain text messages. Response messages are also plain text, although often binary data will be encapsulated in those messages.
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
4K
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
Replies
12
Views
7K
Replies
7
Views
3K
  • · Replies 13 ·
Replies
13
Views
4K