PowerMTA configuration example

CNAME-delegated DKIM

Provider-side selector naming for SendGrid-style customer delegation.

This is a teaching baseline, not a drop-in universal production configuration. Replace all example values and test with your installed release.

Configuration

# CNAME-delegated DKIM
# Review every address, hostname, credential and path before use.
host-name pmta1.example.com
postmaster [email protected]

<virtual-mta vmta-12>
    smtp-source-host 192.0.2.22 mail12.example.com
</virtual-mta>

<domain *>
    max-smtp-out 2
    max-msg-per-connection 20
    retry-after 15m
    bounce-after 4d
</domain>

# Publish selector1._domainkey.example.com before enabling signing.
domain-key selector1,example.com,/etc/pmta/dkim/example.com.pem

Deployment checklist

  1. Replace documentation IP addresses and domains.
  2. Confirm PTR, forward DNS, SPF, DKIM, DMARC, and Return-Path alignment.
  3. Validate object names and included files.
  4. Start with low traffic and review responses by provider.
  5. Keep credentials outside publicly readable files and rotate them periodically.

What to monitor

Search Trushilla Documentation