We're experiencing difficulty. Our engineers are on it. Please check status.mailgun.com for real-time updates.

Where can I find my API key and SMTP credentials?

Your API key is located in your Control Panel homepage. This is the first page you see when you log in, or you can access it by clicking the Mailgun logo.

Note that when you make an API call, the endpoint should include your domain name e.g. https://api.mailgun.net/v3/{{YOUR_DOMAIN}}/messages

Your SMTP credentials are different for each domain you add. You can find your default credentials, and add more, by clicking through to your domain overview from the "Domains" tab.

What ports does Mailgun support?

Our servers listen on ports 25, 465 (SSL/TLS), 587 (STARTTLS), and 2525

A few things to note when selecting a port:

  • Some ISPs block or throttle SMTP port 25. We recommend using port 587 instead.
  • Google Compute Engine allows port 2525 for SMTP submission.
  • Mailgun IPs change frequently, we do not recommend setting up firewall restrictions against our IP addresses.
  • See our SMTP documentation in the users manual to learn how to configure the most popular SMTP software and email clients to work with Mailgun.

For a more detailed explanation on ports check out our blog post.

Getting Started Sending Mail Receiving Mail Deliverability & Reputation Email Tracking Troubleshooting
Powered by Zendesk