{"id":6782,"date":"2020-04-08T07:18:00","date_gmt":"2020-04-08T07:18:00","guid":{"rendered":"https:\/\/www.smarthost.au\/blog\/?p=6782"},"modified":"2024-09-04T08:51:53","modified_gmt":"2024-09-04T08:51:53","slug":"protection-against-spam-sending-only-with-smtp-authentication","status":"publish","type":"post","link":"https:\/\/www.smarthost.au\/blog\/protection-against-spam-sending-only-with-smtp-authentication","title":{"rendered":"Protection Against Spam \u2013 Sending Only with SMTP Authentication"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">What is SMTP authentication?<\/h2>\n\n\n\n<p>When sending an email, mail servers require you to log in before the email can be sent. Otherwise, anyone could send an email &#8220;as us.&#8221;<\/p>\n\n\n\n<p>SMTP authentication is the process of verifying a user through the outgoing mail server. Its purpose is to increase security by preventing unauthorized individuals from sending messages from &#8220;our&#8221; email account and enhancing the credibility of the mail server. Anyone attempting to send an email will need to enter a username and password to authenticate themselves.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why is it important to send messages with SMTP authentication?<\/h2>\n\n\n\n<p>While it\u2019s common to set up authentication when sending emails using a mail client (like Outlook, Thunderbird, etc.), many people forget the importance of authentication when sending messages from a server (such as a contact form or emails from an online store).<\/p>\n\n\n\n<p>When sending messages from a server, it\u2019s crucial to authenticate via SMTP.<\/p>\n\n\n\n<p>Using the PHP mail() function to send emails does so without authentication. This is a poor practice, despite being the simplest method of sending emails through server scripts. However, it\u2019s considered outdated, originating from a time when spam wasn\u2019t an issue.<\/p>\n\n\n\n<p>Emails sent locally from a server without authentication, even if they\u2019re successfully sent, often fail to reach recipients properly because they lack the necessary mechanisms to ensure deliverability: <a href=\"https:\/\/www.smarthost.au\/blog\/spf-and-dkim-spam-protection\">SPF<\/a> (Sender Policy Framework) and <a href=\"https:\/\/www.smarthost.au\/blog\/spf-and-dkim-spam-protection\">DKIM<\/a> (DomainKeys Identified Mail).<\/p>\n\n\n\n<p class=\"has-text-align-left\">Many servers reject emails that don\u2019t have header information indicating they were sent with authentication. Therefore, sending emails without authentication (e.g., using PHP mail() ) is not recommended.<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-text-align-center\"><mark style=\"background-color:rgba(0, 0, 0, 0);color:#5b6167\" class=\"has-inline-color\">SMTP Configuration Guides for the Most Popular CMSs<\/mark><\/h4>\n\n\n\n<p class=\"has-text-align-center\"><a href=\"https:\/\/www.smarthost.au\/blog\/wordpress-configuring-email-sending-with-smtp-authentication\">WordPress<\/a><\/p>\n\n\n\n<p class=\"has-text-align-center\"><a href=\"https:\/\/www.smarthost.au\/blog\/joomla-3-configuring-email-sending-with-smtp-authentication\">Joomla 3<\/a><\/p>\n\n\n\n<p class=\"has-text-align-center\"><a href=\"https:\/\/www.smarthost.au\/blog\/joomla-4-configuring-email-sending-with-smtp-authentication\">Joomla 4<\/a><\/p>\n\n\n\n<p class=\"has-text-align-center\"><a href=\"https:\/\/www.smarthost.au\/blog\/joomla-configuring-email-sending-with-smtp-authentication\">Joomla 5<\/a><\/p>\n\n\n\n<p class=\"has-text-align-center\"><a href=\"https:\/\/www.smarthost.au\/blog\/prestashop-1-6-configuring-email-sending-with-smtp-authentication\">Prestashop 1.6<\/a><\/p>\n\n\n\n<p class=\"has-text-align-center\"><a href=\"https:\/\/www.smarthost.au\/blog\/prestashop-1-7-configuring-email-sending-with-smtp-authentication\" data-type=\"URL\" data-id=\"prestashop-1-7-configuring-email-sending-with-smtp-authentication\">Prestashop 1.7<\/a><\/p>\n\n\n\n<p class=\"has-text-align-center\"><a href=\"https:\/\/www.smarthost.au\/blog\/prestashop-8-configuring-email-sending-with-smtp-authentication\" data-type=\"URL\" data-id=\"prestashop-1-7-configuring-email-sending-with-smtp-authentication\">Prestashop 8<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is SMTP authentication? When sending an email, mail servers require you to log in before the email can be sent. Otherwise, anyone could send an email &#8220;as us.&#8221; SMTP authentication is the process of<a class=\"read-more\" href=\"https:\/\/www.smarthost.au\/blog\/protection-against-spam-sending-only-with-smtp-authentication\">Continue reading<\/a><\/p>\n","protected":false},"author":16,"featured_media":6786,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[435],"tags":[156,168,169,1161],"class_list":["post-6782","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spam-pl","tag-e-mail","tag-mail","tag-smtp","tag-smtp-authentication-configuration"],"_links":{"self":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/6782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/comments?post=6782"}],"version-history":[{"count":5,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/6782\/revisions"}],"predecessor-version":[{"id":6978,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/6782\/revisions\/6978"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/media\/6786"}],"wp:attachment":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/media?parent=6782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/categories?post=6782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/tags?post=6782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}