Exchange SPF DNS TXT record
136-exchange-dns-spf.yaml
DNS
What this example does
Exchange infrastructure monitoring: Exchange SPF DNS TXT record. It helps operators check the availability of this client-access or mail-routing dependency.
Checks and behavior
- Queries DNS records or resolver behavior ([{'type': 'TXT', 'contains': ['v=spf1'], 'min_count': 1}]).
- Formats results for nagios output.
Adapt example domains, addresses, credentials and thresholds to your environment before use.
YAML configuration
# 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.
# Exchange example: replace placeholder domains/IPs and adapt expected HTTP statuses to your deployment.
# SPF is optional and can be published on another domain; adapt to your policy.
name: Exchange SPF DNS TXT record
dns:
name: example.com
records:
- type: TXT
contains:
- v=spf1
min_count: 1
monitoring:
service_name: Exchange SPF DNS TXT record
output: nagios
on_failure: critical