File Hot - Sample Powermta Configuration
: If sending millions of emails, use a high-performance disk (like an SSD or NVMe) or a RAM-disk to prevent I/O wait times from slowing down the injection. Exclusion from Scanning
<queue outbound> max-size 10G temp-fail-retry 300 temp-fail-interval 600 temp-fail-retries 6 </queue>
This command applies configuration changes without stopping the mailer or dropping existing connections. No restart is required for most directive changes, except:
allows PowerMTA to detect 4xx "soft bounce" errors (like reputation-based throttling) and automatically reduce the sending rate until the ISP's filters relax. Time4Servers Best Practices for Maintenance Five Essential PowerMTA Configuration Tips - Bird sample powermta configuration file hot
<domain yahoo.com> max-smtp-out 8 max-msg-rate 15/s smtp-starttls required </domain>
####################################################################### # PowerMTA (PMTA) Hot Configuration Sample - Production Ready # Location: /etc/pmta/config #######################################################################
smtpd-enforce-spf no smtpd-enforce-dkim no : If sending millions of emails, use a
Below is a conceptual example of a configuration designed for a high-performance environment with multiple IPs and ISP-specific tuning.
: Thrives on a steady stream of traffic rather than massive bursts. The max-msg-rate 120/m keeps delivery smooth. 3. Virtual MTA Pooling ( virtual-mta-pool )
# ===================================================================== # PowerMTA Custom Directive Template for Hotmail / Outlook / Live / Msn # ===================================================================== # --- Queue Management --- queue-to hotmail.com # Groups all Microsoft variants into a single queue retry-interval 30m # Wait 30 minutes before retrying deferred emails max-retry-time 4d # Keep trying to deliver for up to 4 days # --- Connection and Traffic Control --- max-smtp-out 20 # Maximum concurrent SMTP connections from this server max-msg-per-connection 100 # Close connection and open a new one after 100 emails max-errors-per-connection 5 # Drop the connection early if multiple errors occur # --- Delivery Rate Limits (Throttling) --- max-msg-per-hour 5000 # Global cap per hour for this specific domain group min-retry-interval 15m # Minimum delay between retries for temporary failures # --- Bounce and Error Handling --- bounce-on-4xx-status false # Do not bounce emails permanently on 4xx temp errors log-delivery-failures true # Record detailed failure logs for debugging log-fallback-failures true # Record fallback routing logs # --- Automated Backoff (Critical for Microsoft Filters) --- # If Microsoft responds with standard throttling codes, reduce traffic 421 RP-001 *, 1h, 5, 1000 # Back off for 1 hour, drop connections to 5, max 1000/hr 421 4.3.2 *, 45m, 2, 500 # Server busy code: Back off 45 mins, drop to 2 connections # --- Security and Authentication --- use-starttls yes # Enforce TLS encryption for secure transit require-starttls no # Fall back to clear text only if remote server lacks TLS dkim-sign yes # Force DKIM signing on all outgoing items Use code with caution. Critical Directive Breakdown 1. Queue Consolidation ( queue-to ) In this article
Separating your traffic into Virtual MTAs ( virtual-mta ) is critical. If you mix your corporate transactional emails with marketing emails, a single block from Hotmail will halt all operational emails. The configuration creates a pool-hot-traffic group, allowing PMTA to load-balance outbound emails evenly across multiple clean IP addresses. 3. Smart Back-Off Settings
# IP reputation management ip_reputation enabled = true cache_size = 10000
<source 127.0.0.1> always-allow-relaying yes Use code with caution. Copied to clipboard Key Directives Explained <pickup-directory [path]>
In this article, we've explored the benefits of using PowerMTA, discussed the importance of a well-crafted configuration file, and provided a sample PowerMTA configuration file to help you optimize your email delivery setup. By following best practices and using a hot configuration reload, you can ensure that your PowerMTA instance is running efficiently and effectively, delivering email messages to your subscribers and customers. Whether you're an email service provider or a business looking to improve your email delivery, PowerMTA is a powerful tool that can help you achieve your goals.