{"id":75402,"date":"2025-10-22T11:20:40","date_gmt":"2025-10-22T10:20:40","guid":{"rendered":"https:\/\/www.n-able.com\/?p=75402"},"modified":"2025-11-19T10:48:02","modified_gmt":"2025-11-19T10:48:02","slug":"mail-flow-and-anti-spam-refresher-series-part-1-mail-delivery-basics","status":"publish","type":"post","link":"https:\/\/www.n-able.com\/it\/blog\/mail-flow-and-anti-spam-refresher-series-part-1-mail-delivery-basics","title":{"rendered":"Mail Flow and Anti-Spam Refresher Series \u2013 Part 1: Mail Delivery Basics"},"content":{"rendered":"<p><span>Lately, I\u2019ve been involved in diagnosing a handful of mail delivery issues. What used to be a relatively straightforward process has evolved into something far more complex thanks to the ongoing arms race against spammers, scammers, and other bad actors who continue to exploit email as an attack vector.<\/span><\/p>\n<p><span>Platforms like <a href=\"https:\/\/www.n-able.com\/products\/mail-assure\" target=\"_blank\" rel=\"noopener\">Mail Assure<\/a> are working hard to stay ahead of these threats, but when an email doesn\u2019t get delivered, it\u2019s not always easy to pinpoint what went wrong or where the failure occurred. That said, many issues stem from something simple. So over the course of the next few blog posts, I\u2019ll break down the fundamentals of SMTP (Simple Mail Transfer Protocol) delivery, explore anti-spam technologies, and share practical tips to help you get the most out of Mail Assure.<\/span><\/p>\n<p><span>Let\u2019s dig in.<\/span><\/p>\n<h2><span>The SMTP Delivery Loop: Step-by-Step<\/span><\/h2>\n<p><span>When you hit \u201csend\u201d on an email, it feels instant. But under the hood, there\u2019s a precise and layered process that ensures your message gets from sender to recipient securely, reliably, and (hopefully) without ending up in the junk folder.<\/span><\/p>\n<p><span>Here\u2019s what happens when one mail server sends a message to another:<\/span><\/p>\n<ol>\n<li><strong><span>MX Record Lookup<\/span><\/strong><span><br \/>\nThe sender extracts the recipient\u2019s domain (e.g., @n-able.com) and queries DNS for its <strong>MX record<\/strong>, which tells it which server handles mail for that domain. Where more than one MX records exists they are tried in a lowest priority order.<\/span><\/li>\n<li><strong><span>Hostname Resolution<\/span><\/strong><span><br \/>\nThe MX record points to a hostname depending on what delivery service is being used (e.g., n-able-com.mail.protection.outlook.com for domains using native M365). The sender performs a DNS lookup for <strong>A (IPv4)<\/strong> or <strong>AAAA (IPv6)<\/strong> records to get the IP address.<\/span><\/li>\n<li><strong><span>SMTP Connection<\/span><\/strong><span><br \/>\nThe sender opens a connection to the recipient\u2019s mail server on <strong>TCP port 25<\/strong>. The recipient responds with an SMTP banner (e.g., 220 mail.n-able.com ESMTP). Optional encryption can be used here to \u201cupgrade\u201d the connection to one secured by TLS (Transport Layer Security).<\/span><\/li>\n<li><strong><span>EHLO\/HELO Handshake<\/span><\/strong><span><br \/>\nThe sender introduces itself with EHLO (or HELO in legacy setups). The recipient replies with its capabilities \u2013 like supported extensions and max message size.<\/span><\/li>\n<li><strong><span>Sender &amp; Recipient Info<\/span><\/strong><span><br \/>\nThe sender issues MAIL FROM: with the envelope sender address, followed by RCPT TO: for each recipient. The server accepts or rejects each one.<\/span><\/li>\n<li><strong><span>Message Transmission<\/span><\/strong><span><br \/>\nThe sender sends the DATA command. After receiving 354 Start mail input, it transmits the message headers and body, ending with a single period (.). The recipient replies with 250 OK if successful.<\/span><\/li>\n<li><strong><span>Session Closure<\/span><\/strong><span><br \/>\nThe sender sends QUIT, and the recipient replies with 221 Bye. The message is now queued for delivery or forwarded if needed.<\/span><\/li>\n<\/ol>\n<p><span>This loop is the backbone of email delivery. If something breaks, say a DNS misconfiguration or a blocked port, your message might bounce, stall, or vanish.<\/span><\/p>\n<h2><span>SMTP Submission vs Relay: Know the Difference<\/span><\/h2>\n<ul>\n<li><strong><span>Client-to-Server SMTP (Submission)<\/span><\/strong><span><br \/>\nUsed by email clients (Outlook, scanners, apps) to send mail to their own server. Happens on <strong>port 587<\/strong>, requires <strong>authentication<\/strong>, and uses <strong>TLS encryption<\/strong>. Or this can be another proprietary protocol used depending on the mail servers involved.<\/span><\/li>\n<li><strong><span>Server-to-Server SMTP (Relay)<\/span><\/strong><span><br \/>\nUsed when one mail server delivers to another. Happens on <strong>port 25<\/strong>, typically <strong>unauthenticated<\/strong>, and may use <strong>opportunistic TLS<\/strong> via STARTTLS.<\/span><\/li>\n<\/ul>\n<p><span>Understanding these roles helps diagnose delivery issues, like why your scanner can\u2019t send mail externally or why your outbound mail is rejected.<\/span><\/p>\n<h2><span>DNS Records That Make It All Work<\/span><\/h2>\n<ul>\n<li><strong><span>MX Records<\/span><\/strong><span>: Direct mail to the correct server.<\/span><\/li>\n<li><strong><span>A\/AAAA Records<\/span><\/strong><span>: Resolve hostnames to IPs.<\/span><\/li>\n<li><strong><span>PTR Records<\/span><\/strong><span>: Enable reverse DNS lookups, which many servers use to verify legitimacy.<\/span><\/li>\n<\/ul>\n<p><span>Misconfigured DNS is a common cause of delivery failures. Always verify that your domain\u2019s MX points to the right host (e.g., &lt;yourdomain&gt;.mail.protection.outlook.com for M365 with no additional protections).<\/span><span>\u00a0<\/span><\/p>\n<h2><span>Why This Matters<\/span><\/h2>\n<p><span>This foundational knowledge isn\u2019t just academic\u2014it\u2019s essential for:<\/span><\/p>\n<ul>\n<li><span>Troubleshooting delivery failures<\/span><\/li>\n<li><span>Understanding bounce messages (NDRs)<\/span><\/li>\n<li><span>Configuring devices and apps to send mail<\/span><\/li>\n<li><span>Preparing for anti-spam and security layers<\/span><\/li>\n<\/ul>\n<p><span>In <strong>Part 2<\/strong>, we\u2019ll explore how platforms filter spam, authenticate senders, and protect against spoofing and phishing using industry standard technologies such as SPf, DKIM and DMARC before looking deeper into troubleshooting steps.<\/span><\/p>\n<p><em>Ben Lee is a Head Nerd at N&#8209;able and has a long history working in the Microsoft space. You can find him on LinkedIn as <a href=\"https:\/\/www.linkedin.com\/in\/benleeuk\/\" target=\"_blank\" rel=\"noopener\">BenLeeUK<\/a> or email him at ben.lee@n-able.com<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Head Nerd Ben Lee breaks down mail delivery and SMTP in this refresher, ideal for troubleshooting and improving email security.<\/p>\n","protected":false},"author":132,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-75402","post","type-post","status-publish","format-standard","hentry","topic-email","topic-head-nerds"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Mail Flow and Anti-Spam Refresher Series \u2013 Part 1: Mail Delivery Basics - N-able<\/title>\n<meta name=\"description\" content=\"Head Nerd Ben Lee breaks down mail delivery and SMTP in this refresher, ideal for troubleshooting and improving email security.\" \/>\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.n-able.com\/it\/blog\/mail-flow-and-anti-spam-refresher-series-part-1-mail-delivery-basics\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mail Flow and Anti-Spam Refresher Series \u2013 Part 1: Mail Delivery Basics - N-able\" \/>\n<meta property=\"og:description\" content=\"Head Nerd Ben Lee breaks down mail delivery and SMTP in this refresher, ideal for troubleshooting and improving email security.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.n-able.com\/it\/blog\/mail-flow-and-anti-spam-refresher-series-part-1-mail-delivery-basics\" \/>\n<meta property=\"og:site_name\" content=\"N-able\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/NableMSP\" \/>\n<meta property=\"article:published_time\" content=\"2025-10-22T10:20:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-19T10:48:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.n-able.com\/wp-content\/uploads\/2025\/10\/100925_BB_Email-Refresher_1200x628.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ben Lee\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Nable\" \/>\n<meta name=\"twitter:site\" content=\"@Nable\" \/>\n<meta name=\"twitter:label1\" content=\"Scritto da\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ben Lee\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tempo di lettura stimato\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minuti\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.n-able.com\/it\/blog\/mail-flow-and-anti-spam-refresher-series-part-1-mail-delivery-basics#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.n-able.com\/it\/blog\/mail-flow-and-anti-spam-refresher-series-part-1-mail-delivery-basics\"},\"author\":{\"name\":\"Ben Lee\",\"@id\":\"https:\/\/www.n-able.com\/it\/#\/schema\/person\/2282be5387486b554296a1420dd9e44b\"},\"headline\":\"Mail Flow and Anti-Spam Refresher Series \u2013 Part 1: Mail Delivery Basics\",\"datePublished\":\"2025-10-22T11:20:40+01:00\",\"dateModified\":\"2025-11-19T10:48:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.n-able.com\/it\/blog\/mail-flow-and-anti-spam-refresher-series-part-1-mail-delivery-basics\"},\"wordCount\":748,\"publisher\":{\"@id\":\"https:\/\/www.n-able.com\/it\/#organization\"},\"inLanguage\":\"it-IT\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.n-able.com\/it\/blog\/mail-flow-and-anti-spam-refresher-series-part-1-mail-delivery-basics\",\"url\":\"https:\/\/www.n-able.com\/it\/blog\/mail-flow-and-anti-spam-refresher-series-part-1-mail-delivery-basics\",\"name\":\"Mail Flow and Anti-Spam Refresher Series \u2013 Part 1: Mail Delivery Basics - N-able\",\"isPartOf\":{\"@id\":\"https:\/\/www.n-able.com\/it\/#website\"},\"datePublished\":\"2025-10-22T11:20:40+01:00\",\"dateModified\":\"2025-11-19T10:48:02+00:00\",\"description\":\"Head Nerd Ben Lee breaks down mail delivery and SMTP in this refresher, ideal for troubleshooting and improving email security.\",\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.n-able.com\/it\/blog\/mail-flow-and-anti-spam-refresher-series-part-1-mail-delivery-basics\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.n-able.com\/it\/#website\",\"url\":\"https:\/\/www.n-able.com\/it\/\",\"name\":\"N-able\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.n-able.com\/it\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.n-able.com\/it\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"it-IT\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.n-able.com\/it\/#organization\",\"name\":\"N-able\",\"url\":\"https:\/\/www.n-able.com\/it\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\/\/www.n-able.com\/it\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.n-able.com\/wp-content\/uploads\/2021\/02\/logo-n-able-vertical-dark.svg\",\"contentUrl\":\"https:\/\/www.n-able.com\/wp-content\/uploads\/2021\/02\/logo-n-able-vertical-dark.svg\",\"width\":\"1024\",\"height\":\"1024\",\"caption\":\"N-able\"},\"image\":{\"@id\":\"https:\/\/www.n-able.com\/it\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/NableMSP\",\"https:\/\/x.com\/Nable\",\"https:\/\/www.linkedin.com\/company\/n-able\",\"https:\/\/www.youtube.com\/channel\/UClnp77HHg4aME-S-3fWQhFw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.n-able.com\/it\/#\/schema\/person\/2282be5387486b554296a1420dd9e44b\",\"name\":\"Ben Lee\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/10b49d598c1e7b2a07e06c76b2ebdce47becab066d5d63c501c8ea91a6daff08?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/10b49d598c1e7b2a07e06c76b2ebdce47becab066d5d63c501c8ea91a6daff08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/10b49d598c1e7b2a07e06c76b2ebdce47becab066d5d63c501c8ea91a6daff08?s=96&d=mm&r=g\",\"caption\":\"Ben Lee\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Mail Flow and Anti-Spam Refresher Series \u2013 Part 1: Mail Delivery Basics - N-able","description":"Head Nerd Ben Lee breaks down mail delivery and SMTP in this refresher, ideal for troubleshooting and improving email security.","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.n-able.com\/it\/blog\/mail-flow-and-anti-spam-refresher-series-part-1-mail-delivery-basics","og_locale":"it_IT","og_type":"article","og_title":"Mail Flow and Anti-Spam Refresher Series \u2013 Part 1: Mail Delivery Basics - N-able","og_description":"Head Nerd Ben Lee breaks down mail delivery and SMTP in this refresher, ideal for troubleshooting and improving email security.","og_url":"https:\/\/www.n-able.com\/it\/blog\/mail-flow-and-anti-spam-refresher-series-part-1-mail-delivery-basics","og_site_name":"N-able","article_publisher":"https:\/\/www.facebook.com\/NableMSP","article_published_time":"2025-10-22T10:20:40+00:00","article_modified_time":"2025-11-19T10:48:02+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.n-able.com\/wp-content\/uploads\/2025\/10\/100925_BB_Email-Refresher_1200x628.jpg","type":"image\/jpeg"}],"author":"Ben Lee","twitter_card":"summary_large_image","twitter_creator":"@Nable","twitter_site":"@Nable","twitter_misc":{"Scritto da":"Ben Lee","Tempo di lettura stimato":"4 minuti"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.n-able.com\/it\/blog\/mail-flow-and-anti-spam-refresher-series-part-1-mail-delivery-basics#article","isPartOf":{"@id":"https:\/\/www.n-able.com\/it\/blog\/mail-flow-and-anti-spam-refresher-series-part-1-mail-delivery-basics"},"author":{"name":"Ben Lee","@id":"https:\/\/www.n-able.com\/it\/#\/schema\/person\/2282be5387486b554296a1420dd9e44b"},"headline":"Mail Flow and Anti-Spam Refresher Series \u2013 Part 1: Mail Delivery Basics","datePublished":"2025-10-22T11:20:40+01:00","dateModified":"2025-11-19T10:48:02+00:00","mainEntityOfPage":{"@id":"https:\/\/www.n-able.com\/it\/blog\/mail-flow-and-anti-spam-refresher-series-part-1-mail-delivery-basics"},"wordCount":748,"publisher":{"@id":"https:\/\/www.n-able.com\/it\/#organization"},"inLanguage":"it-IT"},{"@type":"WebPage","@id":"https:\/\/www.n-able.com\/it\/blog\/mail-flow-and-anti-spam-refresher-series-part-1-mail-delivery-basics","url":"https:\/\/www.n-able.com\/it\/blog\/mail-flow-and-anti-spam-refresher-series-part-1-mail-delivery-basics","name":"Mail Flow and Anti-Spam Refresher Series \u2013 Part 1: Mail Delivery Basics - N-able","isPartOf":{"@id":"https:\/\/www.n-able.com\/it\/#website"},"datePublished":"2025-10-22T11:20:40+01:00","dateModified":"2025-11-19T10:48:02+00:00","description":"Head Nerd Ben Lee breaks down mail delivery and SMTP in this refresher, ideal for troubleshooting and improving email security.","inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.n-able.com\/it\/blog\/mail-flow-and-anti-spam-refresher-series-part-1-mail-delivery-basics"]}]},{"@type":"WebSite","@id":"https:\/\/www.n-able.com\/it\/#website","url":"https:\/\/www.n-able.com\/it\/","name":"N-able","description":"","publisher":{"@id":"https:\/\/www.n-able.com\/it\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.n-able.com\/it\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"it-IT"},{"@type":"Organization","@id":"https:\/\/www.n-able.com\/it\/#organization","name":"N-able","url":"https:\/\/www.n-able.com\/it\/","logo":{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/www.n-able.com\/it\/#\/schema\/logo\/image\/","url":"https:\/\/www.n-able.com\/wp-content\/uploads\/2021\/02\/logo-n-able-vertical-dark.svg","contentUrl":"https:\/\/www.n-able.com\/wp-content\/uploads\/2021\/02\/logo-n-able-vertical-dark.svg","width":"1024","height":"1024","caption":"N-able"},"image":{"@id":"https:\/\/www.n-able.com\/it\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/NableMSP","https:\/\/x.com\/Nable","https:\/\/www.linkedin.com\/company\/n-able","https:\/\/www.youtube.com\/channel\/UClnp77HHg4aME-S-3fWQhFw"]},{"@type":"Person","@id":"https:\/\/www.n-able.com\/it\/#\/schema\/person\/2282be5387486b554296a1420dd9e44b","name":"Ben Lee","image":{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/secure.gravatar.com\/avatar\/10b49d598c1e7b2a07e06c76b2ebdce47becab066d5d63c501c8ea91a6daff08?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/10b49d598c1e7b2a07e06c76b2ebdce47becab066d5d63c501c8ea91a6daff08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10b49d598c1e7b2a07e06c76b2ebdce47becab066d5d63c501c8ea91a6daff08?s=96&d=mm&r=g","caption":"Ben Lee"}}]}},"_links":{"self":[{"href":"https:\/\/www.n-able.com\/it\/wp-json\/wp\/v2\/posts\/75402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.n-able.com\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.n-able.com\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.n-able.com\/it\/wp-json\/wp\/v2\/users\/132"}],"replies":[{"embeddable":true,"href":"https:\/\/www.n-able.com\/it\/wp-json\/wp\/v2\/comments?post=75402"}],"version-history":[{"count":0,"href":"https:\/\/www.n-able.com\/it\/wp-json\/wp\/v2\/posts\/75402\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.n-able.com\/it\/wp-json\/wp\/v2\/media?parent=75402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}