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

	<entry>
		<id>http://www.freebsdwiki.net/index.php?title=SMTP,_testing_via_Telnet&amp;diff=13476&amp;oldid=prev</id>
		<title>77.104.39.59: /* LOGIN method */</title>
		<link rel="alternate" type="text/html" href="http://www.freebsdwiki.net/index.php?title=SMTP,_testing_via_Telnet&amp;diff=13476&amp;oldid=prev"/>
				<updated>2013-02-12T14:47:18Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;LOGIN method&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 14:47, 12 February 2013&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 91:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 91:&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; 235 2.0.0 Authentication successful&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; 235 2.0.0 Authentication successful&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;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Again, excellent.&amp;#160; (If you were curious, the 334 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and 235 &lt;/del&gt;SMTP messages are also Base64 encoded, and decode to &amp;quot;Username:&amp;quot; and &amp;quot;Password:&amp;quot;.)&amp;#160; You can either send a test message with the same commands as in the plain SMTP example at the top, or you can simply '''quit''' if you just wanted to test the authentication.&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;Again, excellent.&amp;#160; (If you were curious, the 334 SMTP messages are also Base64 encoded, and decode to &amp;quot;Username:&amp;quot; and &amp;quot;Password:&amp;quot;.)&amp;#160; You can either send a test message with the same commands as in the plain SMTP example at the top, or you can simply '''quit''' if you just wanted to test the authentication.&lt;/div&gt;&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;&amp;#160;&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;&lt;/div&gt;&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;&amp;#160;&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;&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;==See Also==&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;==See Also==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:12915:newid:13476 --&gt;
&lt;/table&gt;</summary>
		<author><name>77.104.39.59</name></author>	</entry>

	<entry>
		<id>http://www.freebsdwiki.net/index.php?title=SMTP,_testing_via_Telnet&amp;diff=12915&amp;oldid=prev</id>
		<title>Wojtekl: /* PLAIN method */</title>
		<link rel="alternate" type="text/html" href="http://www.freebsdwiki.net/index.php?title=SMTP,_testing_via_Telnet&amp;diff=12915&amp;oldid=prev"/>
				<updated>2012-07-07T14:17:40Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;PLAIN method&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 14:17, 7 July 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&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;'''IMPORTANT NOTE:''' notice that we escaped the '@' character with a backslash!&amp;#160; If you don't, Perl will try to evaluate it as an array, and while you won't get an error, you won't get a usable hash, either.&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;'''IMPORTANT NOTE:''' notice that we escaped the '@' character with a backslash!&amp;#160; If you don't, Perl will try to evaluate it as an array, and while you won't get an error, you won't get a usable hash, either.&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;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''NOTE:''' you can also use online encoding [http://www.motobit.com/util/base64-decoder-encoder.asp] though it's not very safe.&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;'''NOTE:''' you can also use online encoding &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;e.g. &lt;/ins&gt;[http://www.motobit.com/util/base64-decoder-encoder.asp] though it's not very safe.&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;OK, let's telnet in:&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;OK, let's telnet in:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:12914:newid:12915 --&gt;
&lt;/table&gt;</summary>
		<author><name>Wojtekl</name></author>	</entry>

	<entry>
		<id>http://www.freebsdwiki.net/index.php?title=SMTP,_testing_via_Telnet&amp;diff=12914&amp;oldid=prev</id>
		<title>Wojtekl: /* PLAIN method */</title>
		<link rel="alternate" type="text/html" href="http://www.freebsdwiki.net/index.php?title=SMTP,_testing_via_Telnet&amp;diff=12914&amp;oldid=prev"/>
				<updated>2012-07-07T13:03:14Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;PLAIN method&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 13:03, 7 July 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&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;'''IMPORTANT NOTE:''' notice that we escaped the '@' character with a backslash!&amp;#160; If you don't, Perl will try to evaluate it as an array, and while you won't get an error, you won't get a usable hash, either.&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;'''IMPORTANT NOTE:''' notice that we escaped the '@' character with a backslash!&amp;#160; If you don't, Perl will try to evaluate it as an array, and while you won't get an error, you won't get a usable hash, either.&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;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''NOTE:''' you can also use online encoding [http://www.motobit.com/util/base64-decoder-encoder.asp]though it's not very safe.&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;'''NOTE:''' you can also use online encoding [http://www.motobit.com/util/base64-decoder-encoder.asp] though it's not very safe.&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;OK, let's telnet in:&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;OK, let's telnet in:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:12913:newid:12914 --&gt;
