Skip to content

Postmaster Tools — Google, Microsoft, Yahoo — wiring each into a monitoring loop

Three different consoles, three different verification flows, three different data exports. Here is the integration we run for every high-volume sender.

Your DMARC aggregate inbox is showing healthy dmarc=pass rates. Send volume is steady. Then over the course of a week, your conversion rate on transactional confirmation emails drops noticeably, and the support desk starts getting “did you send this?” tickets. DMARC reports show authentication is fine — the problem is reputation, and you can’t see it without logging into each provider’s postmaster console. Google has Postmaster Tools, Microsoft has SNDS plus the JMR (Junk Mail Reporting) program, Yahoo has its Complaint Feedback Loop and the Sender Hub. None of them surfaces data through DMARC reports. You wire them in or you fly blind.

What’s happening

Inbox providers maintain reputation scores per IP and per domain. The score governs whether mail lands in inbox, in spam, or gets deferred. The DMARC rua stream tells you about authentication; reputation lives in a separate pipeline. Each of the three big inboxes exposes some of that pipeline through a postmaster console:

  • Google Postmaster Tools — domain and IP reputation buckets (Bad/Low/Medium/High), spam rate, authentication pass rates, encryption metrics, delivery errors. Verification by DNS TXT or HTML upload. Data via the Postmaster Tools API or the GUI; the API is the only sustainable feed.
  • Microsoft SNDS / JMR — SNDS (Smart Network Data Services) reports per-IP reputation and spam trap hits at outlook.com, hotmail.com, live.com. JMR is the complaint feedback loop — you receive copies of mail your recipients clicked “Junk” on. SNDS is IP-based; the access flow is awkward and requires re-applying every six months for some IP ranges.
  • Yahoo Sender Hub — reputation dashboard, complaint feedback loop registration (Yahoo, AOL, Verizon-legacy addresses), and TLS-RPT visibility. Verification is by _dmarc posture plus a TXT record dedicated to the Sender Hub.

Wire all three into a monitoring loop or you only learn about reputation collapse when conversions drop.

How to verify

For each provider, confirm verification is live and the data is flowing.

Google Postmaster Tools:

# Verification TXT (one-time; remove only after the property is "Live")
dig +short TXT example.com | grep google-site-verification
# google-site-verification=Aa1bBcCdDeEfFg...

API access uses a service account with the Postmaster Tools API enabled:

curl -H "Authorization: Bearer ${ACCESS_TOKEN}" \
  "https://gmailpostmastertools.googleapis.com/v1/domains/example.com/trafficStats?startDate=2026-05-01&endDate=2026-05-13" \
  | jq '.trafficStats[].domainReputation'
# "HIGH"
# "HIGH"
# "MEDIUM"   <-- this is the signal to investigate

Microsoft SNDS:

Verification is by IP ownership claim from the registered postmaster contact. Once approved, data is exported as CSV via a per-account download URL. There is no API; you scrape the CSV on a daily cron:

# Daily SNDS fetch
curl -sL "https://sendersupport.olc.protection.outlook.com/snds/data.aspx?key=${SNDS_KEY}" \
  -o /var/log/postmaster/snds/$(date +%F).csv

# Bad reputation IPs in today's pull
awk -F, '$8=="YELLOW" || $8=="RED"' /var/log/postmaster/snds/$(date +%F).csv

Yahoo Sender Hub:

dig +short TXT example.com | grep yahoo-verification
# yahoo-verification=AbCd1234EfGh5678...

Sender Hub exposes a daily reputation export through the dashboard. Yahoo’s API surface is limited; the working pattern is to download the dashboard’s reputation CSV via a session token captured from a logged-in browser session, scoped to the postmaster account.

The fix

A working postmaster integration is three pieces: verification, scheduled data pull, and alerting on regression.

1. Verification — same DNS rollout, three records

Add all three TXT records to your authoritative zone in one change. Use a 3600 TTL on first publish so a typo is recoverable.

# BIND zone file fragment for example.com
example.com.   IN TXT  "google-site-verification=Aa1bBcCdDeEfFg..."
example.com.   IN TXT  "yahoo-verification=AbCd1234EfGh5678..."
# Microsoft uses postmaster contact email confirmation + IP ownership;
# no DNS record beyond your existing SPF/DKIM/DMARC.

Validate from outside your DNS:

dig @8.8.8.8 +short TXT example.com | grep -E 'google-site|yahoo-verification'

Then complete verification in each console.

2. Scheduled data pull

A shared pattern: nightly cron pulls each provider’s data, writes JSON/CSV into a known path, exports Prometheus metrics from those files.

#!/usr/bin/env bash
# /usr/local/bin/postmaster-pull.sh
set -euo pipefail
DATE=$(date +%F)
OUT=/var/log/postmaster
mkdir -p "${OUT}/google" "${OUT}/microsoft" "${OUT}/yahoo"

