Alex Schuilenburg wrote:
>We get a large amount of spam to our unmoderated lists and as moderator
>I am getting tired of rejecting "implicit destination" messages. They
>are always spam - no sensible poster BCC's and all list aliases are covered.
>
>Looking through the list archives there was talk about this feature
>being added into 2.1 and then possibly not making it :-(
>
>Are there any hidden config settings that will allow me to do this in
>2.1.5 or has anyone made such mods and is willing to share the patch
>with me?
If you want to unconditionally do what the subject of this message
says, I think the patch is pretty simple, but I haven't tested it at
all so beware.
In the module Mailman/Handlers/Hold.py you will see
#
# Implicit destination? Note that message originating from the
Usenet
# side of the world should never be checked for implicit
destination.
if mlist.require_explicit_destination and \
not mlist.HasExplicitDest(msg) and \
not msgdata.get('fromusenet'):
# then
hold_for_approval(mlist, msg, msgdata, ImplicitDestination)
# no return
I think all you need to do is replace
hold_for_approval(mlist, msg, msgdata, ImplicitDestination)
with
raise Errors.DiscardMessage
The discard will still be logged in 'vette', but otherwise, the message
will just disappear.
--
Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe:
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy:
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp