Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The email server on my ubuntu machine can only receive mails up to 10 megabytes in size. I would like to change that value, but I'm so blind I can't figure out where to change it.

Could not be delivered because of

Server refused mail at MAIL FROM - 552 5.3.4 Message size exceeds fixed limit
share|improve this question
up vote 4 down vote accepted

If you use Postfix

  • add "message_size_limit = 102400000" in "/etc/postfix/"
  • reload postfix: sudo postfix reload
  • check message_size_limit


$ sudo postconf message_size_limit
message_size_limit = 102400000

This is documented on the Postfix site:

message_size_limit (default: 10240000)

The maximal size in bytes of a message, including envelope information.

Note: be careful when making changes. Excessively small values will result in the loss of non-delivery notifications, when a bounce message size exceeds the local or remote MTA's message size limit.

share|improve this answer

Open /etc/postfix/ find message_size_limit and change it from 10240000 (10mb) to e.g. 20480000

share|improve this answer


postconf -n | grep message_size_limit



sudo postconf -e 'message_size_limit = 31457280'

Get (to see if it worked):

postconf -n | grep message_size_limit

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.