2011/04/06

Postfix 50MB limit in inbox

I just discovered that by default, Postfix imposes a limit of 50 MB on the user inbox.  In addition, the max size of an incoming mail can not exceed 10 MB.  These are of course not adequate to serve modern days email communications need.  See my checks using "postconf -d | grep size_limit" to find the default settings:

[warren@dnssec ~]# postconf -d  | grep size_limit
body_checks_size_limit = 51200
bounce_size_limit = 50000
header_size_limit = 102400
mailbox_size_limit = 51200000
message_size_limit = 10240000

What I tried to do is add the following two lines in /etc/postfix/main.cf:
 
mailbox_size_limit = 300000000
message_size_limit = 102400000

Mailbox size is extended to 300M and incoming email as large as 100M can be received.  Further checking by "postconf -n | grep size_limit" shows the new settings are properly in place.
 
[warren@dnssec ~]# postconf -n  | grep size_limit

mailbox_size_limit = 300000000
message_size_limit = 102400000

Glad to see that everything works as expected. I think these settings might need to be tweaked again after 1 - 2 years. Oh well, in this course of troubleshooting, I have learnt something new. "postconf -d" is to show the default whereas "postconf -n" is to show the current settings.  Seems pretty useful.

No comments: