Configuration
postmaster@ mailbox Mailgun creates for you.
Pick the right region. Mailgun runs the US and EU as separate infrastructure, and an account in one is invisible to the other:
Mailgun listens on ports 25, 587 and 2525 for STARTTLS, and 465 for implicit TLS, which Spree does not use. Mailgun recommends 587, since some ISPs block or throttle port 25.
Getting SMTP credentials
Credentials are set per domain, not per account:- In the Mailgun dashboard, open your sending domain’s settings.
- Find its SMTP credentials.
- Copy the username, and reset the password to reveal a new one.
SMTP_FROM_ADDRESS.
Authenticating your domain
Add your sending domain under Sending → Domains. Mailgun asks for TXT records for SPF and DKIM, and CNAME records for tracking. Most setups use a subdomain such asmg.yourstore.com, which keeps Mailgun’s records away from your main domain’s mail. Once the domain verifies, set SMTP_FROM_ADDRESS to an address on it.
Related
- Emails — the SMTP variables and how to verify delivery
- Sending out Emails — what Spree sends and when
- Mailgun SMTP documentation

