Configuration
The Server API Token goes in both the username and the password field — the same value twice. This looks like a mistake but is exactly what Postmark documents.
SMTP_PORT=465 out of habit produces a connection that hangs rather than a clear error.
Getting a Server API Token
- In the Postmark dashboard, open the server you want to send from.
- Go to the API Tokens tab and copy the Server API Token.
Message streams
Postmark separates transactional streams from broadcast streams, and keeps their reputations apart. Mail sent throughsmtp.postmarkapp.com with a Server API Token goes to the default transactional stream unless a header says otherwise, which is what a Spree store wants — there is nothing to configure. Broadcast mail uses a different host, smtp-broadcasts.postmarkapp.com, which Spree does not need.
Authenticating your domain
Go to Sender Signatures → Add Domain, then add the DKIM and Return-Path records Postmark generates at your DNS host. Once verified, setSMTP_FROM_ADDRESS to an address on that domain.
Related
- Emails — the SMTP variables and how to verify delivery
- Sending out Emails — what Spree sends and when
- Postmark SMTP documentation

