From db254b0206f98fe289291ad2375a0a06d83caab1 Mon Sep 17 00:00:00 2001 From: Alex Dehnert Date: Fri, 10 Nov 2017 19:38:44 -0500 Subject: [PATCH] Bump mailbox size limit to 512MB This should hopefully eliminated errors like: root@olinda:/etc/postfix# head /var/log/mail/dovecot-deliver.log 2017-11-01 06:43:39 lda(alex): Error: pwrite_full() failed with file /home/alex/.maildir/dovecot.index.cache: File too large (process was started with ulimit -f limit) 2017-11-01 06:58:13 lda(alex): Error: pwrite_full() failed with file /home/alex/.maildir/.Junk.server/dovecot.index.cache: File too large (process was started with ulimit -f limit) 2017-11-01 06:58:13 lda(alex): Error: pwrite_full() failed with file /home/alex/.maildir/.Junk.server/dovecot.index.cache: File too large (process was started with ulimit -f limit) 2017-11-01 07:19:39 lda(alex): Error: pwrite_full() failed with file /home/alex/.maildir/.Junk.server/dovecot.index.cache: File too large (process was started with ulimit -f limit) 2017-11-01 07:19:39 lda(alex): Error: pwrite_full() failed with file /home/alex/.maildir/.Junk.server/dovecot.index.cache: File too large (process was started with ulimit -f limit) 2017-11-01 07:20:45 lda(alex): Error: pwrite_full() failed with file /home/alex/.maildir/.Junk.server/dovecot.index.cache: File too large (process was started with ulimit -f limit) 2017-11-01 07:20:45 lda(alex): Error: pwrite_full() failed with file /home/alex/.maildir/.Junk.server/dovecot.index.cache: File too large (process was started with ulimit -f limit) 2017-11-01 07:31:56 lda(alex): Error: pwrite_full() failed with file /home/alex/.maildir/.Junk.server/dovecot.index.cache: File too large (process was started with ulimit -f limit) 2017-11-01 07:31:56 lda(alex): Error: pwrite_full() failed with file /home/alex/.maildir/.Junk.server/dovecot.index.cache: File too large (process was started with ulimit -f limit) 2017-11-01 07:38:38 lda(alex): Error: pwrite_full() failed with file /home/alex/.maildir/.Junk.server/dovecot.index.cache: File too large (process was started with ulimit -f limit) See also https://wiki.dovecot.org/LDA/Postfix --- main.cf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.cf b/main.cf index 5c8b277..8a7dd8d 100644 --- a/main.cf +++ b/main.cf @@ -480,6 +480,10 @@ home_mailbox = .maildir/ mailbox_command = /usr/lib/dovecot/deliver #mailbox_command = /some/where/procmail -a "$EXTENSION" +# Bump mailbox size limit to 512MB since cache files were maxing out +# See https://wiki.dovecot.org/LDA/Postfix +mailbox_size_limit = 512000000 + # The mailbox_transport specifies the optional transport in master.cf # to use after processing aliases and .forward files. This parameter # has precedence over the mailbox_command, fallback_transport and -- 2.34.1