&lt;/table&gt;</summary>
		<author><name>Wojtekl</name></author>	</entry>

	<entry>
		<id>http://www.freebsdwiki.net/index.php?title=SMTP,_testing_via_Telnet&amp;diff=12913&amp;oldid=prev</id>
		<title>Wojtekl: /* PLAIN method */</title>
		<link rel="alternate" type="text/html" href="http://www.freebsdwiki.net/index.php?title=SMTP,_testing_via_Telnet&amp;diff=12913&amp;oldid=prev"/>
				<updated>2012-07-07T13:02:23Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;PLAIN method&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 13:02, 7 July 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&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;'''IMPORTANT NOTE:''' notice that we escaped the '@' character with a backslash!&amp;#160; If you don't, Perl will try to evaluate it as an array, and while you won't get an error, you won't get a usable hash, either.&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;'''IMPORTANT NOTE:''' notice that we escaped the '@' character with a backslash!&amp;#160; If you don't, Perl will try to evaluate it as an array, and while you won't get an error, you won't get a usable hash, either.&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;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''NOTE:''' you can also use online encoding [http://www.motobit.com/util/base64-decoder-encoder.asp]&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;'''NOTE:''' you can also use online encoding [http://www.motobit.com/util/base64-decoder-encoder.asp]&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;though it's not very safe.&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;/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;OK, let's telnet in:&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;OK, let's telnet in:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 72:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 72:&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;Excellent!&amp;#160; Our authentication proceeded just fine.&amp;#160; If we would like, we can now send a message just as we would have in the regular SMTP session listed above; or we can simply '''quit''' now if all we wanted to test was the authentication itself.&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;Excellent!&amp;#160; Our authentication proceeded just fine.&amp;#160; If we would like, we can now send a message just as we would have in the regular SMTP session listed above; or we can simply '''quit''' now if all we wanted to test was the authentication itself.&lt;/div&gt;&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;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;===LOGIN method===&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;===LOGIN method===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:12912:newid:12913 --&gt;
&lt;/table&gt;</summary>
		<author><name>Wojtekl</name></author>	</entry>

	<entry>
		<id>http://www.freebsdwiki.net/index.php?title=SMTP,_testing_via_Telnet&amp;diff=12912&amp;oldid=prev</id>
		<title>Wojtekl at 11:30, 7 July 2012</title>
		<link rel="alternate" type="text/html" href="http://www.freebsdwiki.net/index.php?title=SMTP,_testing_via_Telnet&amp;diff=12912&amp;oldid=prev"/>
				<updated>2012-07-07T11:30:51Z</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 11:30, 7 July 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 45:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 45:&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;'''IMPORTANT NOTE:''' notice that we escaped the '@' character with a backslash!&amp;#160; If you don't, Perl will try to evaluate it as an array, and while you won't get an error, you won't get a usable hash, either.&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;'''IMPORTANT NOTE:''' notice that we escaped the '@' character with a backslash!&amp;#160; If you don't, Perl will try to evaluate it as an array, and while you won't get an error, you won't get a usable hash, either.&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;'''NOTE:''' you can also use online encoding [http://www.motobit.com/util/base64-decoder-encoder.asp]&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;/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;OK, let's telnet in:&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;OK, let's telnet in:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:11834:newid:12912 --&gt;
