Ubuntu/Commands/Mail Server CLI/POP

From r00tedvw.com wiki
Jump to: navigation, search

Commands | dig | Mail Server CLI
POP | IMAP | ESMTP

Contents

POP Overview

POP
Post Office Protocol : Application layer internet standard protocol that uses TCP/IP. Currently, version 3 is the standard.

Testing from a command line interface provides a virtually guaranteed way of confirming basic requirements for a successfully connection. Observations and responses observed come directly from the mail server rather than trying to interpret an application's translation of the scenario. Keep in mind that testing from a command line is generally in plain text, which is insecure, unless you use a connect application such as openssl

While much easier to test from a Linux terminal, it is possible to test from a windows command prompt, however, keep in mind that Windows does not allow you to backspace or delete any mistakes that you make. While unconfirmed, based on behavior it appears that Windows actively submits every keystroke to the mail server rather than waiting for "return".

See: RFC1939


Command Overview

USER
Command used to pass the username.
USER username
+OK
PASS
Command used to pass the password
PASS password
+OK User successfully logged on.
STAT
Displays a list of the current messages in the mailbox and the total byte size
STAT
+OK 9023 709284210
LIST
Provides a list of all messages in the inbox and their respective byte sizes
LIST
1 14915
2 23243
3 9322
4 1778551
RETR
Displays the message contents
RETR 1
<internet headers>
<message body>
QUIT
Closes the session with the mailserver
QUIT
+OK Microsoft Exchange Server 2010 POP3 server signing off.

Full Session Example

~$ telnet exchange.postoffice.net 110
Trying 165.212.120.200...
Connected to exchange.postoffice.net.
Escape character is '^]'.
+OK The Microsoft Exchange POP3 service is ready.
USER [email protected]
+OK
PASS shakeandbake
+OK User successfully logged on.
STAT
+OK 9023 709284210
LIST
1 14915
2 23243
3 9322
4 1778551
RETR 1
Received: from S1P5DAG2C.EXCHPROD.USA.NET ([169.254.2.236]) by
S1P5HUB2.EXCHPROD.USA.NET ([10.120.223.32]) with mapi id 14.02.0247.003; Fri,
27 Apr 2012 23:29:55 +0000
From: "Ricky Bobby" <[email protected]>
To: "Chaz Michael Michaels" <[email protected]>
Subject: Bake & Shake
Thread-Topic: Bake & Shake
Thread-Index: Ac0kzaXj1SGKcXxTRU21ts6UZGL4Xw==
Date: Fri, 27 Apr 2012 23:29:54 +0000
Message-ID: <3D4A65565EFB3D4B9A541F98D0DA17D7143C2010@S1P5DAG2C.EXCHPROD.USA.NET>

Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

Hello,

Shake and Bake forever!  The Iron Lotus sucks.

Yours Truely,
Ricky Bobby
.
QUIT
+OK Microsoft Exchange Server 2010 POP3 server signing off.
Personal tools
Namespaces

Variants
Actions
Navigation
Mediawiki
Confluence
DevOps Tools
Ubuntu
Ubuntu 22
Mac OSX
Oracle Linux
AWS
Windows
OpenVPN
Grafana
InfluxDB2
TrueNas
OwnCloud
Pivotal
osTicket
OTRS
phpBB
WordPress
VmWare ESXI 5.1
Crypto currencies
HTML
CSS
Python
Java Script
PHP
Raspberry Pi
Canvas LMS
Kaltura Media Server
Plex Media Server
MetaSploit
Zoneminder
ShinobiCE
Photoshop CS2
Fortinet
Uploaded
Certifications
General Info
Games
Meal Plans
NC Statutes
2020 Election
Volkswagen
Covid
NCDMV
Toolbox