-
Notifications
You must be signed in to change notification settings - Fork 0
Outbound Transports and MTA
PolyPress supports hybrid outbound sending strategies, combining high-speed local MTA direct deliveries with tenant-level relays and host-wide SMTP fallbacks.
In Direct Send Mode, PolyPress behaves as a full Mail Transfer Agent (MTA). It queries DNS servers directly for the MX records of recipient email domains, opens SMTP connections to destination servers on port 25, and delivers messages without using third-party relays.
Direct delivery requires proper DNS setups to prevent spam filters from rejecting your emails:
- Ensure your sending server's reverse DNS (rPTR) record matches the domain configured in the Mail Server HELO/EHLO Identity settings.
- If your host uses multiple IP interfaces, configure the Sending IP Override to force outbound connections through the correct IP.
MTA direct deliveries are signed with 2048-bit RSA key pairs:
- Navigate to Sending Settings -> Direct Send.
- Enable DKIM generation to output the public key.
- Add the corresponding
TXTrecord to your domain's DNS registry (typically using host prefixpolypress._domainkey).
If port 25 is blocked by your hosting provider, you can configure external SMTP servers (e.g. Resend, Mailgun, Postmark, AWS SES, or SendGrid) on ports 587 or 465 for individual tenants:
- Configure the SMTP Host name, Port, Username, and Password.
- Toggle connection security preferences (Use SSL or Use TLS/STARTTLS).
Super Admins can define a host-wide fallback SMTP relay in the Developer Console:
- If a tenant does not have a local SMTP configuration and attempts to dispatch transactional emails or newsletters, the background queue worker automatically redirects the traffic via this global relay.
- This ensures transactional delivery is maintained even during tenant onboarding.
Outbox queue dispatching is managed by multithreaded task workers:
- Max Concurrent Sending Threads: Configure thread limits per tenant workspace to allocate connection limits across your mail server.
- Hourly Rate Limiting: Limit hourly throughput speeds per tenant (e.g., max 500 emails/hour) to comply with external relay rate limits.
- Diagnostics: View diagnostics logs showing live thread usage counts, hourly outbox throughput charts, and transient failure status messages.