[Mailman-Users] Automatic rejection on message size?

2009-12-11 Thread John Todd


Hello -
 I've scoured the wiki, FAQ, and mailing list archives but perhaps  
I'm not using the right keywords... I'm looking to have Mailman  
(2.1.9) automatically reject messages that exceed our pre-set size  
limitation.



 Why?  We have a large number of users who cut/paste debug logs, code  
snippets, SVN output, and all manner of text into their messages.   
These are NOT attachments; they're text in the message body that is  
not MIME encoded.  I manage two dozen or so lists, and every day I get  
at least 10 moderated messages in my to-be-moderated queues that are  
all there because of size overruns.  This gets really tedious, since  
all I do is Reject them with a message about their post exceeding  
the size limit.


 I see no obvious way that I can set a list (or the whole system, for  
that matter) to auto-reject with a message based on size of the  
message.  It would actually seem to me that this would be a desirable  
setting to have overall - is there a recipe for modifying the filter/ 
actions so that I can make this happen?  I'm not a python wizard (or  
even neophyte) and I have very little understanding of the internals  
of Mailman at this point, so I'd kindly ask that any hints someone has  
to offer could be worded in a way that is approachable by a skilled  
*NIX admin but not a developer or Mailman wizard.  :-)  Thanks!


JT

---
John Todd   email:jt...@digium.com
Digium, Inc. | Asterisk Open Source Community Director
445 Jan Davis Drive NW -  Huntsville AL 35806  -   USA
direct: +1-256-428-6083 http://www.digium.com/



--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Automatic rejection on message size?

2009-12-11 Thread Mark Sapiro
John Todd wrote:

  I see no obvious way that I can set a list (or the whole system, for  
that matter) to auto-reject with a message based on size of the  
message.  It would actually seem to me that this would be a desirable  
setting to have overall - is there a recipe for modifying the filter/ 
actions so that I can make this happen?  I'm not a python wizard (or  
even neophyte) and I have very little understanding of the internals  
of Mailman at this point, so I'd kindly ask that any hints someone has  
to offer could be worded in a way that is approachable by a skilled  
*NIX admin but not a developer or Mailman wizard.  :-)  Thanks!


The various miscellaneous holds including message size are only holds.
There is no setting to reject or discard messages exceeding the size
limit.

If you want to change this, you can do one of two things: You can
modify Mailman/Handlers/Hold.py to reject or discard, or you can add a
custom handler to do the rejection between Moderate and Hold (see
http://wiki.list.org/x/l4A9).

Also, if you are going to do this and you also do content filtering, it
is probably a good idea to rearrange the pipeline to put MimeDel
before hold or your custom handler so you are rejecting on the content
filtered size. This can be accomplished by putting the following lines
(comments optional) in mm_cfg.py

#
# Put MimeDel ahead of Hold so too big is based on content filtered
# message.
#
GLOBAL_PIPELINE.remove('MimeDel')
GLOBAL_PIPELINE.insert(GLOBAL_PIPELINE.index('Hold'), 'MimeDel')


Making the actions configurable is something that can be considered for
MM 3.

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Automatic Rejection?

2002-07-13 Thread Pete Holsberg

Is there a way to configure Mailman to discard/reject email
sent by non-members?

Thanks.



--
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



Re: [Mailman-Users] Automatic Rejection?

2002-07-13 Thread Bill Selmeier

Certainly there is. I don't know which version you are using but in 2.0.11
the 6 question on the Privacy configuration page is:

Restrict posting privilege to list members? (member_posting_only)
(Details)


Bill

On Sat, 13 Jul 2002, Pete Holsberg wrote:

 Is there a way to configure Mailman to discard/reject email
 sent by non-members?

 Thanks.



 --
 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




--
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



Re: [Mailman-Users] Automatic Rejection?

2002-07-13 Thread Jon Carnes

You will find this option in the 2.1 beta.  There are also some 
work-arounds (if you have root access to the server) that let you dump 
unauthorized email - without any notifications.

If interested, you can find at least one in the FAQ

Jon Carnes

On Saturday 13 July 2002 09:36 pm, Jim Popovitch wrote:
  -Original Message-
  From: Bill Selmeier
 
  Certainly there is. I don't know which version you are using but in

 2.0.11

  the 6 question on the Privacy configuration page is:
 
  Restrict posting privilege to list members? (member_posting_only)
  (Details)

 In all fairness, all that does is send the list admin an email.  There
 really should be a Restrict posting privilege to list members and never
 notify anyone? option. my $.02


 -Jim P.














 --
 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


--
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



RE: [Mailman-Users] Automatic Rejection?

2002-07-13 Thread Pete Holsberg

On Sat, 13 Jul 2002, Jim Popovitch wrote:

  -Original Message-
  From: Bill Selmeier
 
  Certainly there is. I don't know which version you are
  using but in 2.0.11 the 6 question on the Privacy
  configuration page is:
 
  Restrict posting privilege to list members?
  (member_posting_only) (Details)
 
 
 In all fairness, all that does is send the list admin an
 email.  There really should be a Restrict posting
 privilege to list members and never notify anyone?
 option. my $.02

That;s exactly what I was looking for. member_posting_only
doesn't reject/discard the errant post; the list admin
does!

So I take it that Mailman does not have this?



--
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