{"id":823,"date":"2013-03-07T20:30:26","date_gmt":"2013-03-07T20:30:26","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2013\/03\/07\/communicating-email-server-telnet\/"},"modified":"2021-08-16T23:19:49","modified_gmt":"2021-08-17T03:19:49","slug":"communicating-email-server-telnet","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/","title":{"rendered":"Communicating with an email server using TELNET"},"content":{"rendered":"<p>You can diagnose email errors through the <strong>Linux command line <\/strong>using the <strong>TELNET<\/strong> command. You can communicate back and forth with the receiving server with <strong>TELNET<\/strong> to see why the email is being rejected to verify email bounce errors or to check if the server email ports are working. Below are the steps use <strong>TELNET<\/strong> to communicate with the server.<\/p>\n<p class=\"alert\"><strong>Important!<\/strong> In the code below, the <span style=\"color: #ff0000;\">Red<\/span> commands are what you type and the <span style=\"color: #0066dd;\">Blue<\/span> is what the server should respond back with. Also, this article is geared towards VPS and Dedicated server accounts; however, anyone can use the Linux command line on their local Linux computer. For information on shell access <a href=\"\/support\/server\/ssh\/how-to-login-ssh\/\" target=\"_blank\" rel=\"noopener\">click here<\/a>.<\/p>\n<p>You can use TELNET with Windows command line; however, you will need to <a href=\"\/support\/website\/enable-telnet\/\" target=\"_blank\" rel=\"noopener\">enable telnet on the Windows computer<\/a>.<\/p>\n<h2>TELNET to an email server<\/h2>\n<p>You can communicate with a server using <strong>TELNET<\/strong> to find the exact error on the server in question. In this case, We will see if we can replicate the error when emails sent from <em>name@example.com<\/em> are bouncing sending to <em>notexample.com<\/em>. The basic syntax is as follows. (You can check any server port using telnet, not just port 25)<\/p>\n<pre style=\"margin-left: 20px;\">Command       Domain or IP      Port # <span style=\"color: #ff0000;\">telnet       example.com     25<\/span> <\/pre>\n<p><strong>TELNET<\/strong> to the server that is refusing the email. In this case, the <em>notexamplen.com<\/em> server is rejecting the email.<\/p>\n<pre style=\"margin-left: 20px; color: #0066cc;\">[root@vps#### ~]$ <span style=\"color: #ff0000;\">telnet notexample.com 25<\/span> Trying 25.22.80.62... Connected to notexample.com. Escape character is '^]'. 220-fox.somenameserver.com ESMTP Exim 4.80 #2 Thu, 07 Mar 2013 08:06:11 -0600 220-We do not authorize the use of this system to transport unsolicited, 220 and\/or bulk e-mail.<\/pre>\n<p>Type <strong>HELO<\/strong> <strong>localhost<\/strong> to receive a response from the receiving server. This will display the server name and IP.<\/p>\n<pre style=\"margin-left: 20px; color: #0066cc;\"><span style=\"color: #ff0000;\">HELO localhost<\/span> 250 fox.somenameserver.com Hello localhost [205.134.240.204]<\/pre>\n<p>You can also type <strong>EHLO<\/strong> <strong>localhost<\/strong> to receive more information for the receiving server. This shows the extended server response with server name IP and some supported settings.<\/p>\n<pre style=\"margin-left: 20px; color: #0066cc;\"><span style=\"color: #ff0000;\">EHLO localhost<\/span> 250-fox.somenameserver.com Hello localhost [205.134.240.204] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP<\/pre>\n<p>Now that you verified that the server is communicating back and forth, next, ask the server to check the sending email address. Type <strong>MAIL FROM: &lt;name@example.com&gt; FROM: SIZE=100<\/strong> ( Supplement the <em>name@example.com<\/em> with the email address you are getting bounces with) and hit enter.<\/p>\n<pre style=\"margin-left: 20px; color: #0066cc;\"><span style=\"color: #ff0000;\">MAIL FROM: &lt;name@example.com&gt; SIZE=100<\/span> 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1) Connection closed by foreign host.<\/pre>\n<p>The entire <strong>TELNET<\/strong> conversation should look like the following. <\/p>\n<pre style=\"margin-left: 20px;\">[root@vps#### ~]$ <span style=\"color: #ff0000;\">telnet notexample.com 25<\/span> <span style=\"color: #0066cc;\">Trying 25.22.80.62... Connected to notexample.com. Escape character is '^]'. 220-fox.somenameserver.com ESMTP Exim 4.80 #2 Thu, 07 Mar 2013 08:06:11 -0600 220-We do not authorize the use of this system to transport unsolicited, 220 and\/or bulk e-mail.<\/span> <span style=\"color: #ff0000;\">HELO localhost<\/span> <span style=\"color: #0066cc;\">250 fox.somenameserver.com Hello localhost [205.134.240.204]<\/span> <span style=\"color: #ff0000;\">EHLO localhost<\/span> <span style=\"color: #0066cc;\">250-fox.somenameserver.com Hello localhost [205.134.240.204] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP<\/span> <span style=\"color: #ff0000;\">MAIL FROM: &lt;name@example.com&gt; SIZE=100<\/span> <span style=\"color: #0066cc;\"><strong>550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)<\/strong><\/span> <span style=\"color: #0066cc;\"><strong>Connection closed by foreign host.<\/strong><\/span><\/pre>\n<p>The example before shows that the receiving server <em>notexample.com<\/em> is rejecting email from <em>name@example.com<\/em> with a &#8220;<em>550 No Such User Here<\/em>&#8221; error.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can diagnose email errors through the Linux command line using the TELNET command. You can communicate back and forth with the receiving server with TELNET to see why the email is being rejected to verify email bounce errors or to check if the server email ports are working. Below are the steps use TELNET<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/\"> Read More ><\/a><\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-823","post","type-post","status-publish","format-standard","hentry","category-email"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Communicating with an email server using TELNET | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"When diagnosing email problems it can be a useful tool to check an email servers connection using TELNET. This article will show you how.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Communicating with an email server using TELNET | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"When diagnosing email problems it can be a useful tool to check an email servers connection using TELNET. This article will show you how.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2013-03-07T20:30:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-17T03:19:49+00:00\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/0ba9f3ef6fadef71df5aa120ff996c41\"},\"headline\":\"Communicating with an email server using TELNET\",\"datePublished\":\"2013-03-07T20:30:26+00:00\",\"dateModified\":\"2021-08-17T03:19:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/\"},\"wordCount\":354,\"commentCount\":10,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Email\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/\",\"name\":\"Communicating with an email server using TELNET | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2013-03-07T20:30:26+00:00\",\"dateModified\":\"2021-08-17T03:19:49+00:00\",\"description\":\"When diagnosing email problems it can be a useful tool to check an email servers connection using TELNET. This article will show you how.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Communicating with an email server using TELNET\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/0ba9f3ef6fadef71df5aa120ff996c41\",\"name\":\"InMotion Hosting Contributor\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/jamesr\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Communicating with an email server using TELNET | InMotion Hosting","description":"When diagnosing email problems it can be a useful tool to check an email servers connection using TELNET. This article will show you how.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/","og_locale":"en_US","og_type":"article","og_title":"Communicating with an email server using TELNET | InMotion Hosting","og_description":"When diagnosing email problems it can be a useful tool to check an email servers connection using TELNET. This article will show you how.","og_url":"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2013-03-07T20:30:26+00:00","article_modified_time":"2021-08-17T03:19:49+00:00","author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/0ba9f3ef6fadef71df5aa120ff996c41"},"headline":"Communicating with an email server using TELNET","datePublished":"2013-03-07T20:30:26+00:00","dateModified":"2021-08-17T03:19:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/"},"wordCount":354,"commentCount":10,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Email"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/","url":"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/","name":"Communicating with an email server using TELNET | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2013-03-07T20:30:26+00:00","dateModified":"2021-08-17T03:19:49+00:00","description":"When diagnosing email problems it can be a useful tool to check an email servers connection using TELNET. This article will show you how.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Communicating with an email server using TELNET"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/0ba9f3ef6fadef71df5aa120ff996c41","name":"InMotion Hosting Contributor","url":"https:\/\/www.inmotionhosting.com\/support\/author\/jamesr\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/823","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=823"}],"version-history":[{"count":2,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/823\/revisions"}],"predecessor-version":[{"id":84865,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/823\/revisions\/84865"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}