# --- Google Postmaster Tools API ---
TOKEN=$(curl -s -X POST \
  --data-urlencode "client_id=${GOOG_CLIENT_ID}" \
  --data-urlencode "client_secret=${GOOG_CLIENT_SECRET}" \
  --data-urlencode "refresh_token=${GOOG_REFRESH}" \
  --data-urlencode "grant_type=refresh_token" \
  https://oauth2.googleapis.com/token | jq -r .access_token)

curl -s -H "Authorization: Bearer ${TOKEN}" \
  "https://gmailpostmastertools.googleapis.com/v1/domains/example.com/trafficStats?startDate=${DATE}&endDate=${DATE}" \
  > "${OUT}/google/${DATE}.json"

# --- Microsoft SNDS CSV ---
curl -sL "https://sendersupport.olc.protection.outlook.com/snds/data.aspx?key=${SNDS_KEY}" \
  -o "${OUT}/microsoft/${DATE}.csv"

# --- Yahoo Sender Hub CSV (session cookie required) ---
curl -s -b "${YAHOO_COOKIE_JAR}" \
  "https://senders.yahooinc.com/api/reputation/export?domain=example.com&date=${DATE}" \
  -o "${OUT}/yahoo/${DATE}.csv"

# Sanity check files are non-empty
for f in "${OUT}/google/${DATE}.json" "${OUT}/microsoft/${DATE}.csv" "${OUT}/yahoo/${DATE}.csv"; do
  if [[ ! -s "$f" ]]; then
    echo "EMPTY: $f" >&2
    exit 1
  fi
done

Cron it daily after 06:00 UTC (after the providers’ overnight aggregations):

15 6 * * *  /usr/local/bin/postmaster-pull.sh >> /var/log/postmaster/run.log 2>&1

3. Prometheus textfile exporter — alert on regression

Convert the daily files into Prometheus metrics via the node_exporter textfile collector:

#!/usr/bin/env bash
# /usr/local/bin/postmaster-metrics.sh
set -euo pipefail
DATE=$(date +%F)
OUT=/var/lib/node_exporter/textfile_collector/postmaster.prom.$$
TARGET=/var/lib/node_exporter/textfile_collector/postmaster.prom

GOOG_REP=$(jq -r '.trafficStats[0].domainReputation // "UNKNOWN"' \
  /var/log/postmaster/google/${DATE}.json)
GOOG_SPAM=$(jq -r '.trafficStats[0].userReportedSpamRatio // 0' \
  /var/log/postmaster/google/${DATE}.json)

# Convert text bucket to numeric for alerting:
# BAD=0 LOW=1 MEDIUM=2 HIGH=3
case "${GOOG_REP}" in
  HIGH)    GREP_NUM=3 ;;
  MEDIUM)  GREP_NUM=2 ;;
  LOW)     GREP_NUM=1 ;;
  BAD)     GREP_NUM=0 ;;
  *)       GREP_NUM=-1 ;;
esac

cat > "${OUT}" <<EOF
# HELP postmaster_google_reputation Domain reputation bucket (0=BAD,3=HIGH)
# TYPE postmaster_google_reputation gauge
postmaster_google_reputation{domain="example.com"} ${GREP_NUM}

# HELP postmaster_google_spam_ratio Spam complaint ratio reported by Gmail
# TYPE postmaster_google_spam_ratio gauge
postmaster_google_spam_ratio{domain="example.com"} ${GOOG_SPAM}
EOF

mv "${OUT}" "${TARGET}"

Alerting rules:

# Prometheus rule file
groups:
  - name: postmaster
    rules:
      - alert: GooglePostmasterReputationDrop
        expr: postmaster_google_reputation < 2
        for: 24h
        labels: { severity: warning }
        annotations:
          summary: "Gmail reputation for {{ $labels.domain }} dropped below MEDIUM"
      - alert: GoogleSpamRatioHigh
        expr: postmaster_google_spam_ratio > 0.003
        for: 6h
        labels: { severity: critical }
        annotations:
          summary: "Gmail-reported spam ratio above 0.3% on {{ $labels.domain }}"

The 0.3% spam-rate threshold is below Gmail’s published 0.1%–0.3% guidance because once you cross 0.3% sustained, Gmail’s filter is already throttling you. The alert should fire before the throttling, not after.

4. Operational notes

  • Microsoft SNDS keys expire and the application is fragile. Set a 5-month calendar reminder to re-apply. Losing access for a quarter loses you the reputation lag indicators across the entire Outlook universe.
  • Google domain reputation moves slowly. A drop from HIGH to MEDIUM is significant. Two weeks of sustained LOW and your transactional stream is in trouble.
  • Yahoo’s data lags by 48 hours. Don’t alert on same-day data; alert on the 3-day moving average.
  • Pair this with TLS-RPT. Publish a _smtp._tls TXT record with a rua mailto for TLS reporting. Microsoft and Google both honour it. Combined with postmaster data you get a complete operational view of inbound treatment.

Stack Harbor wires postmaster tools into the same monitoring stack we already run for our customers, with alert routing into your on-call, under environment management and our monitoring practice — scope a reputation review if your transactional stream is drifting.