{"id":309,"date":"2021-05-17T05:25:37","date_gmt":"2021-05-17T05:25:37","guid":{"rendered":"https:\/\/arzhost.com\/blogs\/?p=309"},"modified":"2025-09-24T12:53:41","modified_gmt":"2025-09-24T07:53:41","slug":"test-smtp-support-with-sendmail","status":"publish","type":"post","link":"https:\/\/arzhost.com\/blogs\/test-smtp-support-with-sendmail\/","title":{"rendered":"How to Test SMTP Support with Sendmail"},"content":{"rendered":"<p>Routinely you need to test email and if it&#8217;s working. With these orders you can test email stream at a smooth level to sort out which&#8217;s destroyed and where. It is used to course email over the Internet to a specific receiver, and ought to be possible by running the send mail request in a Shell environment. How to Test SMTP Support with Sendmail?<\/p>\n<p>\u00a0<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_74 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/arzhost.com\/blogs\/test-smtp-support-with-sendmail\/#Circumstance\" >Circumstance:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/arzhost.com\/blogs\/test-smtp-support-with-sendmail\/#Ping_SMTP_expert_to_check_worker_accessibility\" >Ping SMTP expert to check worker accessibility.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/arzhost.com\/blogs\/test-smtp-support-with-sendmail\/#Testing_SMTP_accessibility_with_Send_Email_Action\" >Testing SMTP accessibility with Send Email Action<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/arzhost.com\/blogs\/test-smtp-support-with-sendmail\/#Direct_model\" >Direct model<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/arzhost.com\/blogs\/test-smtp-support-with-sendmail\/#Adding_to_and_from_addresses\" >Adding to and from addresses<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Circumstance\"><\/span>Circumstance:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Your space: mydomain.com Domain you wish to transport off: theirdomain.com<\/p>\n<p>Realize that different specialists will devise different great news anyway you should get something. If nothing comes up now there are 2 likely issues. Port 25 is being frustrated at your firewall, or their laborer isn&#8217;t responding. Endeavor a substitute territory, accepting that works, it&#8217;s not you.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Ping_SMTP_expert_to_check_worker_accessibility\"><\/span><strong>Ping SMTP expert to check worker accessibility. <\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>As the essential SMTP accessibility test, let us have a go at using ping request. We need to open Windows request brief:<\/p>\n<p>Open the Start Menu and type cmd in Search input. Snap on cmd.exe in the summary.<\/p>\n<ul>\n<li><strong>ping mail.example.com <\/strong><\/li>\n<\/ul>\n<p>When in Command brief, type ping mail.example.com where mail.example.com is the name or IP address of SMTP specialist you hope to use. Consistently, if SMTP laborer is reachable, it should reply.<\/p>\n<p>In case SMTP laborer isn&#8217;t reachable, the ping sales will break. In any case, some SMTP laborers are intended to unequivocally impede ping requests. Henceforth, whether or not the ping package breaks, you ought to regardless endeavor to telnet the SMTP specialist with the exception of if sure without question that ping request should not be blocked.<\/p>\n<ul>\n<li><strong>Pinging mail.example.com [192.168.0.33] with 32 bytes of data:<\/strong><\/li>\n<li><strong>Answer from 192.168.0.33: bytes=32 time=56ms TTL=54<\/strong><\/li>\n<li><strong>Answer from 192.168.0.33: bytes=32 time=56ms TTL=54<\/strong><\/li>\n<li><strong>Answer from 192.168.0.33: bytes=32 time=56ms TTL=54<\/strong><\/li>\n<li><strong>Answer from 192.168.0.33: bytes=32 time=57ms TTL=54<\/strong><\/li>\n<li><strong>Ping estimations for 192.168.0.33:<\/strong><\/li>\n<li><strong>Packs: Sent = 4, Received = 4, Lost = 0 (0% hardship),<\/strong><\/li>\n<li><strong>Vague round trip times in milli-seconds:<\/strong><\/li>\n<li><strong>Least = 56ms, Maximum = 57ms, Average = 56ms<\/strong><\/li>\n<\/ul>\n<p><strong>\u00a0<\/strong><\/p>\n<p>Probably in any case, in case ping request breaks, the specialist address isn&#8217;t reachable. If SMTP specialist doesn&#8217;t work, disregarding the way that its IP address is reachable by ping request, the SMTP laborer programming most likely will not be running on the foreordained machine.<\/p>\n<ul>\n<li><strong>ping mail.example.com <\/strong><\/li>\n<li><strong>Pinging mail.example.com [192.168.0.33] with 32 bytes of data: <\/strong><\/li>\n<li><strong>Answer from 192.168.0.33: Destination have out of reach. <\/strong><\/li>\n<li><strong>Answer from 192.168.0.33: Destination have out of reach. <\/strong><\/li>\n<li><strong>Requesting facilitated out. <\/strong><\/li>\n<li><strong>Requesting facilitated out. <\/strong><\/li>\n<li><strong>Ping estimations for 192.168.0.33: <\/strong><\/li>\n<li><strong>Groups: Sent = 4, Received = 0, Lost = 4 (100% incident)<\/strong><\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Testing_SMTP_accessibility_with_Send_Email_Action\"><\/span><strong>Testing SMTP accessibility with Send Email Action<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Whether or not ping and telnet orders return totally triumphs when testing SMTP laborer accessibility, some various issues may persevere.<\/p>\n<p><a href=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/testing-smtp-accessibility-with-send-email-action.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone  wp-image-13748\" title=\"testing smtp accessibility with send email action\" src=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/testing-smtp-accessibility-with-send-email-action-300x157.jpg\" alt=\"testing smtp accessibility with send email action\" width=\"734\" height=\"384\" srcset=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/testing-smtp-accessibility-with-send-email-action-300x157.jpg 300w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/testing-smtp-accessibility-with-send-email-action-1024x536.jpg 1024w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/testing-smtp-accessibility-with-send-email-action-768x402.jpg 768w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/testing-smtp-accessibility-with-send-email-action.jpg 1200w\" sizes=\"(max-width: 734px) 100vw, 734px\" \/><\/a><\/p>\n<p>In any case, let us make a Task that will test SMTP relationship whenever it is affected. Open Automation Workshop and snap New Task\u2026 in File menu. This will open the Task Wizard. In the wake of analyzing the Welcome screen, click Next. Snap Next again to skirt the Trigger screen (aside from on the off chance that you may need to course of action irregular SMTP testing by adding Task Scheduler trigger).<\/p>\n<p>In Actions tab, press the Add button (this will open Add Action window) and select Send Email from Email grouping, and snap OK\u2014this will open Send Email Action settings.<\/p>\n<p>By then, open Server tab and pick either default SMTP specialist (set in of Automation Workshop options) or custom SMTP laborer. In the last case we should set SMTP laborer address, port, relationship security shows and approval type and capabilities.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Direct_model\"><\/span><strong>Direct model <\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>View the SSH article for quick and dirty bearings on the most capable strategy to sign in to your web laborer through SSH. Once endorsed in, you can run the going with request to send email:<\/p>\n<pre><code>[server]$ \/usr\/sbin\/sendmail youremail@example.com <\/code><\/pre>\n<p><strong>Subject: Test Send Mail <\/strong><\/p>\n<p><strong>control d (this basic blend of control key and d will finish the email.) <\/strong><\/p>\n<p><u>The above model sends an email as follows: <\/u><\/p>\n<ul>\n<li>The Subject is &#8216;Test Send Mail&#8217;.<\/li>\n<li>The body of the message makes real colleague &#8216;World&#8217;.<\/li>\n<li>email address will appear as your user server. For example, <a href=\"mailto:username@servername.arzhost.com\"><strong>username@servername.arzhost.com<\/strong><\/a><strong>.<\/strong><\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Adding_to_and_from_addresses\"><\/span><strong>Adding to and from addresses <\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>This model is equal to the one above, anyway adds a specific to and from address:<\/p>\n<p><strong>[server]$\/usr\/sbin\/sendmail youremail@example.com <\/strong><\/p>\n<p><strong>To: differentemail@example.com <\/strong><\/p>\n<p><strong>From: anyone@example.com <\/strong><\/p>\n<p><strong>Subject: Test Send Mail <\/strong><\/p>\n<p><strong>control d (this key mix will finish the email.) <\/strong><\/p>\n<p><u>The above model sends an email as follows: <\/u><\/p>\n<ul>\n<li>The essential line shows the email address sendmail will send the email TO.<\/li>\n<li>The email you go into the to field doesn&#8217;t get an email. It perhaps shows as the to address when the veritable recipient gets the email.<\/li>\n<li>The recipient is at this point the chief email you enter on the essential line when running the request, and can moreover b something practically the same if you wish.<\/li>\n<li>The from address is what you entered: anyone@example.com.<\/li>\n<li>The Subject is what you entered: Test Send Mail.<\/li>\n<\/ul>\n<p><strong>I trust its assistance for you all <\/strong><\/p>\n<p><strong>Glad learning<\/strong><\/p>\n<p>\u00a0<\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Routinely you need to test email and if it&#8217;s working. With these orders you can test email stream at a smooth level to sort out which&#8217;s destroyed and where. It is used to course email over the Internet to a specific receiver, and ought to be possible by running the send mail request in a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7663,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,16],"tags":[],"table_tags":[],"class_list":["post-309","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","category-tutorial"],"_links":{"self":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/comments?post=309"}],"version-history":[{"count":4,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/309\/revisions"}],"predecessor-version":[{"id":13749,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/309\/revisions\/13749"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/media\/7663"}],"wp:attachment":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/media?parent=309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/categories?post=309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/tags?post=309"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/table_tags?post=309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}