diff options
author | Mark Sapiro <mark@msapiro.net> | 2018-06-12 06:55:49 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2018-06-12 06:55:49 -0700 |
commit | d4bf95bd97ebaeebb5291c4f7d9f1d90ff7414fd (patch) | |
tree | 0bf62e3d1796bac1aa7d40895de0cceca04acbcc /Mailman/MailList.py | |
parent | d2da11a73ee15a4e467fdacbb0f5c36447b144f6 (diff) | |
parent | e7fff57cf267b6a4c5ba8ce25db19806fe172b32 (diff) | |
download | mailman2-d4bf95bd97ebaeebb5291c4f7d9f1d90ff7414fd.tar.gz mailman2-d4bf95bd97ebaeebb5291c4f7d9f1d90ff7414fd.tar.xz mailman2-d4bf95bd97ebaeebb5291c4f7d9f1d90ff7414fd.zip |
Implemented BLOCK_SPAMHAUS_LISTED_DBL_SUBSCRIBE.
Diffstat (limited to 'Mailman/MailList.py')
-rwxr-xr-x | Mailman/MailList.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py index 7cd86bf7..cc1be3b5 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 |