~futatuki/mailman/edithtml-lang-select

« back to all changes in this revision

Viewing changes to Mailman/MailList.py

  • Committer: Mark Sapiro
  • Date: 2018-06-12 13:55:49 UTC
  • mfrom: (1767.1.1 subscriber-dbl-check)
  • Revision ID: mark@msapiro.net-20180612135549-tr08clp73256mm21
Implemented BLOCK_SPAMHAUS_LISTED_DBL_SUBSCRIBE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
915
915
                syslog('vette', '%s banned subscription: %s%s (Spamhaus IP)',
916
916
                       realname, email, whence)
917
917
                raise Errors.MembershipIsBanned, 'Spamhaus IP'
 
918
        # See if this is from a spamhaus listed domain.
 
919
        if email and mm_cfg.BLOCK_SPAMHAUS_LISTED_DBL_SUBSCRIBE:
 
920
            if Utils.banned_domain(email):
 
921
                syslog('vette', '%s banned subscription: %s (Spamhaus DBL)',
 
922
                       realname, email)
 
923
                raise Errors.MembershipIsBanned, 'Spamhaus DBL'
918
924
        # Sanity check the digest flag
919
925
        if digest and not self.digestable:
920
926
            raise Errors.MMCantDigestError