{% extends "layout.html" %} {% from "macros/general.html" import display_button_submit, with context %} {% from "macros/msgHandlers.html" import policydMsgHandler with context %} {% block title %}{{ _('Add whitelist') }}{% endblock %} {% block navlinks_active_create %}class="active"{% endblock %} {% block main %} {# Show system message #} {{ policydMsgHandler(msg, listname='whitelist') }}
{# To simplify, just use a single TEXTAREA for user to submit white-/blacklist records.#}

{{ _('Whitelist records') }}

{{ _('One record one line.') }}
{{ display_button_submit(label=_('Add')) }}
{# .col2-3 #}

{{ _('Record format') }}

  • {{ _('IP address') }}
    • {{ _('Single IP Address') }}: 192.168.10.12
    • {{ _('Subnet') }}: 192.168.10.%
  • {{ _('Sender email address') }}
    • {{ _('Single User') }}: user@example.com
    • {{ _('Entire Domain') }}: @example.com
  • {{ _('DNS Name') }}
    • {{ _('Single domain') }}: example.com
    • {{ _('All sub-domains') }}: %.example.com

{{ _('Note') }}: {{ _('The forward and reverse DNS name must match otherwise it will not work.') }}

{# .col1-3 #}
{# .columns #}
{# .box-wrap #}
{# .box-body #}
{# .content-box #} {% endblock main %}