reject on max_message_size exceeded
Hi
i cannot find any way to reject emails (coming from valid senders) which exceeded the maximum allowed message size.
mailman currently put them on hold, but i want to instantly reject it with an alert to the user.
the only thing i found is: http://www.mail-archive.com/mailman-users@python.org/msg46813.html
but i don't think that shall be good idea
is there a simple/standard way of configuring this behavior?
thanks!
Carlos R. Pasqualini wrote:
i cannot find any way to reject emails (coming from valid senders) which exceeded the maximum allowed message size.
mailman currently put them on hold, but i want to instantly reject it with an alert to the user.
Then you need to either modify Mailman/Handlers/Hold.py as indicated in the post you found here
the only thing i found is: http://www.mail-archive.com/mailman-users@python.org/msg46813.html
but i don't think that shall be good idea
Or you could implement a custom handler http://wiki.list.org/x/l4A9 to go in the pipeline prior to Hold which would do this test and rejection.
is there a simple/standard way of configuring this behavior?
No.
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
El vie, 07-12-2012 a las 14:05 -0800, Mark Sapiro escribió:
Carlos R. Pasqualini wrote:
i cannot find any way to reject emails (coming from valid senders) which exceeded the maximum allowed message size.
mailman currently put them on hold, but i want to instantly reject it with an alert to the user.
Then you need to either modify Mailman/Handlers/Hold.py as indicated in the post you found here
the only thing i found is: http://www.mail-archive.com/mailman-users@python.org/msg46813.html
but i don't think that shall be good idea
Or you could implement a custom handler http://wiki.list.org/x/l4A9 to go in the pipeline prior to Hold which would do this test and rejection.
is there a simple/standard way of configuring this behavior?
No.
Thanks Mark!
On 7 Dec 2012, at 15:52, Carlos R. Pasqualini wrote:
Hi
i cannot find any way to reject emails (coming from valid senders) which exceeded the maximum allowed message size.
mailman currently put them on hold, but i want to instantly reject it with an alert to the user.
the only thing i found is: http://www.mail-archive.com/mailman-users@python.org/msg46813.html
but i don't think that shall be good idea
is there a simple/standard way of configuring this behavior?
Not inside Mailman.
A solution that does not require modifying Mailman code is to put the size restrictions in the MTA's configuration instead. Most MTA's support global message size limits so if you can live with one limit for all lists and all other addresses served by your MTA, you can just set that global limit as a fix. If you need more granularity, many mail filtering tools that act as adjuncts to an MTA (e.g. amavisd-new, mimedefang, etc.) can enforce recipient-specific message size limits before messages are accepted by the MTA. If you are already doing strong spam filtering there is a good chance that you have the tools you need in place, although it may take some work to implement a solution.
participants (3)
-
Bill Cole
-
Carlos R. Pasqualini
-
Mark Sapiro