Friday, July 4, 2014

HOWTO Fix postfix "File too large" error

After a Squeeze -> Wheezy Dist-Upgrade on our Webmail Server, I was getting the following errors whenever the Server would attempt to send an E-Mail larger than 10MB:

postdrop: warning: uid=33: File too large
sendmail: fatal: ximena@ximunix.org(33): message file too big

To solve this issue, the maximum outgoing message Size nneds to be incresead by adding the following line on your /etc/postfix/main.cf:

message_size_limit = 20480000

And restart your postfix:

service postfix restart

After doing this, the Mail Server should be able to send larger E-mails. :)