{% extends "layout.html" %} {% from "macros/general.html" import set_account_activity_img, display_subnav, show_pages with context %} {% from "macros/iredapd.html" import display_smtp_outbound_sessions, display_idtabs_of_smtp_sessions with context %} {% block title %}{{ _('Outbound SMTP Sessions') }}{% endblock %} {% block navlinks_activities %}class="active"{% endblock %} {% block main %}
    {{ display_idtabs_of_smtp_sessions(activity='outbound_smtp') }}
{% set kw_map = {'domain': _('Domain'), 'sasl_username': _('Authenticated User'), 'sender': _('Envelope Sender'), 'recipient': _('Recipient'), 'ip': _('IP Address'), 'encryption_protocol': _('Encryption Protocol'), } %}

{{ _('Outbound SMTP Sessions') }} {% if account_type in ['domain', 'sasl_username', 'sender', 'recipient', 'client_address', 'encryption_protocol'] %} {{ kw_map[account_type] }} {{ account }} {% endif %} {% if total %} ({{ (current_page-1) * page_size_limit + 1 }}-{{ (current_page-1) * page_size_limit + (rows |length) }}/{{ total }}) {% endif %}

{% if num_insecure_outbound is defined and num_insecure_outbound > 0 %}

{{ _('%d users sent emails without secure connection in last %d hours.') |format(num_insecure_outbound, query_insecure_outbound_hours) }}

{% endif %} {{ display_smtp_outbound_sessions(rows=rows) }} {% set baseurl = ctx.homepath + '/activities/smtp/sessions/outbound' %} {% if account_type and account %} {% set baseurl = baseurl + '/' + account_type + '/' + account %} {% endif %} {{ show_pages(baseurl=baseurl, total=total, cur_page=current_page) }}
{# box-body #}
{# content-box #} {% endblock main %}