MAX_MESSAGE_SIZE limit
![](https://secure.gravatar.com/avatar/7810f0c322df5c1ded1c73a27171a5f0.jpg?s=120&d=mm&r=g)
How would I set a MAX_MESSAGE_SIZE to 5MB, for example, for all lists? Or would this need to be done in the MTA?
I would leave the DEFAULT_MAX_MESSAGE_SIZE to 40 KB, but don't want list owners to set it to 0 (unlimited).
Don Hone <http://edirectory.ohio.edu/?$search?uid=hone> Ohio University
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
hone+mailman@oak.cats.ohiou.edu wrote:
How would I set a MAX_MESSAGE_SIZE to 5MB, for example, for all lists? Or would this need to be done in the MTA?
#!/bin/sh
f=mktemp
echo max_message_size = 5000 > $f
cd /path/to/mailman/
for l in bin/list_lists --bare
; do
bin/config_list -i $f $l
done
rm $f
I would leave the DEFAULT_MAX_MESSAGE_SIZE to 40 KB, but don't want list owners to set it to 0 (unlimited).
Then you'd have to edit Mailman/Gui/General.py to remove that setting from the page. I.e. remove or comment these lines
('max_message_size', mm_cfg.Number, 7, 0,
_('''Maximum length in kilobytes (KB) of a message body. Use 0
for no limit.''')),
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
hone+mailman@oak.cats.ohiou.edu wrote:
How would I set a MAX_MESSAGE_SIZE to 5MB, for example, for all lists? Or would this need to be done in the MTA?
#!/bin/sh
f=mktemp
echo max_message_size = 5000 > $f
cd /path/to/mailman/
for l in bin/list_lists --bare
; do
bin/config_list -i $f $l
done
rm $f
I would leave the DEFAULT_MAX_MESSAGE_SIZE to 40 KB, but don't want list owners to set it to 0 (unlimited).
Then you'd have to edit Mailman/Gui/General.py to remove that setting from the page. I.e. remove or comment these lines
('max_message_size', mm_cfg.Number, 7, 0,
_('''Maximum length in kilobytes (KB) of a message body. Use 0
for no limit.''')),
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
hone+mailman@oak.cats.ohiou.edu
-
Mark Sapiro