How to test a POP server using telnet

What you need

Encryption

For added security, you can encrypt your POP connection. This requires that your server supports SSL or TLS and that you have access to an SSL/TLS client program, for example OpenSSL, to use instead of telnet.

The port number would usually be 995, so an example OpenSSL command would be openssl s_client -connect pop.example.com:995 -quiet. (If you would like to see the public key of the server, as well as some other encryption-related information, omit -quiet.) A normal POP session would then start, such as with the +OK InterMail POP3 server ready server greeting below.

What to do

The DELE command flags messages for deletion. Use it only if you want to delete mail.

The initial telnet: > symbolizes your shell prompt.

telnet: > telnet pop.example.com pop3
telnet: Trying 192.0.2.2...
telnet: Connected to pop.example.com.
telnet: Escape character is '^]'.
server: +OK InterMail POP3 server ready.
client: USER MyUsername
server: +OK please send PASS command
client: PASS MyPassword
server: +OK MyUsername is welcome here
client: LIST
server: +OK 1 messages
server: 1 1801
server: .
client: RETR 1
server: +OK 1801 octets
server: Return-Path: sender@example.com
server: Received: from client.example.com ([192.0.2.1])
server:        by mx1.example.com with ESMTP
server:        id <20040120203404.CCCC18555.mx1.example.com@client.example.com>
server:        for <recipient@example.com>; Tue, 20 Jan 2004 22:34:24 +0200
server: From: sender@example.com
server: Subject: Test message
server: To: recipient@example.com
server: Message-Id: <20040120203404.CCCC18555.mx1.example.com@client.example.com>
server: 
server: This is a test message.
server: .
client: DELE 1
server: +OK
client: quit
server: +OK MyUsername InterMail POP3 server signing off.

The sites www.anta.net and blog.anta.net serve information on internetworking, security and safety topics to a global audience. Both sites are partially funded by advertising. Because of this, third parties may offer your browser cookies; request cookies back; and use web beacons. Google's use of the DART cookie enables Google to serve ads to you based on your visits to this and other websites. If you do not wish to use the DART cookie, please opt out on the privacy policy page for Google's ad-and-content network. Additionally, you can usually specify your cookie preferences in your browser settings.

All content © 2000–2010 Thor Kottelin t/a Turvasana Tmi, unless otherwise indicated. Any trademarks or registered trademarks mentioned on this site belong to their respective owners. Content and techniques used on this site may be available for licensing; for details, please contact the webmaster. — Conventional hyperlinking to this site is welcome. However, none of the content on this site may be shown, even partly, in a context inferring or claiming it to be part of or sponsored by any other organization or site. Such prohibited techniques include (but are not limited to) framesets, interstitial pages, kiosk mode pop‑ups and reverse proxies.

38.107.191.85 (none)
(none) CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
/misc/telnet-troubleshooting/pop.shtml /misc/telnet-troubleshooting/pop.shtml Tuesday, 09-Feb-2010 11:45:41 EET