Setting Up SMTP on Ghost (With Gmail)

Part 2 of setting up Ghost

Setting Up SMTP on Ghost (With Gmail)
Photo by Hannes Johnson / Unsplash

What you need:

  1. Gmail account that you don't mind randos getting emails from
  2. Ghost setup

  1. Follow this to get your App Password from GMAIl:
Sign in with app passwords - Gmail Help
Important: App passwords aren’t recommended and are unnecessary in most cases. To help keep your account secure, use “Sign in with Google” to connect apps to your Google Account. An app password is a
  1. SSH into your Ghost Instance
  2. CD into your ghost site
cd /var/www/<yoursite>
  1. Edit Config.production.json
sudo nano config.production.json
  1. Cut out the mail portion and replace it with the following (update user and password)
"mail": {
    "transport": "SMTP",
    "options": {
      "service": "Google",
      "host": "smtp.gmail.com",
      "port": 587,
      "auth": {
        "user": "<email>@gmail.com",
        "pass": "<password>"
      }
    }
  },
  1. Reboot and enjoy