# {{ ansible_managed }}

# ---
# - Parametersettins postfix bases system
# ---


_HOSTNAME={{ hostname }}
{% if ipv4_address is defined and ipv4_address %}
_IPV4='{{ ipv4_address }}'
{% else %}
_IPV4=
{% endif %}
{% if ipv6_address is defined and ipv6_address %}
_IPV6="{{ ipv6_address }}"
{% else %}
_IPV6=disabled
{% endif %}

_QUARANTINE_DIR=/var/QUARANTINE
_QUARANTINE_ADMIN=postmaster\@$mydomain

_DB_IN_USE="{{ db_in_use | default('false') }}"
{% if "PostgreSQL" == postfix_db_type %}
_DB_TYPE=PostgreSQL
{% elif 'MySQL' == postfix_db_type %}
_DB_TYPE=MySQL
{% else %} 
_DB_TYPE=None
{% endif %}
{% if postfix_db_host is defined and postfix_db_host %}
_DB_HOST={{ postfix_db_host }}
{% else %}
_DB_HOST=
{% endif %}
{% if postfix_db_name is defined and postfix_db_name %}
_DB_NAME={{ postfix_db_name }}
{% else %}
_DB_NAME=
{% endif %}
{% if postfix_db_user is defined and postfix_db_user %}
_DB_USER={{ postfix_db_user }}
{% else %}
_DB_USER=
{% endif %}
{% if postfix_db_pass is defined and postfix_db_pass %}
_DB_PASS='{{ postfix_db_pass }}'
{% else %}
_DB_PASS=
{% endif %}
_INSTALL_CLAMAV_UNOFFICIAL_SIGS=true
_MALWARE_PATROL_IN_USE=true
_MALWERE_PATROL_FREE=false
{% if mp_receipt_number is defined and mp_receipt_number %}
_MP_RECEIPT_NUMBER={{ mp_receipt_number }}
{% else %}
_MP_RECEIPT_NUMBER=
{% endif %}
_SECURITE_INFO_IN_USE=true
{% if si_authorisation_signature is defined and si_authorisation_signature %}
_SI_AUTHORISATION_SIGNATURE={{ si_authorisation_signature }}
{% else %}
_SI_AUTHORISATION_SIGNATURE=
{% endif %}
