From e2bbc1db5eebec28e96e3833f8764809cbc0e2cf Mon Sep 17 00:00:00 2001 From: nd Date: Sun, 25 Nov 2018 19:21:02 +0100 Subject: [PATCH] add support to set message_size_limit --- templates/main.cf.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/main.cf.j2 b/templates/main.cf.j2 index e3c2983..ba5c027 100644 --- a/templates/main.cf.j2 +++ b/templates/main.cf.j2 @@ -40,7 +40,6 @@ mydestination = {{ inventory_hostname_short }} {{ inventory_hostname }} localhos alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases - relayhost = {{ postfix.relayhost|d('') }} relay_domains = {{ postfix.relay_domains|d([])|join(', ') }} relay_transport = {{ postfix.relay_transport|d('smtp') }} @@ -53,6 +52,8 @@ recipient_delimiter = + inet_interfaces = all inet_protocols = all +message_size_limit = {{ postfix.message_size_limit|d('20480000') }} + {% if "virtual_transport" in postfix and postfix.virtual_transport == "dovecot" %} smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth