''Maximum message size'' for postifix node issue.

Created:

2016-11-16 13:18:35 UTC

Modified:

2016-12-21 20:25:26 UTC

0

Was this article helpful?


Have more questions?

Submit a request

''Maximum message size'' for postifix node issue.

Symtopms

We set up 'Maximum message size' for Postfix node to 10 MB, and trying to send an email with 9 MB attachment file, but it is not working, why?

Resolution

This parameter manages the following parameter in Postfix configuration (in command above it is shown in bytes while in Control Panel it is shown in kilobytes):

# postconf | grep message_size_limit
message_size_limit = 10240000

According to official Postfix documentation this parameter defines the maximal size in bytes of a message, including envelope information:

http://www.postfix.org/postconf.5.html

Additionally, the e-mail is a text-only protocol therefore all binary part of message (e.g. attachment) is base64-encoded. Base64 is always encodes 3 original bytes into 4 base64-bytes, so the attachment size during e-mail transfer is increasing in 1,25 times.

So in case if it is needed to allow to send an email with 10 Mb attachemnts you should increase the 'Maximum message size' considering the explanations above

Have more questions? Submit a request
Please sign in to leave a comment.