Allow bigger messages
authorAlex Dehnert <alex@dehnerts.com>
Wed, 25 Aug 2021 19:03:40 +0000 (15:03 -0400)
committerAlex Dehnert <alex@dehnerts.com>
Wed, 25 Aug 2021 19:03:40 +0000 (15:03 -0400)
This is bigger than GMail allows sending (25MB,
https://support.google.com/mail/answer/6584?hl=en&co=GENIE.Platform%3DDesktop#zippy=%2Cattachment-size-limit),
but smaller than they allow receiving (50MB,
https://support.google.com/a/answer/1366776?hl=en).

main.cf

diff --git a/main.cf b/main.cf
index b57cef06de5a2902e5380a0fcb5fd461c4aa0e62..92e362ce1485a1048bc9e2a3d3ab211f61fa5802 100644 (file)
--- a/main.cf
+++ b/main.cf
@@ -483,6 +483,9 @@ mailbox_command = /usr/lib/dovecot/deliver
 # See https://wiki.dovecot.org/LDA/Postfix
 mailbox_size_limit = 512000000
 
+# Max message size 40MB
+message_size_limit = 41943040
+
 # 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