{"id":341,"date":"2010-03-22T10:55:39","date_gmt":"2010-03-22T17:55:39","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=341"},"modified":"2019-04-14T10:05:22","modified_gmt":"2019-04-14T17:05:22","slug":"test-imap-via-telnet","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=341","title":{"rendered":"Testing email via telnet or openssl."},"content":{"rendered":"<p>To send an email via telnet for testing:<br \/>\ntelnet <em>SMTP Server Name<\/em> 25<br \/>\nEHLO mydomain.tld<br \/>\nMAIL FROM: my@from.address<br \/>\nRCPT TO: my@to.address<br \/>\nDATA<br \/>\nHere you can type the body of the message.<br \/>\n.<\/p>\n<p>To the same thing, but with From: To: and Subject: headers:<br \/>\ntelnet <em>SMTP Server Name<\/em> 25<br \/>\nEHLO mydomain.tld<br \/>\nMAIL FROM: my@from.address<br \/>\nRCPT TO: my@to.address<br \/>\nDATA<br \/>\nFrom: my@from.address<br \/>\nTo: my@to.address<br \/>\nSubject: Here is a subject.<\/p>\n<p>Here you can type the body of the message.<br \/>\n.<\/p>\n<p>Here is how you can do a basic test of an IMAP server via telnet:<\/p>\n<p>telnet <em>IMAP Server Name<\/em> 143<br \/>\n? LOGIN <em>username password<\/em><br \/>\n? LIST &#8220;&#8221; &#8220;*&#8221;<br \/>\n? LOGOUT<\/p>\n<p>This will log you in and list the accounts mail folders.  Note: This is testing a basic unencrypted login to an IMAP server.  Not the way you would want to implement in production, unless implement via localhost.<\/p>\n<p>If you want to test your SSL configuration use openssl instead of telnet:<br \/>\nopenssl s_client -connect <em>hostname<\/em>:<em>portnumber<\/em><\/p>\n<p>For example:<br \/>\nopenssl s_client -connect <em>SMTP Server Name<\/em>:<em>465<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To send an email via telnet for testing: telnet SMTP Server Name 25 EHLO mydomain.tld MAIL FROM: my@from.address RCPT TO: my@to.address DATA Here you can type the body of the message. . To the same thing, but with From: To: and Subject: headers: telnet SMTP Server Name 25 EHLO mydomain.tld MAIL FROM: my@from.address RCPT TO: [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[67,484,161,69,68],"class_list":["post-341","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-imap","tag-openssl","tag-pop","tag-telnet","tag-test"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=341"}],"version-history":[{"count":5,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/341\/revisions"}],"predecessor-version":[{"id":1728,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/341\/revisions\/1728"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}