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