// IPSonic MONITORING TOOLKIT / DOCUMENTATION
ipsonic-probe rainbow unicorn

ipsonic-probe ✦

YAML-driven infrastructure validation. Platform-agnostic checks. Zero cloud dependencies.

DNSTCPHTTP / TLSYAML CONFIGCLI FIRSTKISSOFFLINE READY

Part of the ipsonic project ↗ Visit the main website

Mail domain - MX and SPF

101-mail-domain-mx-spf.yaml

DNS

What this example does

This example demonstrates mail domain - mx and spf.

Checks and behavior

  • Queries DNS records or resolver behavior ([{'type': 'MX', 'min_count': 1}, {'type': 'TXT', 'contains': ['v=spf1']}]).
  • Formats results for nagios output.

Adapt example domains, addresses, credentials and thresholds to your environment before use.

YAML configuration

Download original YAML

# Copyright (c) 2026 mati peterson. Maintainer: mati peterson <ipsonic@mailbox.org>. Project: https://ipsonic.com/probe/. Disclaimer: Provided AS IS, without warranty of any kind. Use at your own risk; validate checks and configurations before production use.
# Email domain hygiene: MX presence and SPF TXT publication.
# DNS assertions do not validate SMTP delivery, SPF syntax, DKIM, or DMARC policy.
name: "Mail domain - MX and SPF"
dns:
  name: example.com
  records:
    - type: MX
      min_count: 1
    - type: TXT
      contains: ["v=spf1"]
monitoring:
  service_name: "Mail DNS MX and SPF"
  output: nagios
  on_failure: critical