Page MenuHomePhabricator

Message sizes exceeding limits after migrating from Exim to Postfix
Closed, ResolvedPublic

Description

Since July 2024, we've had users reporting receiving this message when attempting to send emails with attachments smaller than 25MB:

The response from the remote server was:

552 5.3.4 Message size exceeds fixed limit

The recipients for the emails being blocked are both Google groups and GMail mailboxes in our domain, both from @wikimedia.org and external senders. As a workaround, folks are able to add files to Google Drive and share those links.
Prior to his departure, Nick confirmed that our default attachment size limit is 25MB in Google Admin console, without any further ability to increase this limit (see this Google knowledge article.)
Based on our investigation of the bounceback message IDs and other resources, it seems like there may be a mail server issue - possibly some global limit on message and/or attachment size?

Message IDs:
672ea76a.050a0220.1482da.e318.GMR@mx.google.com
672e7062.a70a0220.334423.6497.GMR@mx.google.com
66a3e4a9.5d0a0220.18999.0809.GMR@mx.google.com
668592d8.2e0a0220.1e749.657c.GMR@mx.google.com
66f6c8a3.050a0220.1d38b9.5bd6.GMR@mx.google.com

Event Timeline

Change #1110873 had a related patch set uploaded (by JHathaway; author: JHathaway):

[operations/puppet@production] postfix: increase message size limit from 10MiB to 50MiB

https://gerrit.wikimedia.org/r/1110873

Change #1110873 merged by JHathaway:

[operations/puppet@production] postfix: increase message size limit from 10MiB to 50MiB

https://gerrit.wikimedia.org/r/1110873

@DSeyfert_WMF this appears to be a regression in our mail servers when migrating from Exim to Postfix. Exim had a default message size limit of 50MiB, but because we did not explicitly set the value, it was not carried over to the Postfix configuration. Postfix's default is lower, 10MiB, I have now raised the total message size limit to 50MiB, which is inline with the gmail default. Postfix does not offer a per attachment limit, so messages with attachments larger than 25MiB will be rejected by gmail, rather than Postfix. After this change I was able to successfully test sending a 21MiB message.

Aklapper renamed this task from Message sizes exceeding limits to Message sizes exceeding limits after migrating from Exim to Postfix.Jan 15 2025, 5:03 AM

Thank you @jhathaway - initial tests from end users look good, thank you for your help resolving this!