First, let’s define what a port is. According to the IEFT, a port is:
“A logical entity for Internet communication. Ports serve two main purposes: 1. They provide a demultiplexing identifier to separate transport sessions between the same pair of endpoints 2. They may also identify the application protocol and associated service to which processes connect.”
In plain English, this simply means that a port is an endpoint through which data flows back and forth between two computers over a network. A computer has 65535 ports available to share information. These port numbers are based on a 16-bit number, which is where we derive the total number of available ports (0 to 65535).
Tmpmail is a utility written in bash that allows a user to create and use a temporary email address for receiving emails from the command-line. Underneath the covers, the bash script uses 1secmail’s API to receive the emails. By default, email addresses are created at random unless a specific email address follows the –generate flag.
When you send an email, your email client and multiple servers on the internet use the Simple Mail Transport Protocol or SMTP to move that message around the internet and ultimately into the recipient’s mailbox.
There are two main types of SMTP servers: relays and receivers. Relays accept email from users and then route it to the recipient. Receivers accept mail from relay servers and deliver it into a mailbox.