PreshBlog

49MB mailbox size limit (Postfix & procmail)

by on Jul.06, 2007, under Linux, System Administration

Here for future reference more than anything else, and to help anyone who’s Googling for this.

I have my email delivered to a box at home running Postfix, and stored by procmail into mbox mailboxes.

I was finding that, whenever a mailbox file reached about 49MB, procmail would no longer deliver mail into that mailbox, instead dumping it into my main system mailbox.

A look at procmail’s logs would reveal:


procmail: Error while writing to "lists/cpan-testers"
procmail: Truncated file to former size

And sure enough, the file was 49MB:


[davidp@supernova:~/INBOX/lists]$ ls -lh cpan-testers
-rw------- 1 davidp users 49M 2007-07-06 16:42 cpan-testers
[davidp@supernova:~/INBOX/lists]$ ls -l cpan-testers
-rw------- 1 davidp users 51198081 2007-07-06 16:42 cpan-testers

After a bit of Googling, I found that this isn’t due to procmail but due to Postfix’s mailbox_size_limit setting. This limit is enforced via UNIX process limits, hence will apply to procmail or whatever the local delivery agent is.

Checking the default value shows:


[root@supernova:]# postconf -d mailbox_size_limit
mailbox_size_limit = 51200000

Okay… there’s the problem.

Changing it to a stupidly high value:


[root@supernova:]# postconf -ev mailbox_size_limit=99999999999999

Problem solved :)

I found the details I needed at: http://www.security-express.com/archives/postfix/2003-02/2131.html

Hope this helps somebody.


19 Comments for this entry

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!