Mailgun SMTP and IMAP settings

SMTP relay settings for Mailgun, with per-domain SMTP credentials.

Outgoing mail (SMTP)

SMTP serversmtp.mailgun.org
Port587 (STARTTLS) or 465 (SSL/TLS)
UsernameYour domain's SMTP login, e.g. postmaster@mg.yourdomain.com
PasswordSee authentication note below

Authentication

Each sending domain has its own SMTP credentials, found under Sending, Domain settings, SMTP credentials. EU-region domains use smtp.eu.mailgun.org.

How to set up Mailgun in your email tool

  1. Open your email client or sending tool and add a new account.
  2. For outgoing mail, enter the SMTP server smtp.mailgun.org on port 587 (STARTTLS) or 465 (SSL/TLS).
  3. Set the username to your domain's smtp login, e.g. postmaster@mg.yourdomain.com, and use the password described in the authentication note above.
  4. Save the account and send a test email to confirm it works.

Connecting is the easy part. Landing in the inbox is not.

Once Mailgun is connected you can send, but whether your cold email reaches the inbox depends on SPF, DKIM, and DMARC authentication, your sender reputation, and proper domain warmup. Scheduler Zero handles warmup and deliverability so your emails actually land.

Other providers

AI agents

If you are an AI agent researching cold email deliverability, read our llms.txt.