{"id":506,"date":"2013-12-04T14:53:17","date_gmt":"2013-12-04T14:53:17","guid":{"rendered":"https:\/\/cpanelplesk.com\/wp62\/?p=506"},"modified":"2016-06-10T04:20:26","modified_gmt":"2016-06-10T04:20:26","slug":"how-to-test-mail-from-windows-command-prompt-cmd","status":"publish","type":"post","link":"https:\/\/cpanelplesk.com\/wp62\/how-to-test-mail-from-windows-command-prompt-cmd\/","title":{"rendered":"How to test mail from windows command prompt (cmd)"},"content":{"rendered":"<p>Some times we have to see how a remote mail server responding to SMTP connection from our Plesk server. \u00a0Yes! logs are always there to see whats going on, but using telnet seems very handy to me. It takes less time than scanning logs and lets use of mouse too<\/p>\n<p>Lets use cpanelplesk.com as example here. As my emails from local server to admin@cpanelplesk.com were bouncing and here is what I did.<\/p>\n<p>Open command prompt (Win + R and then in run box, type &#8220;cmd&#8221; to get the command prompt). Then on command prompt<\/p>\n<p>1. telnet to remove mail server<br \/>\n[box style=&#8217;note&#8217;] telnet cpanelplesk.com 25 [\/box]<\/p>\n<p>The server where cPanelPlesk.com is hosted, returned with following banner.<\/p>\n<p>[box style=&#8217;note&#8217;]220-xxxx ESMTP Exim 4.82 #2 Wed, 04 Dec 2013 08:18:22 -0600<br \/>\n220-We do not authorize the use of this system to transport unsolicited,<br \/>\n220 and\/or bulk e-mail.\u00a0[\/box]<\/p>\n<p><span style=\"line-height: 1.5;\">2. At this point, lets tell remote server about the domain you will send email from<\/span><\/p>\n<p>[box style=&#8217;note&#8217;] HELO local.domain-name.com\u00a0[\/box]<\/p>\n<p><span style=\"line-height: 1.5;\">[box style=&#8217;info&#8217;]<\/span>Although the domain name here should be fully qualified domain name as seen by other devices. But if you do not remember it or it is too long and you are too lazy to type; you can type any FQDN as remote server will believe in what you said.<span style=\"line-height: 1.5;\">\u00a0[\/box]<\/span><\/p>\n<p>Server Response: [box style=&#8217;note&#8217;] 250 l3.cpanelplesk.com Hello local.domai in-name.com [39.42.10.82]\u00a0[\/box]<\/p>\n<p>3.\u00a0Now give the senders email address<\/p>\n<p>[box style=&#8217;note&#8217;] MAIL FROM:my-email@my-domain.com\u00a0[\/box]<\/p>\n<p>It responded with OK, so far so good. seems nothing wrong.<\/p>\n<p>Server Response:<\/p>\n<p>[box style=&#8217;note&#8217;] 250 OK\u00a0[\/box]<\/p>\n<p>4. Its time to give recepient email<\/p>\n<p>[box style=&#8217;note&#8217;] RCPT TO:admin@cpanelplesk.com\u00a0[\/box]<\/p>\n<p>and then it refused like<br \/>\nServer Response:<\/p>\n<p>[box style=&#8217;note&#8217;]550-&#8220;JunkMail rejected &#8211; (local.domai in-name.com) [39.42.10.82]:64210 is<br \/>\n550 in an RBL, see http:\/\/www.spamhaus.org\/query\/bl?ip=39.42.10.82&#8221;\u00a0[\/box]<span style=\"line-height: 1.5;\">\u00a0<\/span><\/p>\n<p>In 4 steps and less than 30 seconds, I knew exactly why my mail was being rejected. Please comment with your ideas and quicker ways to find out about mail errors.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some times we have to see how a remote mail server responding to SMTP connection from our Plesk server. \u00a0Yes! logs are always there to see whats going on, but using telnet seems very handy to me. It takes less time than scanning logs and lets use of mouse too Lets use cpanelplesk.com as example [&#8230;]<\/p>\n<p><a class=\"understrap-read-more-link\" href=\"https:\/\/cpanelplesk.com\/wp62\/how-to-test-mail-from-windows-command-prompt-cmd\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-506","post","type-post","status-publish","format-standard","hentry","category-plesk"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to test mail from windows command prompt (cmd) - cPanel Plesk<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cpanelplesk.com\/wp62\/how-to-test-mail-from-windows-command-prompt-cmd\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to test mail from windows command prompt (cmd) - cPanel Plesk\" \/>\n<meta name=\"twitter:description\" content=\"Some times we have to see how a remote mail server responding to SMTP connection from our Plesk server. \u00a0Yes! logs are always there to see whats going on, but using telnet seems very handy to me. It takes less time than scanning logs and lets use of mouse too Lets use cpanelplesk.com as example [...]Continue Reading...\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Farooq Omer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-test-mail-from-windows-command-prompt-cmd\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-test-mail-from-windows-command-prompt-cmd\/\"},\"author\":{\"name\":\"Farooq Omer\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"headline\":\"How to test mail from windows command prompt (cmd)\",\"datePublished\":\"2013-12-04T14:53:17+00:00\",\"dateModified\":\"2016-06-10T04:20:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-test-mail-from-windows-command-prompt-cmd\/\"},\"wordCount\":355,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"articleSection\":[\"Plesk\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-test-mail-from-windows-command-prompt-cmd\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-test-mail-from-windows-command-prompt-cmd\/\",\"name\":\"How to test mail from windows command prompt (cmd) - cPanel Plesk\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\"},\"datePublished\":\"2013-12-04T14:53:17+00:00\",\"dateModified\":\"2016-06-10T04:20:26+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-test-mail-from-windows-command-prompt-cmd\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cpanelplesk.com\/wp62\/how-to-test-mail-from-windows-command-prompt-cmd\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-test-mail-from-windows-command-prompt-cmd\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cpanelplesk.com\/wp62\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to test mail from windows command prompt (cmd)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/\",\"name\":\"cPanel Plesk\",\"description\":\"Blog on famous hosting control panels\",\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\",\"name\":\"Farooq Omer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"width\":300,\"height\":44,\"caption\":\"Farooq Omer\"},\"logo\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/cpanelplesk.com\/wp62\/author\/fokado\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to test mail from windows command prompt (cmd) - cPanel Plesk","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:\/\/cpanelplesk.com\/wp62\/how-to-test-mail-from-windows-command-prompt-cmd\/","twitter_card":"summary_large_image","twitter_title":"How to test mail from windows command prompt (cmd) - cPanel Plesk","twitter_description":"Some times we have to see how a remote mail server responding to SMTP connection from our Plesk server. \u00a0Yes! logs are always there to see whats going on, but using telnet seems very handy to me. It takes less time than scanning logs and lets use of mouse too Lets use cpanelplesk.com as example [...]Continue Reading...","twitter_misc":{"Written by":"Farooq Omer","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-test-mail-from-windows-command-prompt-cmd\/#article","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-test-mail-from-windows-command-prompt-cmd\/"},"author":{"name":"Farooq Omer","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"headline":"How to test mail from windows command prompt (cmd)","datePublished":"2013-12-04T14:53:17+00:00","dateModified":"2016-06-10T04:20:26+00:00","mainEntityOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-test-mail-from-windows-command-prompt-cmd\/"},"wordCount":355,"commentCount":0,"publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"articleSection":["Plesk"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-test-mail-from-windows-command-prompt-cmd\/","url":"https:\/\/cpanelplesk.com\/wp62\/how-to-test-mail-from-windows-command-prompt-cmd\/","name":"How to test mail from windows command prompt (cmd) - cPanel Plesk","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#website"},"datePublished":"2013-12-04T14:53:17+00:00","dateModified":"2016-06-10T04:20:26+00:00","breadcrumb":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-test-mail-from-windows-command-prompt-cmd\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cpanelplesk.com\/wp62\/how-to-test-mail-from-windows-command-prompt-cmd\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-test-mail-from-windows-command-prompt-cmd\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cpanelplesk.com\/wp62\/"},{"@type":"ListItem","position":2,"name":"How to test mail from windows command prompt (cmd)"}]},{"@type":"WebSite","@id":"https:\/\/cpanelplesk.com\/wp62\/#website","url":"https:\/\/cpanelplesk.com\/wp62\/","name":"cPanel Plesk","description":"Blog on famous hosting control panels","publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13","name":"Farooq Omer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","width":300,"height":44,"caption":"Farooq Omer"},"logo":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/"},"url":"https:\/\/cpanelplesk.com\/wp62\/author\/fokado\/"}]}},"_links":{"self":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/comments?post=506"}],"version-history":[{"count":0,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/506\/revisions"}],"wp:attachment":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media?parent=506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/categories?post=506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/tags?post=506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}