<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://freebsdwiki.net/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://freebsdwiki.net/index.php?action=history&amp;feed=atom&amp;title=IMAP%2C_testing_via_Telnet</id>
		<title>IMAP, testing via Telnet - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://freebsdwiki.net/index.php?action=history&amp;feed=atom&amp;title=IMAP%2C_testing_via_Telnet"/>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=IMAP,_testing_via_Telnet&amp;action=history"/>
		<updated>2026-04-30T19:49:04Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.18.0</generator>

	<entry>
		<id>http://freebsdwiki.net/index.php?title=IMAP,_testing_via_Telnet&amp;diff=10909&amp;oldid=prev</id>
		<title>Jimbo at 19:03, 29 December 2008</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=IMAP,_testing_via_Telnet&amp;diff=10909&amp;oldid=prev"/>
				<updated>2008-12-29T19:03:42Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:03, 29 December 2008&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;When troubleshooting an IMAP service, it's frequently helpful to use the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/del&gt;telnet&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;''' &lt;/del&gt;client to &amp;quot;speak&amp;quot; to the server directly, rather than using a mail client which won't give you the exact responses the server does.&amp;#160; In this example, we will use '''telnet''' to connect to an IMAP server, log in as a user, list the user's available mailboxes, and check messages in one of them.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;When troubleshooting an IMAP service, it's frequently helpful to use the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[&lt;/ins&gt;telnet&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]] &lt;/ins&gt;client to &amp;quot;speak&amp;quot; to the server directly, rather than using a mail client which won't give you the exact responses the server does.&amp;#160; In this example, we will use '''telnet''' to connect to an IMAP server, log in as a user, list the user's available mailboxes, and check messages in one of them.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; ph34r# '''telnet localhost 143'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; ph34r# '''telnet localhost 143'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:10902:newid:10909 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jimbo</name></author>	</entry>

	<entry>
		<id>http://freebsdwiki.net/index.php?title=IMAP,_testing_via_Telnet&amp;diff=10902&amp;oldid=prev</id>
		<title>Jimbo at 18:59, 29 December 2008</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=IMAP,_testing_via_Telnet&amp;diff=10902&amp;oldid=prev"/>
				<updated>2008-12-29T18:59:31Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 18:59, 29 December 2008&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 38:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 38:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[HTTP, testing via Telnet]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[HTTP, testing via Telnet]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:FreeBSD for Servers]] [[Category:Common Tasks]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:10898:newid:10902 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jimbo</name></author>	</entry>

	<entry>
		<id>http://freebsdwiki.net/index.php?title=IMAP,_testing_via_Telnet&amp;diff=10898&amp;oldid=prev</id>
		<title>Jimbo: /* See Also */</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=IMAP,_testing_via_Telnet&amp;diff=10898&amp;oldid=prev"/>
				<updated>2008-12-29T18:48:56Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;See Also&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 18:48, 29 December 2008&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 32:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 32:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Daemons, testing via Telnet]] &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Daemons, testing via Telnet]] &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[SMTP, testing via Telnet]] &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[SMTP, testing via Telnet]] &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[POP3, testing via Telnet]] &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[POP3, testing via Telnet]] &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[HTTP, testing via Telnet]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[HTTP, testing via Telnet]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:10897:newid:10898 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jimbo</name></author>	</entry>

	<entry>
		<id>http://freebsdwiki.net/index.php?title=IMAP,_testing_via_Telnet&amp;diff=10897&amp;oldid=prev</id>
		<title>Jimbo at 18:48, 29 December 2008</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=IMAP,_testing_via_Telnet&amp;diff=10897&amp;oldid=prev"/>
				<updated>2008-12-29T18:48:43Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;When troubleshooting an IMAP service, it's frequently helpful to use the '''telnet''' client to &amp;quot;speak&amp;quot; to the server directly, rather than using a mail client which won't give you the exact responses the server does.  In this example, we will use '''telnet''' to connect to an IMAP server, log in as a user, list the user's available mailboxes, and check messages in one of them.&lt;br /&gt;
&lt;br /&gt;
 ph34r# '''telnet localhost 143'''&lt;br /&gt;
 Trying 127.0.0.1...&lt;br /&gt;
 Connected to localhost.localdomain.&lt;br /&gt;
 Escape character is '^]'.&lt;br /&gt;
 * OK dovecot ready.&lt;br /&gt;
 '''A LOGIN postmaster@mail.getsdeliveredhere.net thisismypassword'''&lt;br /&gt;
 A OK logged in.&lt;br /&gt;
 '''A LIST &amp;quot;&amp;quot; &amp;quot;*&amp;quot;'''&lt;br /&gt;
 * LIST (\HasNoChildren) &amp;quot;.&amp;quot; &amp;quot;INBOX&amp;quot;&lt;br /&gt;
 * LIST (\HasChildren) &amp;quot;.&amp;quot; &amp;quot;Sent&amp;quot;&lt;br /&gt;
 * LIST (\HasNoChildren) &amp;quot;.&amp;quot; &amp;quot;Sent.2006&amp;quot;&lt;br /&gt;
 * LIST (\HasNoChildren) &amp;quot;.&amp;quot; &amp;quot;Sent.2007&amp;quot;&lt;br /&gt;
 a OK List completed.&lt;br /&gt;
 '''A SELECT inbox'''&lt;br /&gt;
 * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)&lt;br /&gt;
 * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.&lt;br /&gt;
 * 1 EXISTS&lt;br /&gt;
 * 1 RECENT&lt;br /&gt;
 * OK [UIDVALIDITY 1103088195] UIDs valid&lt;br /&gt;
 * OK [UIDNEXT 1] Predicted next UID&lt;br /&gt;
 A OK [READ-WRITE] Select completed.&lt;br /&gt;
 '''A LOGOUT'''&lt;br /&gt;
 * BYE Logging out&lt;br /&gt;
 A OK Logout completed.&lt;br /&gt;
 Connection closed by foreign host.&lt;br /&gt;
&lt;br /&gt;
Okay - we've just verified on a very direct level that the [[IMAP]] server we connected to answers incoming connections, successfully authenticates users, ''and'' successfully opens their inboxes - see the '''* 1 EXISTS''' and '''* 1 RECENT''' lines?  That tells us that there is a single email in the inbox folder, and it hasn't been read yet.  (We got &amp;quot;inbox&amp;quot; from the results of our '''LIST &amp;quot;&amp;quot; &amp;quot;*&amp;quot;''' command, which asked for a complete list of folders on this account.)&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
[[Daemons, testing via Telnet]] &lt;br /&gt;
[[SMTP, testing via Telnet]] &lt;br /&gt;
[[POP3, testing via Telnet]] &lt;br /&gt;
[[HTTP, testing via Telnet]]&lt;/div&gt;</summary>
		<author><name>Jimbo</name></author>	</entry>

	</feed>