Is there a "global" max_message_size?
I'm running Mailman under Docker (maxking). I've a test list with a max_message_size set to 0 (unlimited). I know it's not what anyone should be doing in production, but I still want to test this. I've sent a series of messages with increasingly larger attachments to the list. Going up in 5MB increments, I find that while a message with a 15MB attachement gets through to the list members, a 20MB one doesn't.
The interesting thing is the message in the mail logs:
Jun 19 11:44:50 venus postfix/lmtp[17630]: C0C7928564: to=<mj@lists.scss.tcd.ie>, relay=172.19.199.2[172.19.199.2]:8024, delay=109, delays=2.2/0.04/0.01/107, dsn=5.0.0, status=bounced (host 172.19.199.2[172.19.199.2] said: 552 Error: Too much mail data (in reply to end of DATA command))
So 172.19.199.2 is complaining about "Too much mail data". That's the IP address of the mailman-core container. I'm wondering why this is happening, and where the decision is being made, as it seems at odds with the fact that the mailing list has no limit on message size.
Would be grateful for any insights, many thanks. Stephen Kenny
On 6/19/20 4:03 AM, skenny@scss.tcd.ie wrote:
Jun 19 11:44:50 venus postfix/lmtp[17630]: C0C7928564: to=<mj@lists.scss.tcd.ie>, relay=172.19.199.2[172.19.199.2]:8024, delay=109, delays=2.2/0.04/0.01/107, dsn=5.0.0, status=bounced (host 172.19.199.2[172.19.199.2] said: 552 Error: Too much mail data (in reply to end of DATA command))
So 172.19.199.2 is complaining about "Too much mail data". That's the IP address of the mailman-core container. I'm wondering why this is happening, and where the decision is being made, as it seems at odds with the fact that the mailing list has no limit on message size.
Mailman's lmtp runner which implements the server that receives mail via LMTP uses the aiosmtpd.lmtp.LMTP class to implement the server. This has a default size limit of 33554432 bytes (32 MB) and that's where the "552 Error: Too much mail data" comes from.
There is also the message_size_limit setting in postfix. Presumably you've changed that because it defaults to 10240000 bytes (about 10 MB).
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mark Sapiro wrote:
Mailman's lmtp runner which implements the server that receives mail via LMTP uses the aiosmtpd.lmtp.LMTP class to implement the server. This has a default size limit of 33554432 bytes (32 MB) and that's where the "552 Error: Too much mail data" comes from.
Ah - fantastic! I had tried a fairly crude trawl through the mailman-core container files (not knowing what exactly to look for really), but failed to come up with anything.
There is also the message_size_limit setting in postfix. Presumably you've changed that because it defaults to 10240000 bytes (about 10 MB).
Yes I fortunately did remember to set this to a very high value (way higher than 32MB) during testing.
Thanks so much for the explanation Mark, very much appreciated. Stephen
On 6/20/20 3:51 PM, skenny@scss.tcd.ie wrote:
Mark Sapiro wrote:
Mailman's lmtp runner which implements the server that receives mail via LMTP uses the aiosmtpd.lmtp.LMTP class to implement the server. This has a default size limit of 33554432 bytes (32 MB) and that's where the "552 Error: Too much mail data" comes from.
Ah - fantastic! I had tried a fairly crude trawl through the mailman-core container files (not knowing what exactly to look for really), but failed to come up with anything.
Presumably the files in the container contain a file like aiosmtpd-1.2-py3.7.egg (modulo versions), but that file is zip compressed so grep won't find anything in it.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
skenny@scss.tcd.ie