aboutsummaryrefslogtreecommitdiffstats
path: root/mail/qmail
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2006-02-09 17:58:27 +0800
committergarga <garga@FreeBSD.org>2006-02-09 17:58:27 +0800
commita680ef6eccf3a3c7e0e60b76485ed4235913a5cf (patch)
tree4ce5ff088e3837a9062368dd11638102c49fb8e8 /mail/qmail
parent28f2e86af0c36084a5d2eed3f7a8407b313ca800 (diff)
downloadfreebsd-ports-graphics-a680ef6eccf3a3c7e0e60b76485ed4235913a5cf.tar.gz
freebsd-ports-graphics-a680ef6eccf3a3c7e0e60b76485ed4235913a5cf.tar.zst
freebsd-ports-graphics-a680ef6eccf3a3c7e0e60b76485ed4235913a5cf.zip
Add TARPIT patch by Chris Johnson <dcj-qmaildoc@palomine.net>
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 <joao@redepegasus.com.br>
Diffstat (limited to 'mail/qmail')
-rw-r--r--mail/qmail/Makefile9
-rw-r--r--mail/qmail/distinfo3
2 files changed, 12 insertions, 0 deletions
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