{"id":20,"date":"2008-03-24T12:15:58","date_gmt":"2008-03-24T05:15:58","guid":{"rendered":"http:\/\/blog.iwayvietnam.com\/tuanta\/2008\/03\/24\/sendmails-greet_pause\/"},"modified":"2008-03-27T14:50:36","modified_gmt":"2008-03-27T07:50:36","slug":"sendmails-greet_pause","status":"publish","type":"post","link":"https:\/\/blog.iwayvietnam.com\/tuanta\/2008\/03\/sendmails-greet_pause\/","title":{"rendered":"Sendmail&#8217;s Greet_Pause"},"content":{"rendered":"<p><em>Slamming<\/em> is a popular spammer tactic in which the spammer quickly fires off SMTP messages without waiting for responses from the receiving server. A poorly behaved MTA will then accept traffic from the spammer, instead of rejecting it as it should. But even well-behaved MTAs are affected because of the sheer volume of traffic with which they are forced to deal. The venerable sendmail, as of version 8.13, has a nifty feature called &#8220;<strong>greet_pause<\/strong>&#8221; that not only rejects incorrect SMTP transactions, but also discourages re-sends.<\/p>\n<p>In a normal SMTP transaction, the client first connects and the server is supposed to send back a &#8220;220&#8221; greeting, something like:<\/p>\n<p><code>$ telnet mail.foo.org 25<br \/>\nTrying 12.34.56.78...<br \/>\nConnected to foo.com.<br \/>\nEscape character is '^]'.<br \/>\n220-host6.foo.org ESMTP Sendmail 8.13.6\/8.13.6; Wed, 14 Jun 2006 18:04:49 -0600<br \/>\n220-We do not authorize the use of this system to transport unsolicited,<br \/>\n220 and\/or bulk e-mail.<br \/>\n<\/code><\/p>\n<p>Then, the client says &#8220;ehlo&#8221; or &#8220;helo,&#8221; and the transaction continues. When the client is an impatient spammer and sends more commands without listening, the greet_pause feature detects this, marks the connection bad, and responds to anything else that tries to come over that connection with a 554 (transaction failed) message. It works by pausing briefly before sending out its 220 messages.<\/p>\n<p>The pause interval is configurable, so you can tune it as needed.<\/p>\n<p>Interestingly, you&#8217;ll probably find that your total spam attempts drop significantly after implementing greet_pause, possibly because the spammer&#8217;s software thinks it&#8217;s hitting a bad server or bad addresses, or otherwise getting stuck somehow. It&#8217;s an ingenious and simple method with a low-overhead that discourages significant amounts of spam.<\/p>\n<p>As always, be sure to whitelist all of your important addresses. Visit <a href=\"http:\/\/www.sendmail.org\/doc\/\">sendmail.org\/doc\/<\/a> to learn more.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Slamming is a popular spammer tactic in which the spammer quickly fires off SMTP messages without waiting for responses from the receiving server. A poorly behaved MTA will then accept traffic from the spammer, instead of rejecting it as it should. But even well-behaved MTAs are affected because of the sheer volume of traffic with<a class=\"more-link\" href=\"https:\/\/blog.iwayvietnam.com\/tuanta\/2008\/03\/sendmails-greet_pause\/\">Continue reading <span class=\"screen-reader-text\">&#8220;Sendmail&#8217;s Greet_Pause&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,4],"tags":[],"class_list":["post-20","post","type-post","status-publish","format-standard","hentry","category-sendmail","category-tips","entry"],"_links":{"self":[{"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/posts\/20"}],"collection":[{"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/comments?post=20"}],"version-history":[{"count":0,"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/posts\/20\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/categories?post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/tags?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}