Bump mailbox size limit to 512MB
authorAlex Dehnert <alex@dehnerts.com>
Sat, 11 Nov 2017 00:38:44 +0000 (19:38 -0500)
committerAlex Dehnert <alex@dehnerts.com>
Sat, 11 Nov 2017 00:38:44 +0000 (19:38 -0500)
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

diff --git a/main.cf b/main.cf
index 5c8b27727cad451e1750fd15bd4b2ba6f92fdeda..8a7dd8dd2de935981a220279a38976528a523ebf 100644 (file)
--- 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