MessageSizeMax in postfix service

Hi --all

I have one problem and don’t find solution on G00gle.

I’m sending attached file on mails, using Thunderbird.
I’ve set default value max size to 10000000 octets.

That’s what i’m trying :

dd if=/dev/zero of=filetest bs=7500000 count=1
1+0 enregistrements lus
1+0 enregistrements écrits
7500000 octets (7,5 MB) copiés, 0,0112787 s, 665 MB/s

I’m attaching this file on mail, and i’ve got this error :

The size of the message you are trying to send exceeds the global size limit (10000000 bytes) of the server. The message was not sent; reduce the message size and try again.

What’s wrong on my way?

db configuration show postfix | grep Message
MessageQueueLifetime=4
MessageSizeMax=10000000
MessageSizeMin=1048576

Thanks for advance :wink:

Take a look at this and consider MIME Expansion bloat

7500000*1,37 = 10275000 which is > 10000000
How it looks like?

That’s it. I’ve learn one more thing today… Thanks for your patience.

You’re welcome, happy to help :wink: