{"id":511,"date":"2020-04-10T12:52:20","date_gmt":"2020-04-10T12:52:20","guid":{"rendered":"https:\/\/www.smarthost.eu\/blog\/?p=511"},"modified":"2020-04-10T12:52:21","modified_gmt":"2020-04-10T12:52:21","slug":"protection-for-spam-how-greylisting-works","status":"publish","type":"post","link":"https:\/\/www.smarthost.au\/blog\/protection-for-spam-how-greylisting-works","title":{"rendered":"Protection for spam &#8211; how greylisting works"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><strong>What greylisting is?<\/strong><\/h2>\n\n\n\n<p>Greylisting is antispam technique, be done using the mail message agent (MTA). Using this method, e-mails with unknown IP addresses are rejected on the first attempt at delivery and the sending server must be reused sending &#8211; which happens with a standard e-mail system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How antispam greylisting method works<\/strong><\/h2>\n\n\n\n<p>When an email address sends mail to a mail server, the server may respond correctly or reply incorrectly. Two types of SMTP server errors are available: permanent, completely rejecting the message and supported by further attempts to deliver it, and temporary, which allows you to try to resend the email at a later time.<\/p>\n\n\n\n<p>If the mail server receives an email from an IP address that is &#8220;unknown&#8221; for the server, the mail server serving greylisting temporarily rejects it intentionally, but only on the first delivery attempt. The sender&#8217;s mail server then receives a reply with information about a temporary message delivery error and a request to try sending the same message again.<\/p>\n\n\n\n<p>If the attempt to deliver the e-mail is repeated, the address will be marked as trusted for some time and the message will no longer be rejected. In this case, the mail will be delivered correctly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>The effectiveness of the greylisting antispam method<\/strong><\/h2>\n\n\n\n<p>This method works as an anti-spam system for a simple reason: spammer servers do not support this type of error &#8211; the verses saying that a given server has temporarily refused to accept the parcel are ignored, as a result of which the sending of spam is not repeated.<\/p>\n\n\n\n<p>Servers sending spam usually try to send as many emails in the shortest possible time &#8211; the number of emails sent is important, so these servers do not pay attention to the correct handling of smtp protocols and usually ignore the mail server&#8217;s request for re-sending. Re-sending is only performed by correctly configured mail servers that send real e-mails.<\/p>\n\n\n\n<p>Greylisting has several configuration options, e.g. ready lists of known email providers that can be excluded from a deliberate error response and re-sending request.<\/p>\n\n\n\n<p>Within the server that supports greylisting, you can freely set the time when re-sending is expected and the time for which the e-mail server that re-sends is added to the temporary white list.<\/p>\n\n\n\n<p>Greylisting is a relatively effective method to get rid of a large portion of spam, mainly one that is sent in bulk. A disadvantage, however, is the fact that there is a delay of several to several minutes in receiving the first email from an external mail server. Subsequent emails from the same server arrive without delay.<\/p>\n\n\n\n<p>Greylisting has become a popular and standardized solution in the fight against spam &#8211; this is used by many companies on mail servers.<\/p>\n\n\n\n<p>More information you can read on the Wikipedia page:  <a href=\"https:\/\/en.wikipedia.org\/wiki\/Greylisting\">https:\/\/en.wikipedia.org\/wiki\/Greylisting<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What greylisting is? Greylisting is antispam technique, be done using the mail message agent (MTA). Using this method, e-mails with unknown IP addresses are rejected on the first attempt at delivery and the sending server<a class=\"read-more\" href=\"https:\/\/www.smarthost.au\/blog\/protection-for-spam-how-greylisting-works\">Continue reading<\/a><\/p>\n","protected":false},"author":16,"featured_media":513,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[126],"tags":[156,166,167,168,169,83,84],"class_list":["post-511","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spam","tag-e-mail","tag-email","tag-greylisting","tag-mail","tag-smtp","tag-spam","tag-spam-protection"],"_links":{"self":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/511","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=511"}],"version-history":[{"count":2,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/511\/revisions"}],"predecessor-version":[{"id":514,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/511\/revisions\/514"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/media\/513"}],"wp:attachment":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/media?parent=511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/categories?post=511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/tags?post=511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}