{% extends "base.html" %} {% block title %}Dashboard - Email Server Management{% endblock %} {% block page_title %}Dashboard{% endblock %} {% block content %}
Domains

{{ domain_count }}

Active domains
Senders

{{ sender_count }}

Authenticated senders
DKIM Keys

{{ dkim_count }}

Active DKIM keys
Status
{% set health = check_health() %}
Service Status:
" + 'SMTP Server: ' + health.services.smtp_server|title + '
' + 'Web Frontend: ' + health.services.web_frontend|title + '
' + 'Database: ' + health.services.database|title + '
' ) | safe }}"> {{ health.status|title }} {% if health.services.smtp_server == 'running' and health.services.database == 'ok' %} All services running {% else %} {% if health.services.smtp_server == 'stopped' %}SMTP Server stopped{% endif %} {% if health.services.database == 'error' %}Database error{% endif %} {% endif %}
Recent Email Activity
View All
{% if recent_emails %}
{% for email in recent_emails %} {% endfor %}
Time From To Status DKIM
{{ email.created_at|format_datetime }} {{ email.mail_from }} {{ email.rcpt_tos }} {% set delivered = recipient_logs_map[email.id]|selectattr('status', 'equalto', 'success')|list %} {% set failed = recipient_logs_map[email.id]|selectattr('status', 'ne', 'success')|list %} {% if delivered and failed %} {% set overall_status = 'partial' %} {% elif delivered %} {% set overall_status = 'relayed' %} {% else %} {% set overall_status = 'failed' %} {% endif %} {% if overall_status == 'relayed' %} Sent {% elif overall_status == 'partial' %} Partial Fail {% else %} Failed {% endif %} {% if email.dkim_signed %} {% else %} {% endif %}
{% else %}

No email activity yet

{% endif %}
Recent Auth Activity
View All
{% if recent_auths %}
{% for auth in recent_auths %}
{% if auth.success %} {% else %} {% endif %} {{ auth.auth_type|title }}
{{ auth.identifier }}
{{ auth.created_at|format_datetime }}
{{ auth.ip_address }}
{% endfor %}
{% else %}

No authentication activity yet

{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}