From a11197b2852bb2a30f619785634a8de0f1201dd4 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 1 Nov 2023 11:14:53 -0700 Subject: [PATCH] email: Increase the size of the message to 100MiB - This includes the envelope size, so the actual size of the message and attachments is somewhat lower. Tests: - Install the app freshly with the patch. Notice that message_size_limit is set to 102400000 by running 'postconf message_size_limit'. - Install the app without the patch. Apply patche and notice that the app is updated. Notice that message_size_limit is set to 102400000 by running 'postconf message_size_limit'. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/email/__init__.py | 2 +- plinth/modules/email/privileged/postfix.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plinth/modules/email/__init__.py b/plinth/modules/email/__init__.py index 666dee9f4..947f45d63 100644 --- a/plinth/modules/email/__init__.py +++ b/plinth/modules/email/__init__.py @@ -53,7 +53,7 @@ class EmailApp(plinth.app.App): app_id = 'email' - _version = 3 + _version = 4 def __init__(self): """Initialize the email app.""" diff --git a/plinth/modules/email/privileged/postfix.py b/plinth/modules/email/privileged/postfix.py index dde893141..fe8aab279 100644 --- a/plinth/modules/email/privileged/postfix.py +++ b/plinth/modules/email/privileged/postfix.py @@ -29,7 +29,9 @@ default_config = { ','.join([ 'permit_sasl_authenticated', 'defer_unauth_destination', - ]) + ]), + 'message_size_limit': + '102400000', } submission_options: dict[str, str] = {