aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/MailList.py
diff options
context:
space:
mode:
authorJim Popovitch <jimpop@domainmail.org>2018-06-11 17:55:03 +0000
committerJim Popovitch <jimpop@domainmail.org>2018-06-11 17:55:03 +0000
commite7fff57cf267b6a4c5ba8ce25db19806fe172b32 (patch)
tree57877b2f070af702e21d6a2aab70006011732e38 /Mailman/MailList.py
parent0c2912a8d2a295a00260262cf6b7c01559d368b0 (diff)
downloadmailman2-e7fff57cf267b6a4c5ba8ce25db19806fe172b32.tar.gz
mailman2-e7fff57cf267b6a4c5ba8ce25db19806fe172b32.tar.xz
mailman2-e7fff57cf267b6a4c5ba8ce25db19806fe172b32.zip
Support for verifying subscriber domains against the Spamhaus DBL
Diffstat (limited to 'Mailman/MailList.py')
-rwxr-xr-xMailman/MailList.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py
index fdc3802a..b2bb22a5 100755
--- a/Mailman/MailList.py
+++ b/Mailman/MailList.py
@@ -915,6 +915,12 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin,
syslog('vette', '%s banned subscription: %s%s (Spamhaus IP)',
realname, email, whence)
raise Errors.MembershipIsBanned, 'Spamhaus IP'
+ # See if this is from a spamhaus listed domain.
+ if email and mm_cfg.BLOCK_SPAMHAUS_LISTED_DBL_SUBSCRIBE:
+ if Utils.banned_domain(email):
+ syslog('vette', '%s banned subscription: %s (Spamhaus DBL)',
+ realname, email)
+ raise Errors.MembershipIsBanned, 'Spamhaus DBL'
# Sanity check the digest flag
if digest and not self.digestable:
raise Errors.MMCantDigestError