Digital Ocean & Mailgun Setup Issue

Hi,

I’m using Ghost self-hosted on Digital Ocean. I’ve set up mailgun and it was working for a day or so. I was able to sign in as a new user and the magic links all worked when trying to sign in.

Unfortunately, it all stopped working and I’m not sure why. Does anyone have experience with DO and mailgun and could help me with what I’m missing in the settings below?

When I restart ghost it seems to work for a few min and then I get Sorry, something went wrong. Please try again.

URL: https://www.saasgaps.com
Ghost V4

{
  "url": "https://saasgaps.com",
  "server": {
    "port": 2368,
    "host": "127.0.0.1"
  },
  "database": {
    "client": "mysql",
    "connection": {
      "host": "localhost",
      "user": "ghost",
      "password": "REDACTED",
      "database": "REDACTED"
    }
  },
  "mail": {
    "transport": "SMTP",
    "options": {
      "service": "Mailgun",
      "host": "smtp.mailgun.org",
      "auth": {
        "user": "REDACTED",
        "pass": "REDACTED"
      }
    }
  },
  "logging": {
    "transports": [
      "file",
      "stdout"
    ]
  },
  "process": "systemd",
  "paths": {
    "contentPath": "/var/www/ghost/content"
  }
}

Thank you

Hi.

Im using mailgun as mailprovider… I dont use DC, but Linode…

Here is my config

{
  "url": "https://www.futurenode.dk",
  "server": {
    "port": SECRET,
    "host": "127.0.0.1"
  },
  "database": {
    "client": "mysql",
    "connection": {
      "host": "localhost",
      "user": "SECRET",
      "password": "SECRET",
      "database": "SECRET"
    }
  },
  "mail": {
    "from": "'FutureNode.dk' <MYMAIL@futurenode.dk>",
    "transport": "SMTP",
    "options": {
      "service": "Mailgun",
      "host": "smtp.eu.mailgun.org",
      "port": 465,
      "secureConnection": true,
      "auth": {
        "user": "SECRET",
        "pass": "SECRET"
      }
    }
  },
  "logging": {
    "transports": [
      "file",
      "stdout"
    ]
  },
  "process": "systemd",
  "paths": {
    "contentPath": "SECRET"
  }
}

Regards

Thomas

Using following worked for me (port: 587, requireTLS: true and secure: false).

{
  "mail": {
    "from": "John Doe <john@example.net>",
    "transport": "SMTP",
    "options": {
      "service": "Mailgun",
      "host": "smtp.eu.mailgun.org",
      "port": 587,
      "requireTLS": true,
      "secure": false,
      "auth": {
        "user": "postmaster@example.net",
        "pass": "…"
      }
    }
  }
}