From a75d3705a0f745542236e1d8c8f423d357acc5c6 Mon Sep 17 00:00:00 2001 From: Jason Rothstein Date: Thu, 15 Sep 2022 20:41:20 -0500 Subject: [PATCH] Make size of email permitted configurable --- defaults/main.yml | 1 + templates/Fedora/35/etc/postfix/main.cf | 2 ++ templates/Fedora/36/etc/postfix/main.cf | 2 ++ 3 files changed, 5 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index af38716..bddcd8d 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -2,3 +2,4 @@ # defaults file for ensure_postfix postmaster_email: 'postmaster@example.com' postfix_vhost: '{{ inventory_hostname }}' +postfix_message_size_limit: 10240000 diff --git a/templates/Fedora/35/etc/postfix/main.cf b/templates/Fedora/35/etc/postfix/main.cf index 5bf98a3..b3d981a 100644 --- a/templates/Fedora/35/etc/postfix/main.cf +++ b/templates/Fedora/35/etc/postfix/main.cf @@ -759,3 +759,5 @@ delay_notice_recipient = {{ postmaster_email }} error_notice_recipient = {{ postmaster_email }} smtpd_helo_required = yes disable_vrfy_command = yes +message_size_limit = {{ postfix_message_size_limit }} + diff --git a/templates/Fedora/36/etc/postfix/main.cf b/templates/Fedora/36/etc/postfix/main.cf index 5bf98a3..b3d981a 100644 --- a/templates/Fedora/36/etc/postfix/main.cf +++ b/templates/Fedora/36/etc/postfix/main.cf @@ -759,3 +759,5 @@ delay_notice_recipient = {{ postmaster_email }} error_notice_recipient = {{ postmaster_email }} smtpd_helo_required = yes disable_vrfy_command = yes +message_size_limit = {{ postfix_message_size_limit }} +