FAQ
According to SORBS, they are blacklisting my site because spam
messages that have been sent to our mailing lists are being tossed
back in a bounce that "contains the entire spam, which is
unacceptable". This blacklisting is causing the users and listmembers
some problems.

The SORBS rep said "If you are able to change the configuration of the
mailing lists so that the rejection notices would not contain the
contents of the rejected message, it should be sufficient to cause this
not to happen again." Is there a way that I could change this setting
in mailman?

Thanks,
...eliz

--
Children are made up of genetics, blind luck, and the stories you tell them.
- The Flying Ks

Search Discussions

  • Mark Sapiro at Mar 18, 2006 at 11:20 pm

    Elizabeth Lear wrote:
    The SORBS rep said "If you are able to change the configuration of the
    mailing lists so that the rejection notices would not contain the
    contents of the rejected message, it should be sufficient to cause this
    not to happen again." Is there a way that I could change this setting
    in mailman?

    There is currently no setting for this in Mailman.

    One way to do this is to implement spam filtering on the incoming mail
    in the MTA before it ever reaches Mailman and reject spam at the SMTP
    level.

    It can be done in Mailman by modifying the code in Mailman/Bouncer.py.
    At the end of the definition of the BounceMessage() method is the
    following (watch for wrapped lines)

    # Currently we always craft bounces as MIME messages.
    bmsg = Message.UserNotification(msg.get_sender(),
    self.GetOwnerEmail(),
    subject,
    lang=self.preferred_language)
    # BAW: Be sure you set the type before trying to attach, or
    you'll get
    # a MultipartConversionError.
    bmsg.set_type('multipart/mixed')
    txt = MIMEText(notice,

    _charset=Utils.GetCharSet(self.preferred_language))
    bmsg.attach(txt)
    bmsg.attach(MIMEMessage(msg))
    bmsg.send(self)

    If you simply remove the line

    bmsg.attach(MIMEMessage(msg))

    or change it to

    # bmsg.attach(MIMEMessage(msg))

    the reject email will still be a MIME multipart/mixed message with one
    text/plain subpart containing the reject notice.

    If you want a simple text/plain message, make the above look like

    bmsg = Message.UserNotification(msg.get_sender(),
    self.GetOwnerEmail(),
    subject,
    lang=self.preferred_language)
    bmsg.set_payload(notice,
    Utils.GetCharSet(self.preferred_language))
    bmsg.send(self)


    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedMar 18, '06 at 9:28p
activeMar 18, '06 at 11:20p
posts2
users2
websitelist.org

2 users in discussion

Mark Sapiro: 1 post Elizabeth Lear: 1 post

People

Translate

site design / logo © 2022 Grokbase