From a680ef6eccf3a3c7e0e60b76485ed4235913a5cf Mon Sep 17 00:00:00 2001 From: garga Date: Thu, 9 Feb 2006 09:58:27 +0000 Subject: Add TARPIT patch by Chris Johnson What's tarpitting? It's the practice of inserting a small sleep in an SMTP session for each RCPT TO after some set number of RCPT TOs. The idea is to thwart spammers who would hand your SMTP server a single message with a long list of RCPT TOs. If a spammer were to attempt to use your server to relay a message with, say, 10,000 recipients, and you inserted a five-second delay for each recipient after the fiftieth, the spammer would be "tarpitted" and would likely assume that his connection had stalled and give up. Asked by: Joao Ricardo Mendes Pecanha --- mail/qmail/Makefile | 9 +++++++++ mail/qmail/distinfo | 3 +++ 2 files changed, 12 insertions(+) (limited to 'mail/qmail') diff --git a/mail/qmail/Makefile b/mail/qmail/Makefile index c25013eceb6..97301990bad 100644 --- a/mail/qmail/Makefile +++ b/mail/qmail/Makefile @@ -47,6 +47,7 @@ BARRIER_LOCALTIME_PATCH= yes defined(SLAVE_TLS) BARRIER_OUTGOINGIP_PATCH= yes BARRIER_RFC2821_PATCH= yes +BARRIER_TARPIT_PATCH= yes .endif .if !defined(BARRIER_DNS_PATCH) @@ -131,6 +132,9 @@ OPTIONS+= DISCBOUNCES_PATCH "discard double-bounces" off .if !defined(BARRIER_SPF_PATCH) OPTIONS+= SPF_PATCH "Implement SPF checker" off .endif +.if !defined(BARRIER_TARPIT_PATCH) +OPTIONS+= TARPIT_PATCH "Implement TARPIT functions" off +.endif .if defined(SLAVE_TLS) OPTIONS+= TLS_DEBUG "enable additional debug information" off .elif defined(SLAVE_LDAP) @@ -406,6 +410,11 @@ PATCH_SITES+= http://www.alib.jp/files/:localtime PATCHFILES+= qmail-date-localtime.patch:localtime .endif +.if defined(WITH_TARPIT_PATCH) && !defined(BARRIER_TARPIT_PATCH) +PATCH_SITES+= http://www.palomine.net/qmail/:tarpit +PATCHFILES+= tarpit.patch:tarpit +.endif + # Some default values, these can be modified by make command line .if defined(WITH_BIG_CONCURRENCY_PATCH) && !defined(BARRIER_BIG_CONCURRENCY_PATCH) WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT?= 509 diff --git a/mail/qmail/distinfo b/mail/qmail/distinfo index 75510eaedc7..43ad7c1b2d7 100644 --- a/mail/qmail/distinfo +++ b/mail/qmail/distinfo @@ -67,3 +67,6 @@ SIZE (qmail/qmail-smtpd-auth-0.31.tar.gz) = 8798 MD5 (qmail/qmail-smtpd-auth-close3.patch) = 0ba66d73dcba1c68ed714b07e47abd3e SHA256 (qmail/qmail-smtpd-auth-close3.patch) = d933e871261d6740cebe5c21cad81146525cfe06a464e277979f61c1242b5ad4 SIZE (qmail/qmail-smtpd-auth-close3.patch) = 520 +MD5 (qmail/tarpit.patch) = 49a2c0a445981deb09f3af73041d75f5 +SHA256 (qmail/tarpit.patch) = de94abbb71ef5d25e168725e435edd96ce3b14b7347440e0805dcb919b9d9604 +SIZE (qmail/tarpit.patch) = 3089 -- cgit