# {{ ansible_managed }}

# ----------------------------------------------------
# ---
# - Parameter Settings Postfix Advanced System
# - 
# - Note: You need not to create a configuration file,
# -       the installation script will do that.
# ---
# ----------------------------------------------------

_HOSTNAME={{ hostname }}
{% if ipv4_address is defined and ipv4_address %}
_IPV4='{{ ipv4_address | default(omit) }}'
{% else %}
_IPV4=
{% endif %}
{% if ipv6_address is defined and ipv6_address %}
_IPV6="{{ ipv6_address }}"
{% else %}
_IPV6=disabled
{% endif %}
_ADMIN_EMAIL="{{ admin_email }}" 
_SASL_AUTH_ENABLED="{{ sasl_auth_enable | default('no') }}"
{% if sasl_user is defined and sasl_user %}
_SASL_USER='{{ sasl_user  }}'
{% else %}
_SASL_USER=
{% endif %}
{% if sasl_pass is defined and sasl_pass %}
_SASL_PASS='{{ sasl_pass }}'
{% else %}
_SASL_PASS=
{% endif %}
{% if is_sympa_list_server is defined and is_sympa_list_server is sameas true %}
_RELAY_HOST=true
_SYMPA_LIST_SERVER=true
{% else %}
_RELAY_HOST={{ is_relay_host | default('false') }}
_SYMPA_LIST_SERVER=false
{% endif %}
_INSTALL_DMARC_REPORT_SUPPORT={{ support_dmarc_reporting | default('false') }}
