{% extends "base.html" %} {% block title %}{{ gd.domain }} · Gateway Setup{% endblock %} {% block content %}
{{ gd.status }} {% if org %}· {{ org.name }}{% endif %} {% if gd.downstream_host %}· relay → {{ gd.downstream_host }}:{{ gd.downstream_port }}{% endif %} {% if gd.last_checked_at %}· checked {{ gd.last_checked_at| pt('%Y-%m-%d %H:%M') }}{% endif %}
Add these at {{ gd.domain }}'s DNS host. Switch the MX last — once it points here, all inbound mail flows through the gateway.
{{ r.note }}
Internet sender → {{ mx_host }} (us) → filter inline (16k IOCs + ClamAV + your allow/block policies) → clean mail relays to {{ gd.downstream_host or 'your mailserver' }}; threats are held in quarantine. {% if gd.org_id %}This domain's mail is scoped to {{ org.name if org else 'its org' }} ({{ msg_count }} processed).{% endif %}