On Wed, Feb 09, 2022 at 05:27:09PM +0000, Dominic Raferd wrote:
> Is your attachment file exactly 7MB or a bit bigger? Encoding as Base64
> (to attach to an email) increases its size by c.37%.
> 10240000/1.37=7.13MB. Any attachment bigger than this will hit your
> message_size_limit.
Base64 encoding encodes each 3 bytes as 4 bytes, but there's also some
overhead as a result of breaking the result into message lines
terminated with <CRLF>. Thus the theoretical limit of 7.5MB in the
absence of line breaks is further reduced by ~3-4%, depending on the
line length chosen by the MUA.
--
Viktor.