Ghost SMTP Configuration: How to Get Your Emails Working Right

Ghost SMTP Configuration: How to Get Your Emails Working Right

If you're using Ghost for your blog or website, you know it’s one of the best platforms for writers who want a clean, focused environment. I’ve used Ghost for years, and I recommend it to anyone looking for a no-fuss, performance-first blog platform. But there’s one thing you need to get right: your SMTP configuration.

Why? Because Ghost uses email for magic login links, notifications, and newsletters.

If your SMTP isn't configured properly, you’re stuck. No login emails, no subscriber newsletters — nothing. And if you’re serious about building an audience or running newsletter marketing, good email delivery isn’t optional.

So, no need to mention that even your staff and writers can not easily recover their password with he magic login link.

Ghost CMS: A Brilliant Idea Haunted by Serious Problems
Ghost, the lightweight and beautifully designed content management system (CMS), has carved out a niche in the crowded world of publishing platforms. Launched in 2013 as an open-source alternative to WordPress, Ghost set out to deliver a fast, minimalist platform focused on blogging and simplicity. With backing from a successful

Let’s walk through setting up SMTP for Ghost using Gmail and explore some alternatives like Mailgun and SendGrid to keep things professional.

Can a Self-Hosted Ghost Be a Good Email Marketing Solution?
In the ever-evolving digital marketing landscape, finding the right platform to share content, engage with your audience, and drive your marketing strategy is crucial. One option that’s been gaining attention is the self-hosted Ghost blog. But can it be an effective marketing solution? Let’s dive into the world of

Why SMTP Matters in Ghost

Ghost doesn’t use passwords; it sends you a "magic link" to log in. If that email doesn’t send, you can’t access your blog.

Plus, if you plan to send newsletters directly through Ghost (which is one of its standout features), you need an email service that actually delivers your emails to inboxes, not spam folders.

I’ve seen people struggle with email setups, and I get it. It’s frustrating. But setting up SMTP once will save you endless headaches later.

Using Gmail SMTP for Ghost: The Basics

If you’re just getting started and want something free, Gmail works well for low-volume email. Here’s how to set it up.

  1. Enable Less Secure Apps or Use an App Password (if you have 2FA enabled).

Restart Ghost:

ghost restart

Edit Ghost’s config.production.json:

"mail": {
  "transport": "SMTP",
  "options": {
    "service": "Gmail",
    "host": "smtp.gmail.com",
    "port": 587,
    "secure": false,
    "auth": {
      "user": "your-email@gmail.com",
      "pass": "your-app-password"
    }
  }
}

This setup is perfect for personal blogs or small newsletters. But if you’re growing or want to look professional, Gmail won’t cut it.

This works on the recent Ghost 5.x.x versions. The old config files for Gmail, requires another port, and does not include "secure" field.

From Ghosted to Free: My Journey Escaping a Stuck and Corrupted Ghost Install to a Fresh Installed Ghost
When I first embraced Ghost CMS, it felt like a developer’s dream – sleek, minimalist, and designed for modern publishing. But months into running a content-heavy site, that dream began to fray. My Ghost install got stuck on a specific version, refusing to upgrade or even export content. Attempts to do

Why You Might Need Mailgun or SendGrid

Gmail has limits — 500 emails per day for regular accounts. If you’re sending newsletters to thousands of subscribers, you’ll need something more robust.

That’s where Mailgun and SendGrid come in.

Mailgun Pricing

  • Free Tier: 5,000 emails for the first 3 months.
  • Pay-as-You-Go: $0.80 per 1,000 emails.
  • Flex Plan: $35/month for 50,000 emails.

SendGrid Pricing

  • Free Tier: 100 emails per day.
  • Essentials Plan: $19.95/month for 50,000 emails.
  • Pro Plan: $89.95/month for 200,000 emails.

Both services are reliable, but Mailgun’s pay-as-you-go model is great if you’re unsure about email volume. SendGrid’s free tier is too limited for anything serious.

Which One Should You Choose?

If you’re just starting out, Gmail works fine. It’s easy, free, and doesn’t require much setup.

If you’re running a newsletter or plan to grow your audience, go with Mailgun. It’s affordable and integrates easily with Ghost.

SendGrid is great if you’re looking for more advanced email analytics and don’t mind the higher cost.

How to Set Up Mailgun in Ghost

  1. Sign Up for Mailgun: mailgun.com
  2. Get Your SMTP Credentials:
    • Mailgun will give you a SMTP host, port, username, and password.

Restart Ghost:

ghost restart

Edit config.production.json:

"mail": {
  "transport": "SMTP",
  "options": {
    "host": "smtp.mailgun.org",
    "port": 587,
    "secure": true,
    "auth": {
      "user": "postmaster@yourdomain.com",
      "pass": "your-mailgun-password"
    }
  }
}

That’s it. You’re ready to send newsletters, magic links, and notifications without worrying if they’ll land in spam.

Final Thoughts

I’ve used Ghost for years, and I’ve recommended it to countless people. But Ghost’s simplicity comes with a trade-off: you have to get email delivery right.

For small blogs, Gmail works. For serious newsletter marketing, Mailgun is my go-to. Set it up once, and you’re good to go.

Get your SMTP sorted out now, and you’ll thank yourself later.








Open-source Apps

9,500+

Medical Apps

500+

Lists

450+

Dev. Resources

900+

Read more