Skip to content

Connect Mailgun

TL;DR
  • Host smtp.mailgun.org, port 587.
  • Use the SMTP credentials of your sending domain, found under that domain's settings in Mailgun.
  • Domains in Mailgun's EU region use the EU host shown in your domain's SMTP settings.
Setting Value
Host smtp.mailgun.org (EU-region domains: the host shown in Mailgun)
Port 587 (leave Use secure (TLS/SSL) off) or 465 (turn it on). 2525 also works if 587 is blocked
Username The SMTP login for your sending domain
Password That login’s SMTP password

In Mailgun, go to Sending → Domain settings, pick your sending domain and open the SMTP credentials tab. Credentials are set per domain, so use the ones for the domain in your From address. See Mailgun’s SMTP sending guide.

Add the SPF and DKIM records Mailgun shows for the domain and wait until it reports the domain as verified.