
This article is for people with a VPS or server with root access, or an application that sends e-mail. The short answer: instead of your server delivering mail straight to each destination over port 25, it hands it to a mail server that is already trusted (the smarthost), with a username and password, over 587 or 465. That server makes the final delivery. It solves three problems at once: outbound port 25 blocked by the network, a VPS IP with no reputation or reverse DNS, and an SPF record that does not include the VPS.
Direct sending or through a smarthost
| What | Direct (port 25) | Through a smarthost (587 or 465) |
| Who delivers to the destination | The VPS itself, connecting to each recipient MX. | The mail server where you have your mailbox, or a sending service. |
| Outbound port | 25, which many networks and providers block outbound. | 587 (STARTTLS) or 465 (SSL/TLS), the authenticated submission ports. |
| Reputation and reverse DNS | Those of the VPS IP. A new IP, or one without PTR, often ends up in spam: PTR and reverse DNS. | Those of the smarthost. |
| SPF and DKIM | The domain SPF must include the VPS IP, and DKIM signing must happen on the VPS. | Those of the delivering server count, if the domain already has them set up for it. |
| Limits | Those of the VPS and the IP reputation. | Those of the smarthost: an ordinary mailbox is not a bulk sending service. |
Setting up Postfix with a smarthost
|
|
|
|
|
| Copy main.cf before you touch it and reload Postfix only after checking the syntax with postfix check. And use the smarthost for system and application mail, not for newsletters: a mailbox that sends in bulk gets blocked, and takes the domain normal mail down with it. |
| An application does not need Postfix: nearly all of them take an SMTP server in their settings (server, port, username, password). It is the same smarthost, set up in the application itself. To choose between SMTP and a service with an API, see sending by SMTP or through an e-mail API. |
|
The smarthost relay will not authenticate, or mail still lands in spam? Send us the Postfix log lines, without the password. Open a support ticket |
RECOMMENDED PRODUCT VPS server with root access Resources of your own, the OS you choose, reinstall whenever you like. from $8.40/mo (3-year plan, with coupon) See plans |











