{"id":8494,"date":"2015-03-20T18:18:27","date_gmt":"2015-03-20T18:18:27","guid":{"rendered":"https:\/\/wp.okra.host\/article\/understanding-message-failures\/"},"modified":"2021-03-07T14:25:18","modified_gmt":"2021-03-07T13:25:18","slug":"understanding-message-failures","status":"publish","type":"ht_kb","link":"https:\/\/kb.okra.host\/de\/article\/understanding-message-failures\/","title":{"rendered":"Understanding message failures"},"content":{"rendered":"<h2 id=\"overview\" >Overview<\/h2>\n<p>Sometimes an e-mail sent from the server to a recipient will fail. There are a variety of causes and as a &#8220;best practice&#8221;, the receiving side will report the failure reason for easy understanding. However, it is prudent to note that a reason is not mandatory (just good practice) and there is no consistent language through which these rejection reasons\u00a0are conveyed.<\/p>\n<p>A typical rejection e-mail\u00a0consists of 3 parts:<\/p>\n<ol>\n<li>A modified Subject, typically including\u00a0<strong>Undelivered<\/strong> or\u00a0<strong>Failure<\/strong> in the title\n<ul>\n<li>e.g. &#8220;Undelivered Mail Returned to Sender&#8221; or &#8220;Delivery Status Notification (Failure)&#8221;<\/li>\n<li>these language is entirely dependent upon the reporting side and could be in any\u00a0language<\/li>\n<\/ul>\n<\/li>\n<li>A sender different than the recipient\n<ul>\n<li>Common automated\u00a0senders include names such as &#8220;Mail Delivery System&#8221;, &#8220;Mailer-Daemon&#8221;, and &#8220;postmaster&#8221;<\/li>\n<\/ul>\n<\/li>\n<li>A reason\u00a0embedded with the automated response, usually within the first few paragraphs. Like the first 2 components, there is no set format for how these reasons are formatted. Below are a few samples with reasons in bold for emphasis:\n<ul>\n<li>Sample 1:\n<div class=\"moz-text-plain\" lang=\"x-western\">\n<pre>This is the mail system at host sputnik.apnscp.com.\r\n\r\nI'm sorry to have to inform you that your message could not\r\nbe delivered to one or more recipients. It's attached below.\r\n\r\nFor further assistance, please send mail to postmaster.\r\n\r\nIf you do so, please include this problem report. You can\r\ndelete your own text from the attached returned message.\r\n\r\n                   The mail system\r\n\r\n&lt;shawn@host.ca&gt;: host host.ca[100.200.3.4] said: <strong>452 4.3.1 Insufficient system storage (in reply to MAIL FROM command)\r\n<\/strong><\/pre>\n<\/div>\n<\/li>\n<li>Sample 2:\n<pre>Delivery has failed to these recipients or groups:\r\nJoe Blow (user@coca-cola.com)\r\n\r\n<strong>Delivery not authorized, message refused<\/strong>\r\n\r\nYour message wasn't delivered due to an email rule restriction created by the recipient's organization email administrator. Please contact the recipient or the recipient's email administrator to remove the restriction.\r\n\r\nFor more information about this error see DSN code 5.7.1 in Exchange Online - Office 365.<\/pre>\n<\/li>\n<li>Sample 3:\n<pre>Reporting-MTA: dns; apollo.apnscp.com\r\nX-Postfix-Queue-ID: 27CCC184D7D3\r\nX-Postfix-Sender: rfc822;\u00a0myaddress@mydomain.com\r\nArrival-Date: Wed, 18 Feb 2015 13:00:41 -0500 (EST)\r\nFinal-Recipient: rfc822; user@example.com\r\nOriginal-Recipient: rfc822;user@example.com\r\nAction: failed\r\nStatus: 5.4.4\r\nDiagnostic-Code: X-Postfix; <strong>Host or domain name not found. Name service error <\/strong><strong>for name=example.com type=A: Host not found<\/strong><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2 id=\"rejection-samples\" >Rejection samples<\/h2>\n<p>This is not an exhaustive list, but instead a list\u00a0of common rejection notices that clients ask about.<\/p>\n<h3 id=\"invalid-user\" >Invalid user<\/h3>\n<p><strong>Explanation:<\/strong>\u00a0an invalid user is a user on the receiving side that no longer exists. This may be because of a typo in the e-mail address or the user has switched e-mail providers. Regardless, this address no longer exists (it&#8217;s like sending a letter to a defunct mailing address).<\/p>\n<ol>\n<li>Sample:\n<pre>&lt;test2@example.com&gt;: host mail.example.com[64.22.68.20] said: 550 5.1.1\r\n    &lt;test2@example.com&gt;: Recipient address rejected: <strong>User unknown in virtual mailbox table<\/strong> (in reply to RCPT TO command)<\/pre>\n<\/li>\n<li>Sample:\n<pre>Subject: Some subject about cats\r\nSent:\u00a0\u00a0\u00a0\u00a03\/9\/2015 11:09 AM\r\nThe following recipient(s) cannot be reached:\r\n   someuser@anotherdomain.com\r\n   <strong>The recipient has been deleted or has no e-mail address.<\/strong><\/pre>\n<\/li>\n<li>Sample:\n<pre>&lt;user@some.edu&gt;: host mail.some.edu[100.200.150.250] said: 550 5.1.1\r\n    &lt;user@some.edu&gt;... <strong>User unknown<\/strong> (in reply to RCPT TO command)<\/pre>\n<\/li>\n<li>Sample:\n<pre>&lt;someuser@gmail.com&gt;: host aspmx.l.google.com[64.233.160.26] said: 550 5.2.1\r\n    <strong>The email account that you tried to reach is disabled<\/strong>. wh8si1537215oeb.11 -\r\n    gsmtp (in reply to RCPT TO command)<\/pre>\n<\/li>\n<\/ol>\n<h3 id=\"mailbox-full\" >Mailbox full<\/h3>\n<p><strong>Explanation:<\/strong>\u00a0the recipient&#8217;s mailbox is at its storage capacity and cannot receive any further e-mail until the recipient takes action to clean-up its\u00a0mailbox.<\/p>\n<ol>\n<li>Sample:\n<div class=\"moz-text-plain\" lang=\"x-western\">\n<pre>&lt;shawn@oh.ca&gt;: host oh.ca[7.2.5.37] said: 452 4.3.1 <strong>Insufficient\r\n    system storage<\/strong> (in reply to MAIL FROM command)<\/pre>\n<\/div>\n<\/li>\n<\/ol>\n<h3 id=\"misconfigured-dns\" >Misconfigured\u00a0DNS<\/h3>\n<p><strong>Explanation:<\/strong>\u00a0DNS is what maps a domain name to an IP address and it is the IP address that a mail server connects to deliver a message. If\u00a0DNS is improperly configured on the receiving side, then the server can&#8217;t deduce where to deliver the e-mail.\u00a0As a concrete example: imagine delivering a letter to an individual&#8217;s house with an address; that&#8217;s DNS. Imagine delivering the message to the individual&#8217;s house, but you don&#8217;t know the address or don&#8217;t have the address available; the courier cannot deliver a message if he does not know the address to deliver. That&#8217;s what happens with a misconfigured DNS.<\/p>\n<ol>\n<li>Sample:\n<pre>&lt;user@example.com&gt;: <strong>Host or domain name not found.<\/strong> Name service error for name=example.com type=MX: Host not found, try again<\/pre>\n<\/li>\n<li>Sample:\n<pre>Diagnostic-Code: X-Postfix; <strong>Host or domain name not found<\/strong>. Name service error for name=example.com type=A: Host not found<\/pre>\n<\/li>\n<li>Sample (cannot connect to mail server at destination):\n<pre>&lt;guy@somedomain.com&gt;: connect to\r\n    somedomain.com[2.43.58.25]:25: <strong>Connection refused<\/strong><\/pre>\n<\/li>\n<\/ol>\n<h3 id=\"misconfigured-greylisting\" >Misconfigured greylisting<\/h3>\n<p><strong>Explanation:<\/strong>\u00a0the recipient&#8217;s mail server is using a <a href=\"http:\/\/en.wikipedia.org\/wiki\/Greylisting\">greylisting<\/a> technique to reduce spam by <em>temporarily<\/em>\u00a0rejecting e-mail. E-mail will automatically be retried within a hour, but if greylisting is improperly configured\u00a0on the recipient&#8217;s side, e-mail may exponentially delay up to 8 hours per retry. If greylisted entries are reset every 4-6 hours, then some e-mail may remain undeliverable.<\/p>\n<ol>\n<li>Sample:\n<pre>&lt;user@example.com&gt;: host mail13.mailrelay.com[216.119.106.129] said: <strong>451 Greylisted, please try again in 300 seconds<\/strong> (in reply to RCPT TO command)<\/pre>\n<\/li>\n<\/ol>\n<h3 id=\"relaying-denied\" >Relaying denied<\/h3>\n<p><strong>Explanation:<\/strong>\u00a0when mail passes through a server, one of three things must happen: (1) the client sending mail must be <a href=\"https:\/\/kb.okra.host\/e-mail\/unable-send-e-mail\/\">authenticated<\/a> with the server usually by sending a <a title=\"Accessing e-mail\" href=\"https:\/\/kb.okra.host\/e-mail\/accessing-e-mail\/\">login\/password<\/a>, (2) the receiving server must be configured to know its the final destination for the recipient, <em>or<\/em> (3) the receiving server must be configured to pass the message off to another server en route to its final destination. If any of these conditions are not met, it is construed as an unapproved\u00a0&#8220;relay&#8221;, which is <em>case #3<\/em> without proper configuration.<\/p>\n<ol>\n<li>Sample (case #2, recipient end is improperly configured as reported by\u00a0<em>Remote-MTA<\/em>):\n<pre>Reporting-MTA: dns; augend.apnscp.com \r\nX-Postfix-Queue-ID: CA05A216020E \r\nX-Postfix-Sender: rfc822; Arrival-Date: Fri, 2 Jan 2015 07:15:58 -0500 (EST) \r\nFinal-Recipient: rfc822; information@somedomain.com\r\nOriginal-Recipient: rfc822;information@somedomain.com\r\nAction: failed Status: 5.7.1 \r\n<strong>Remote-MTA: dns; mx1.emailsrvr.com<\/strong> \r\nDiagnostic-Code: smtp; 550 5.7.1 &lt;information@somedomain.com&gt;: <strong>Relay access denied.<\/strong><\/pre>\n<\/li>\n<li>Sample (case #1, destination e-mail elsewhere, resolve by <a title=\"Unable to send e-mail\" href=\"https:\/\/kb.okra.host\/e-mail\/unable-send-e-mail\/\">authenticating<\/a> with the mail server):\n<pre>The message could not be sent because one of the recipients was rejected by the server. \r\n\r\nThe rejected e-mail address was 'user@anotherdomain.com'. Account: 'mail.mydomain.com', Server: 'mail.mydomain.com', Protocol: SMTP, Server Response: '550 5.7.1 &lt;user@anotherdomain.com&gt;... <strong>Relaying denied. Proper authentication required.<\/strong>', Port: 25, Secure(SSL): No, Server Error: 550, Error Number: 0x800CCC79<\/pre>\n<\/li>\n<li>Sample (case #2, if domain is part of your account,\u00a0resolve by <a title=\"Authorizing hostnames to handle e-mail\" href=\"https:\/\/kb.okra.host\/e-mail\/authorizing-hostnames-handle-e-mail\/\">authorizing server<\/a> to handle mail for\u00a0domain):\n<pre>Delivery to the following recipient failed permanently:\r\n     info@mydomain.com\r\nTechnical details of permanent failure: \r\nGoogle tried to deliver your message, but it was rejected by the server for the recipient domain mydomain.com by mail.mydomain.com. [64.22.68.62].<\/pre>\n<pre>The error that the other server returned was:\r\n554 5.7.1 &lt;info@mydomain.com&gt;: <strong>Relay access denied<\/strong><\/pre>\n<\/li>\n<\/ol>\n<h3 id=\"dns-blacklist\" >DNS blacklist<\/h3>\n<p><strong>Explanation:<\/strong>\u00a0although uncommon, our mail servers\u00a0end up on DNS blacklists for inappropriate behavior (account gets hacked, begins to disseminate spam). Open a ticket within the <a title=\"Logging into the control panel\" href=\"https:\/\/kb.okra.host\/control-panel\/logging-into-the-control-panel\/\">control panel<\/a> under <strong>Help<\/strong> &gt;<strong> Trouble Tickets<\/strong>\u00a0and include a copy of the message for us to look into it and get the server delisted.<\/p>\n<ol>\n<li>Sample:\n<pre>550 5.2.1 Mailbox unavailable. <strong>Your IP address 64.22.68.10 is blacklisted<\/strong> using RBL-Plus. Details: http:\/\/www.mail-abuse.com\/cgi-bin\/lookup?64.22.68.10. (in reply to RCPT TO command)<\/pre>\n<\/li>\n<li>Sample:\n<pre>Diagnostic-Code: smtp; 550 OU-002 (COL0-MC6-F14) Unfortunately, messages from 64.22.68.6 weren't sent. Please contact your Internet service provider <strong>since part of their network is on our block list<\/strong>. You can also refer your provider to http:\/\/mail.live.com\/mail\/troubleshooting.aspx#errors.<\/pre>\n<\/li>\n<li>Sample:\n<pre>Final-Recipient: rfc822; [recipient email address] Original-Recipient: rfc822; some@address.com Action: failed Status: 5.7.1 Remote-MTA: dns; mx241.emailfiltering.com Diagnostic-Code: smtp; 550 5.7.1 <strong>Your IP 64.22.68.4 is blacklisted<\/strong>. Click delist.emailfiltering.com to delist<\/pre>\n<\/li>\n<li>Sample (not a blacklist, but broken heuristics on receiving side):\n<pre>Final-Recipient: rfc822; someuser@anotherdomain.com\r\nOriginal-Recipient: rfc822;someuser@anotherdomain.com\r\nAction: failed\r\nStatus: 5.7.1\r\nRemote-MTA: dns; narya.dtnx.eu\r\nDiagnostic-Code: smtp; 554 5.7.1 Client host '64.22.68.65' rejected: <strong>listed as<\/strong>\r\n<strong>   suspicious, bad, or broken<\/strong> --- http:\/\/dtnx.net\/04\/G\/3M<\/pre>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Overview Sometimes an e-mail sent from the server to a recipient will fail. There are a variety of causes and as a &#8220;best practice&#8221;, the receiving side will report the failure reason for easy understanding. However, it is prudent to note that a reason is not mandatory (just good practice)&#8230;<\/p>","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[58],"ht-kb-tag":[],"class_list":["post-8494","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-e-mail"],"_links":{"self":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/comments?post=8494"}],"version-history":[{"count":1,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8494\/revisions"}],"predecessor-version":[{"id":8495,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8494\/revisions\/8495"}],"wp:attachment":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/media?parent=8494"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-category?post=8494"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-tag?post=8494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}