[Mailman-Users] reject on max_message_size exceeded

Bill Cole mailmanu-20100705 at billmail.scconsult.com
Fri Dec 7 23:25:05 CET 2012


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.



More information about the Mailman-Users mailing list