SMTP Relay Guide
Connect existing applications and frameworks to Postscale through SMTP while preserving authentication, webhooks, and bounce tracking.
TL;DR
Use SMTP relay when an existing product cannot call the REST API directly. Authenticate with SMTP credentials, keep From domains verified, preserve Return-Path routing, and still process delivery webhooks for final message state.
What you will learn
- Configure SMTP clients to relay through Postscale
- Understand when SMTP is a better fit than REST
- Preserve deliverability controls while using legacy mail clients
When to use SMTP relay
SMTP relay is useful for:
- Legacy applications.
- CMS and commerce platforms.
- Framework mailers.
- Monitoring tools.
- Any system that supports SMTP but not custom HTTP APIs.
For new application code, prefer the transactional email guide.
Configure the client
Use the SMTP settings from your dashboard:
| Setting | Value |
|---|---|
| Host | smtp.postscale.io |
| Port | 587 |
| Security | STARTTLS |
| Username | SMTP credential username |
| Password | SMTP credential secret |
Use port 465 only when the client requires implicit TLS.
Verify From domains
SMTP does not bypass domain checks. The visible From domain still needs to be verified and authenticated.
If a client sends from many addresses under one domain, verify the domain rather than each individual mailbox.
Preserve headers you need
Many SMTP clients let you add custom headers. Use them for correlation:
X-Postscale-Metadata-order-id: ord_456
X-Postscale-Metadata-template: receipt
Do not put secrets or personal data into custom headers unless you are comfortable with every receiving system seeing them.
Handle SMTP errors correctly
SMTP responses can fail before Postscale accepts the message. Treat 4xx responses as temporary and 5xx responses as permanent unless the client documentation says otherwise.
Common causes:
- Invalid credentials.
- Unverified From domain.
- Recipient suppressed.
- Message too large.
- TLS or port mismatch.
After Postscale accepts the message, use webhooks for final delivery state.
Frequently asked questions
- Does SMTP relay still get delivery webhooks?
- Yes. Postscale can emit delivery events for mail accepted through SMTP relay.
- Should new code use SMTP?
- Usually no. New application code should use the REST API unless a framework or product only supports SMTP.
Related guides
Put the guide into production
Postscale brings sending, inbound processing, DMARC reporting, and masked addresses behind one API so the operational pieces stay connected.