CartMetrix - Do you know yours?

« How To Clear Stuck Urchin Tasks | Home | Textmate Lorem ipsum dolor Filler Text »

9/12/2005

Debugging POP/IMAP/SMTP With Telnet

POP3

$ telnet host.domain.com 110
Trying x.x.x.x ...
Connected to host.domain.com (x.x.x.x).
Escape character is '^]'.
+OK POP3 host.domain.com v2003.83rh server ready
USER USERNAME
+OK User name accepted, password please
PASS PASSWORD
+OK Mailbox open, 48 messages
LIST
+OK Mailbox scan listing follows
1 3894
2 11761
3 5499
4 13448
5 10451
RETR 5
...
QUIT

 

IMAP

$ telnet x.x.x.x 143
Trying x.x.x.x...
Connected to host.domain.com.
Escape character is '^]'.
* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS AUTH=LOGIN] host.domain.com IMAP4rev1 2003.338rh at Mon, 12 Sep 2005 14:12:44 -0500 (CDT)
a LOGIN USERNAME PASSWORD
a OK [CAPABILITY IMAP4REV1 IDLE NAMESPACE MAILBOX-REFERRALS BINARY UNSELECT SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND] User USERNAME authenticated
a EXAMINE INBOX
* 46 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1093716296] UID validity status
* OK [UIDNEXT 610] Predicted next UID
* FLAGS (NonJunk Junk $MDNSent NotJunk $NotJunk JunkRecorded $Junk $Label4 $Label1 $Label2 $Label3 $Label5 \Answered \Flagged \Deleted \Draft \Seen)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UNSEEN 27] first unseen message in /var/spool/mail/xxxxxxx
a OK [READ-ONLY] EXAMINE completed
a FETCH 1 BODY[TEXT]
...
a LOGOUT
* BYE host.domain.com IMAP4rev1 server terminating connection
a OK LOGOUT completed
Connection closed by foreign host.

 

SMTP

$ telnet x.x.x.x 25
Trying x.x.x.x...
Connected to host.domain.com.
Escape character is '^]'.
220 host.domain.com ESMTP Sendmail 8.9.3+Sun/8.9.3; Mon, 12 Sept 2005 12:18:01-0500 (CDT)
HELO me@localhost
250 host.domain.com Hello me [x.x.x.x], pleased to meet you
MAIL FROM:< me@domain >
250 < me@domain >... Sender ok
RCPT TO:< you@domain >
250 < you@domain >... Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
Hi You!
.

250 QAA00316 Message accepted for delivery
QUIT
221 host.domain.com closing connection
Connection closed by foreign host.

Popularity: 18%

Trackback:

Related Posts

Post your opinion

Verification Image

Please type the letters you see in the picture.

Subscribe without commenting


damonparker.org is proudly powered by WordPress
Entries (RSS) and Comments (RSS).

copyright © 2002-2008 damonparker.org. all rights reserved.

Close
E-mail It