<virtual-mta domain-specific> bind-to-source-ip 192.168.1.100 <domain example.com> max-smtp-out 10 </domain> <domain gmail.com> max-smtp-out 20 route alt4.gmail-smtp-in.l.google.com:25 </domain> </virtual-mta> <domain yahoo.com> max-smtp-out 2 # total connections max-smtp-out-per-ip 1 # per destination IP smtp-pipeline-depth 5 # pipelined commands delivery-interval 10 # seconds between connection attempts 5. Routing & Failover Domains Smart host routing:

log-domain /var/log/pmta/domains/%d.log # %d expands to domain name Then within <domain> :

<domain example.com> log-entries yes accounting-log /var/log/pmta/acct-example.csv </domain> Use pmta show domain commands:

PowerMTA (PMTA) treats domains as critical routing and policy endpoints. Unlike generic MTAs, PMTA separates the envelope domain (SMTP conversation) from the policy domain (rules). These are set within a <domain> block or global defaults. <domain> example.com ... Defines a specific domain configuration block. All settings inside apply only to this recipient domain.

<domain mylocal.com> local yes mailbox-command /usr/bin/procmail </domain> Enable domain-specific logging in <source> or global log-domain :