Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers 2

up vote 4 down vote accepted

If you use Postfix

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

Example(100Mb):

$ 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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.