Email API · SMTP settings
Mailgun SMTP settings
The Mailgun SMTP server is smtp.mailgun.org (smtp.eu.mailgun.org for EU accounts) on port 587, 465, 2525 or 25. Each sending domain has its own SMTP credentials, managed under the domain's settings in Mailgun.
Last reviewed November 2026
| SMTP server | smtp.mailgun.org |
|---|---|
| Port (recommended) | 587 (STARTTLS) |
| Port | 465 (SSL/TLS) |
| Port | 2525 (STARTTLS (alternate)) |
| Port | 25 (STARTTLS) |
| Username | Your domain's SMTP login (for example postmaster@mg.yourdomain.com) |
| Password | The SMTP password for that login |
| Authentication | Required |
| EU region | smtp.eu.mailgun.org |
Find or create SMTP credentials
In Mailgun, open Sending > Domain settings > SMTP credentials for the domain you send from. The default login is postmaster@<your domain>; you can add more and reset passwords there.
US vs EU
Domains created in Mailgun's EU region must use smtp.eu.mailgun.org. Using the US host with EU credentials returns an authentication error.
Considering alternatives?
See our Mailgun alternatives and the Stack Emails vs Mailgun comparison.
Check your domain's email records
If you send from your own domain, receiving servers check SPF, DKIM and DMARC. Use our free SPF checker, DKIM checker and DMARC checker to confirm they pass.
Settings checked against Mailgun's public help pages. Providers change authentication rules from time to time, so confirm in their documentation if something doesn't work.