{% extends "base.html" %} {% block title %}Lists{% endblock %} {% block extra_head %} {% endblock %} {% block content %} {% set is_bl = (tab == 'blacklist') %} {% set color = 'danger' if is_bl else 'success' %} {% set icon = 'shield-fill-x' if is_bl else 'shield-fill-check' %} {% set pagination = bl_page if is_bl else wl_page %} {% set entries = pagination.items if pagination else [] %} {% set tab_total = bl_total if is_bl else wl_total %}

Allow / Block Lists

Add {{ 'Blacklist' if is_bl else 'Whitelist' }} Entry
For domain entries, prefix with . to also match subdomains (e.g. .aweber.com matches aweber.com and smtp-soi-g30-187.aweber.com).
{% if current_user.is_superadmin %}
{% endif %}
Bulk Import
{% if current_user.is_superadmin %}
{% endif %}
For domain entries, prefix with . to also match subdomains (e.g. .aweber.com matches aweber.com and smtp-soi-g30-187.aweber.com).
{% if q or type_ %} Clear {% endif %}
{% if pagination %} {% if q or type_ %}{{ pagination.total }} of {{ tab_total }} shown {% else %}{{ tab_total }} entries{% endif %} {% if pagination.pages > 1 %}, page {{ pagination.page }} of {{ pagination.pages }}{% endif %} {% endif %}
{% if current_user.is_superadmin %} {% endif %} {% if entries %} {% for entry in entries %} {% if is_bl %} {% set toggle_url = url_for('lists.toggle_blacklist', entry_id=entry.id) %} {% set delete_url = url_for('lists.delete_blacklist', entry_id=entry.id) %} {% else %} {% set toggle_url = url_for('lists.toggle_whitelist', entry_id=entry.id) %} {% set delete_url = url_for('lists.delete_whitelist', entry_id=entry.id) %} {% endif %} {% if current_user.is_superadmin %} {% endif %} {% endfor %} {% else %} {% endif %}
Type ValueScopeReason Added By Active Created Actions
{% if entry.entry_type == 'email' %} Email {% elif entry.entry_type == 'domain' %} Domain {% elif entry.entry_type == 'ip' %} IP {% elif entry.entry_type == 'cidr' %} CIDR {% else %} {{ entry.entry_type }} {% endif %} {{ entry.value }} {% if entry.domain_id %} {{ entry.domain.domain if entry.domain else entry.domain_id }} {% else %} Global {% endif %} {{ entry.reason or '-' }} {{ entry.added_by_user.username if entry.added_by_user else 'system' }} {% if entry.is_active %} Yes {% else %} No {% endif %} {{ entry.created_at.strftime('%Y-%m-%d') if entry.created_at else '-' }} {% set can_act = current_user.is_superadmin or (current_user.is_domain_admin and entry.domain_id == current_user.domain_id) or (current_user.is_mailbox_user and entry.domain_id == current_user.domain_id and entry.added_by == current_user.id) %} {% if can_act %}
{% else %} - {% endif %}
{% if q or type_ %} No entries match your search. {% else %} No {{ 'blacklist' if is_bl else 'whitelist' }} entries yet. {% endif %}
{% if pagination and pagination.pages > 1 %} {% endif %}
{% endblock %} {% block extra_scripts %}{% endblock %}