increase postfix message size limit

# date | mail -a hugefile.sql fordodone@fordodone.com
# postdrop: warning: uid=0: File too large
send-mail: fatal: root(0): message file too big
# echo "message_size_limit = 102400000" >>/etc/postfix/main.cf && service postfix reload
Reloading Postfix configuration...done.
# 

2 thoughts on “increase postfix message size limit

  1. In case you change that value multiple times by adding the line “message_size_limit” over and over again, the config may get confusing. You can also solve that using the “postconf” command.

    postconf -e message_size_limit=102400000
    service postfix restart

    Cheers, Chris

  2. Thanks. postconf -e solved this problem exactly. I didn’t even have to restart Postfix.

    FYI: “man 5 postconf” shows all the configurable items and values and says this value is in bytes and default is 10240000 so this new value is increasing it by 10 fold to ~97MB.

Leave a Reply

Your email address will not be published. Required fields are marked *