Files @ 3722152897ec
Branch filter:

Location: majic-ansible-roles/roles/mail_forwarder/templates/ferm_mail.conf.j2 - annotation

branko
MAR-218: Disable Ansible lints for prefixed role variable names:

- At this point in time, it does not make much sense to introduce
prefixing and breaking every single role invocation.
- Might be worth revisting down the line, although it would require
understanding a bit more clearly if prefixing has any kind of
special logic handling or it's pure guidelines.
{% if smtp_relay_host and smtp_from_relay_allowed %}
{% if smtp_relay_host_ipv4 %}
domain ip {
    # Accept incoming connections on port 25 from SMTP relay host.
    table filter {
        chain INPUT {
            # SMTP for server communication.
            proto tcp dport 25 {
{% for address in smtp_relay_host_ipv4 %}
                saddr {{ address }} ACCEPT;
{% endfor %}
            }
        }
    }
}
{% endif %}

{% if smtp_relay_host_ipv6 %}
domain ip6 {
    # Accept incoming connections on port 25 from SMTP relay host.
    table filter {
        chain INPUT {
            # SMTP for server communication.
            proto tcp dport 25 {
{% for address in smtp_relay_host_ipv6 %}
                saddr {{ address }} ACCEPT;
{% endfor %}
            }
        }
    }
}
{% endif %}
{% endif %}