&lt;/table&gt;</summary>
		<author><name>Wojtekl</name></author>	</entry>

	<entry>
		<id>http://www.freebsdwiki.net/index.php?title=SMTP,_testing_via_Telnet&amp;diff=11834&amp;oldid=prev</id>
		<title>Jimbo at 14:19, 13 September 2010</title>
		<link rel="alternate" type="text/html" href="http://www.freebsdwiki.net/index.php?title=SMTP,_testing_via_Telnet&amp;diff=11834&amp;oldid=prev"/>
				<updated>2010-09-13T14:19:13Z</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 14:19, 13 September 2010&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 41:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 41:&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;First, we need to generate a base64-encoded string for the PLAIN method, in the form of [null]username[null]password :&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;First, we need to generate a base64-encoded string for the PLAIN method, in the form of [null]username[null]password :&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;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; # '''perl -MMIME::Base64 -e 'print encode_base64(&amp;quot;\&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;0user&lt;/del&gt;\@domain.com\&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;0password&lt;/del&gt;&amp;quot;);' '''&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;&amp;#160; # '''perl -MMIME::Base64 -e 'print encode_base64(&amp;quot;\&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;000user&lt;/ins&gt;\@domain.com\&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;000password&lt;/ins&gt;&amp;quot;);' '''&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;&amp;#160; AHVzZXJAZG9tYWluLmNvbQBwYXNzd29yZA==&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; AHVzZXJAZG9tYWluLmNvbQBwYXNzd29yZA==&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;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:10910:newid:11834 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jimbo</name></author>	</entry>

	<entry>
		<id>http://www.freebsdwiki.net/index.php?title=SMTP,_testing_via_Telnet&amp;diff=10910&amp;oldid=prev</id>
		<title>Jimbo at 19:04, 29 December 2008</title>
		<link rel="alternate" type="text/html" href="http://www.freebsdwiki.net/index.php?title=SMTP,_testing_via_Telnet&amp;diff=10910&amp;oldid=prev"/>
				<updated>2008-12-29T19:04:00Z</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:04, 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 problems with SMTP service - your own, or others - it is frequently very helpful to be able to &amp;quot;speak&amp;quot; to the SMTP server directly, rather than going through a mail client which won't necessarily tell you exactly what the SMTP server is saying.&amp;#160; You can easily do this with 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.&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 problems with SMTP service - your own, or others - it is frequently very helpful to be able to &amp;quot;speak&amp;quot; to the SMTP server directly, rather than going through a mail client which won't necessarily tell you exactly what the SMTP server is saying.&amp;#160; You can easily do this with 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.&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;Note that many ISPs do not allow outbound connections on port 25 to any SMTP server but their own - if you get timeouts when trying to connect to port 25, you should try port 587, which is the standard ESMTP port.&amp;#160; (Port 587 connections normally require SMTP AUTH, which is covered below.)&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;Note that many ISPs do not allow outbound connections on port 25 to any SMTP server but their own - if you get timeouts when trying to connect to port 25, you should try port 587, which is the standard ESMTP port.&amp;#160; (Port 587 connections normally require SMTP AUTH, which is covered below.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:10899:newid:10910 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jimbo</name></author>	</entry>

	<entry>
		<id>http://www.freebsdwiki.net/index.php?title=SMTP,_testing_via_Telnet&amp;diff=10899&amp;oldid=prev</id>
		<title>Jimbo: /* See Also */</title>
		<link rel="alternate" type="text/html" href="http://www.freebsdwiki.net/index.php?title=SMTP,_testing_via_Telnet&amp;diff=10899&amp;oldid=prev"/>
				<updated>2008-12-29T18:49:20Z</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:49, 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 96:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 96:&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;==See Also==&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;==See Also==&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;[[Daemons, 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;[[Daemons, 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 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;[[IMAP, 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;[[IMAP, 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 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]]&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]]&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;[[HTTP, testing via Telnet]]&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;/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;[[Category:FreeBSD for Servers]] [[Category:Common Tasks]]&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;[[Category:FreeBSD for Servers]] [[Category:Common Tasks]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:10896:newid:10899 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jimbo</name></author>	</entry>

	<entry>
		<id>http://www.freebsdwiki.net/index.php?title=SMTP,_testing_via_Telnet&amp;diff=10896&amp;oldid=prev</id>
		<title>66.83.151.234 at 18:45, 29 December 2008</title>
		<link rel="alternate" type="text/html" href="http://www.freebsdwiki.net/index.php?title=SMTP,_testing_via_Telnet&amp;diff=10896&amp;oldid=prev"/>
				<updated>2008-12-29T18:45:14Z</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 problems with SMTP service - your own, or others - it is frequently very helpful to be able to &amp;quot;speak&amp;quot; to the SMTP server directly, rather than going through a mail client which won't necessarily tell you exactly what the SMTP server is saying.  You can easily do this with the '''telnet''' client.&lt;br /&gt;
&lt;br /&gt;
Note that many ISPs do not allow outbound connections on port 25 to any SMTP server but their own - if you get timeouts when trying to connect to port 25, you should try port 587, which is the standard ESMTP port.  (Port 587 connections normally require SMTP AUTH, which is covered below.)&lt;br /&gt;
&lt;br /&gt;
==Testing an SMTP service via telnet==&lt;br /&gt;
&lt;br /&gt;
 ph34r# '''telnet localhost 25'''&lt;br /&gt;
 Trying 127.0.0.1...&lt;br /&gt;
 Connected to localhost.localdomain.&lt;br /&gt;
 Escape character is '^]'.&lt;br /&gt;
 220  ESMTP&lt;br /&gt;
 '''HELO justtesting'''&lt;br /&gt;
 250&lt;br /&gt;
 '''MAIL FROM: me@telnettingin.com'''&lt;br /&gt;
 250 ok&lt;br /&gt;
 '''RCPT TO: postmaster@mail.getsdeliveredhere.net'''&lt;br /&gt;
 250 ok&lt;br /&gt;
 '''DATA'''&lt;br /&gt;
 354 go ahead&lt;br /&gt;
 '''To: postmaster@mail.getsdeliveredhere.net'''&lt;br /&gt;
 '''From: telnetclient@mail.getsdeliveredhere.net'''&lt;br /&gt;
 '''Subject: this is a test message'''&lt;br /&gt;
 '''Date: Thu, 21 Jun 2007 11:11:40 -0400'''&lt;br /&gt;
 '''Just testing SMTP functionality by telnetting in to port 25.  I'll end this message now'''&lt;br /&gt;
 '''by entering in a line with nothing but a period in it and hitting return.'''&lt;br /&gt;
 '''.'''&lt;br /&gt;
 250 ok 1103093638 qp 87827&lt;br /&gt;
 '''QUIT'''&lt;br /&gt;
 221&lt;br /&gt;
 Connection closed by foreign host.&lt;br /&gt;
&lt;br /&gt;
Okay - our [[SMTP]] server just accepted a telnet connection, responded like a mailserver, and accepted a nice little test email for delivery.  (Any response other than a '''250 ok''' would represent an error of one sort or another.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Testing SMTP AUTH via telnet==&lt;br /&gt;
&lt;br /&gt;
===PLAIN method===&lt;br /&gt;
&lt;br /&gt;
First, we need to generate a base64-encoded string for the PLAIN method, in the form of [null]username[null]password :&lt;br /&gt;
&lt;br /&gt;
 # '''perl -MMIME::Base64 -e 'print encode_base64(&amp;quot;\0user\@domain.com\0password&amp;quot;);' '''&lt;br /&gt;
 AHVzZXJAZG9tYWluLmNvbQBwYXNzd29yZA==&lt;br /&gt;
&lt;br /&gt;
'''IMPORTANT NOTE:''' notice that we escaped the '@' character with a backslash!  If you don't, Perl will try to evaluate it as an array, and while you won't get an error, you won't get a usable hash, either.&lt;br /&gt;
&lt;br /&gt;
OK, let's telnet in:&lt;br /&gt;
&lt;br /&gt;
 ph34r# '''telnet localhost 25'''&lt;br /&gt;
 Trying 127.0.0.1...&lt;br /&gt;
 Connected to localhost.privatedns.com.&lt;br /&gt;
 Escape character is '^]'.&lt;br /&gt;
 220 mail.server.local ESMTP&lt;br /&gt;
&lt;br /&gt;
Great, we got a banner.  OK, now let's tell it we want to use extended SMTP with the &amp;quot;ehlo&amp;quot; command:&lt;br /&gt;
&lt;br /&gt;
 '''ehlo test'''&lt;br /&gt;
 250-mail.server.local&lt;br /&gt;
 250-AUTH LOGIN PLAIN&lt;br /&gt;
 250-AUTH LOGIN PLAIN&lt;br /&gt;
 250-STARTTLS&lt;br /&gt;
 250-PIPELINING&lt;br /&gt;
 250 8BITMIME&lt;br /&gt;
&lt;br /&gt;
Alright.  Good.  Notice that we support two AUTH methods: LOGIN, and PLAIN.  We'll issue an AUTH PLAIN command, using the string we generated for it above:&lt;br /&gt;
&lt;br /&gt;
 '''AUTH PLAIN AHVzZXJAZG9tYWluLmNvbQBwYXNzd29yZA=='''&lt;br /&gt;
 235 ok, go ahead (#2.0.0)&lt;br /&gt;
&lt;br /&gt;
Excellent!  Our authentication proceeded just fine.  If we would like, we can now send a message just as we would have in the regular SMTP session listed above; or we can simply '''quit''' now if all we wanted to test was the authentication itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===LOGIN method===&lt;br /&gt;
&lt;br /&gt;
If we want to try the LOGIN method, we'll need to generate separate base64-encoded strings for the username and the password:&lt;br /&gt;
&lt;br /&gt;
 ph34r# '''perl -MMIME::Base64 -e 'print encode_base64(&amp;quot;user\@domain.com&amp;quot;);' '''&lt;br /&gt;
 dXNlckBkb21haW4uY29t&lt;br /&gt;
 ph34r# '''perl -MMIME::Base64 -e 'print encode_base64(&amp;quot;password&amp;quot;);' '''&lt;br /&gt;
 cGFzc3dvcmQ=&lt;br /&gt;
&lt;br /&gt;
Now we telnet back in, '''ehlo''' as before, and this time authenticate using the LOGIN method:&lt;br /&gt;
&lt;br /&gt;
 '''AUTH LOGIN'''&lt;br /&gt;
 334 VXNlcm5hbWU6&lt;br /&gt;
 '''dXNlckBkb21haW4uY29t'''&lt;br /&gt;
 334 UGFzc3dvcmQ6&lt;br /&gt;
 '''cGFzc3dvcmQ='''&lt;br /&gt;
 235 2.0.0 Authentication successful&lt;br /&gt;
&lt;br /&gt;
Again, excellent.  (If you were curious, the 334 and 235 SMTP messages are also Base64 encoded, and decode to &amp;quot;Username:&amp;quot; and &amp;quot;Password:&amp;quot;.)  You can either send a test message with the same commands as in the plain SMTP example at the top, or you can simply '''quit''' if you just wanted to test the authentication.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[Daemons, testing via Telnet]]&lt;br /&gt;
[[IMAP, testing via Telnet]]&lt;br /&gt;
[[POP3, testing via Telnet]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FreeBSD for Servers]] [[Category:Common Tasks]]&lt;/div&gt;</summary>
		<author><name>66.83.151.234</name></author>	</entry>

	</feed>