postfix message size: file too large rejection

Hi,
I am not sure this is the right place to ask this question, but I have no better thoughts. Any help is appreciated.

I had a sendmail system that I replaced with postfix. Most things work just fine. We routinely send messages up to about 22 MB between non-local users. We also split mail streams using procmail. This worked fine before the replacement. I have added
Code:
message_size_limit = 40960000
to main.cf. This works fine to the initial recipient, but the split does not work and gets a file too large message from postfix. The problem cannot be procmail as its maximum message size is 50MB and that has always worked fine. The size of the mailbox charles2 at the time was 47 MB and the error message is
Code:
<charles2@hatvany.com> (expanded from <charles2>): cannot update mailbox
    /var/mail/charles2 for user charles2. error writing message: File too large

Reporting-MTA: dns; ten.hatvany.com
X-Postfix-Queue-ID: C30572132C4
X-Postfix-Sender: rfc822; charles@hatvany.com
Arrival-Date: Sun,  7 Jan 2024 17:39:46 -0500 (EST)

Final-Recipient: rfc822; charles2@hatvany.com
Original-Recipient: rfc822;charles2@hatvany.com
Action: failed
Status: 5.2.2
Diagnostic-Code: x-unix; input/output error

Thanks for any help.
Charles
 
I have further information. I just tried sending the same large file (20+ MB but less than 21MB) directly to the two mailboxes into which it is usually duplicated to. Both rejected with the file too large message. The mailbox sizes are: [code}-rw------- 1 charles2 mail 51198494 Jan 9 11:18 charles2
-rw--w---- 1 mary2 mail 26189932 Jan 9 11:19 mary2[/code]
Before the switch to postfix this started creating problems at a much higher file size of 2375032098.
Another test to the same mailboxes with a 4.4MB email delivered to mary2, but not to charles2. So this is a problem with a particular size limit of the mailboxes. Is there a limit to the size of mailbox that postfix can handle?
Charles
 
mailbox_size_limit (default: 51200000)
The maximal size of any local(8) individual mailbox or maildir file, or zero (no limit). In fact, this limits the size of any file that is written to upon local delivery, including files written by external commands that are executed by the local(8) delivery agent. The value cannot exceed LONG_MAX (typically, a 32-bit or 64-bit signed integer).

This limit must not be smaller than the message size limit.

Try to set it to 0 (no limit) and reload postfix

 
Back
Top