From 1801b7d8aa0bdac8697385d1c2626497b9ff4e11 Mon Sep 17 00:00:00 2001 From: Alex Palaistras Date: Tue, 28 Mar 2023 21:29:40 +0100 Subject: [PATCH] postfix: Allow for messages up to 20MB in size This is lower than most other services (e.g. Gmail allows for receiving up to 50MB and sending up to 25MB) but more than most will need. --- service/postfix/container/config/main.cf.template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/service/postfix/container/config/main.cf.template b/service/postfix/container/config/main.cf.template index 685deb9..5a5aa5d 100644 --- a/service/postfix/container/config/main.cf.template +++ b/service/postfix/container/config/main.cf.template @@ -66,6 +66,9 @@ maximal_queue_lifetime = 7d minimal_backoff_time = 1000s maximal_backoff_time = 8000s +# Set maximum message size (with attachments) in bytes. +message_size_limit = 20480000 + # How long to wait when servers connect before receiving rest of data. smtp_helo_timeout = 60s