Configure Mailgun for Ghost

Configure Mailgun for Ghost

by John Vincent


Posted on March 1, 2017


This is part of a series of discussions regarding Deploying to a Digital Ocean Droplet. For more details, please see Overview of johnvincent.io website

Configure Mailgun

Get Mailgun account

Login to Mailgun.com

  • Select Domains (top nav, left)
  • See list of domains
  • Select your domain

Note:

Default SMTP login
Default password

Configure Ghost

cd /var/www/ghost
vi config.js:
production: {
    url: 'http://ghost.johnvincent.io',
    mail: {
        transport: 'SMTP',
              options: {
                  service: 'Mailgun',
                  auth: {
                      user: "{Default SMTP login}",
                      pass: "{Default password}"
                  }
              }
          },

Restart Ghost

cd /var/www/ghost
sudo npm start --production

Setup Ghost Account

https://www.ghost.johnvincent.io/ghost

As no account exists:

https://www.ghost.johnvincent.io/ghost/setup/one/

Set an account (store this information)

  • email:
  • password:

Test Lost Password

https://www.ghost.johnvincent.io/ghost/signin
  • Sign out
  • Enter Ghost email address
  • Forgot?

Ensure you get an email at the email address of the Mailgun account.