{"id":170,"date":"2009-03-10T05:33:30","date_gmt":"2009-03-09T22:33:30","guid":{"rendered":"http:\/\/blog.binus-edu.com\/?p=170"},"modified":"2009-04-02T10:56:29","modified_gmt":"2009-04-02T03:56:29","slug":"how-to-send-smtp-email-using-telnet","status":"publish","type":"post","link":"https:\/\/adityo.blog.binusian.org\/?p=170","title":{"rendered":"How to send SMTP email using telnet"},"content":{"rendered":"<p>What is SMTP ?<\/p>\n<p>A protocol to allow mail servers to exchange messages with each other.<\/p>\n<p>What is telnet ?<\/p>\n<p>Telnet is a user command and an underlying <a href=\"http:\/\/searchnetworking.techtarget.com\/sDefinition\/0,,sid7_gci214173,00.html\" class=\"inline\">TCP\/IP<\/a> <a href=\"http:\/\/searchnetworking.techtarget.com\/sDefinition\/0,,sid7_gci212839,00.html\" class=\"inline\">protocol<\/a> for accessing remote computers<\/p>\n<p>mail specification that i use:<\/p>\n<p>ii&nbsp; sendmail&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8.14.2-2build1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; powerful, efficient, and scalable Mail Trans<br \/>\nii&nbsp; sendmail-base&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8.14.2-2build1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; powerful, efficient, and scalable Mail Trans<br \/>\nii&nbsp; sendmail-bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8.14.2-2build1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; powerful, efficient, and scalable Mail Trans<br \/>\nii&nbsp; sendmail-cf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8.14.2-2build1<\/p>\n<p>Okay here is what i do on my shell<\/p>\n<p># telnet localhost 25<br \/>\nTrying 127.0.0.1&#8230;<br \/>\nConnected to localhost.<br \/>\nEscape character is &#8216;^]&#8217;.<br \/>\n220 blog.test.org ESMTP Sendmail 8.14.2\/8.14.2\/Debian-2build1; Tue, 10 Mar 2009 12:25:30 +0700; (No UCE\/UBE) logging access from: localhost(OK)-localhost [127.0.0.1]<br \/>\nhelo blog.test.org<br \/>\n250 binusianblog.blog.binusian.org Hello localhost [127.0.0.1], pleased to meet you<br \/>\nmail from:blog.test.org<br \/>\n250 2.1.0 test@blog.binusian.org&#8230; Sender ok<br \/>\nrcpt to: testing@gmail.com<br \/>\n250 2.1.5 testing@gmail.com&#8230; Recipient ok<br \/>\ndata<br \/>\n354 Enter mail, end with &quot;.&quot; on a line by itself<br \/>\nthis is a test using telnet.<br \/>\n.<br \/>\n250 2.0.0 n2A5PUKw012413 Message accepted for delivery<br \/>\nquit<br \/>\n221 2.0.0 binusianblog.blog.binusian.org closing connection<br \/>\nConnection closed by foreign host.<br \/>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is SMTP ? A protocol to allow mail servers to exchange messages with each other. What is telnet ? Telnet is a user command and an underlying TCP\/IP protocol for accessing remote computers mail specification that i use: ii&nbsp; sendmail&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8.14.2-2build1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; powerful, efficient, and scalable Mail Trans ii&nbsp; sendmail-base&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8.14.2-2build1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; powerful, efficient, and scalable [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[89],"tags":[901],"class_list":["post-170","post","type-post","status-publish","format-standard","hentry","category-mail","tag-telnet-command"],"_links":{"self":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=170"}],"version-history":[{"count":2,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/170\/revisions"}],"predecessor-version":[{"id":189,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/170\/revisions\/189"}],"wp:attachment":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}