MailGun authentification failed

Hi,

We are using a Ghost-cli CMS on Ubuntu server using DigitalOcean and with “domain” on OVH.

Ghost encourages us to use Mailgun to send newsletters through SMTP.

We created an account on MailGun, added our server “oart.fr”, which automatically created a “postmaster[@oart.fr]” adress with password. Changed DNS to match MailGun.

We changed our “config.production.json” file from our Ghost-cli server-side to match with the SMTP credentials… But it doesn’t seem to work.

We also tried to add Mailgun info on Ghost Admin, but still fails.

The current error message is " Error sending email: Failed to send email. Reason: Invalid login: 535 Authentication failed. "

We’ve been through a lot of posts on this forum and followed their suggestions… In vain.

We tried to reset password from “postmaster[@oart.fr]” and update the credentials on “config.production.json” and on the Ghost Admin-side… But still has the same error.

Furthermore, we would like to understand clearly if it is with a “postmaster[@oart.fr]” adress that we can link to our Ghost Admin… And if (and how) we can then add new e-mail adresses both on Mailgun and Ghost Admin (such as “contact[@oart.fr]” for “support account” and “newsletter[@oart.fr]” for “newsletters”).

Our site is located on https://oart.fr

config.production.json on server (restarted Ghost of course) :

"mail": {

    "from": "'Postmaster OART' <postmaster@oart.fr>",

    "transport": "SMTP",

    "options": {

      "service": "Mailgun",

      "host": "smtp.mailgun.org",

      "port": 587,

      "secure": false,

      "auth": {

        "user": "postmaster@oart.fr",

        "pass": "ourkeypass"

      }

    }

  },

Thanks in advance,

You should use region-specific endpoint for mailgun, like smtp.eu.mailgun.org. Check out my answer here: Ghost service reliably crashes when sending transaction email test - #7 by rozhok