Your connection is not private

Ah, I just notice the magic link is not working too, I don’t know what I did wrong again, this time.

Hey @mjw
Sorry I am bring this up again, I search the forum for a solution and I came across this your post: Failed to send magic link email Error when trying to sign up - #14 by mjw

"mail": {
    "from": "<email>",
    "transport": "SMTP",
    "options": {
      "host": "smtp.eu.mailgun.org",
      "port": 587,
      "service": "Mailgun",
      "secure": false,
      "requireTLS": true,
      "auth": {
        "user": "<email>",
        "pass": "<password>"
      }
    }
  },

I tried out and it did not work out.

If this correct for your region? Likewise, what did you use for the password? It should have this format: "pass": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxx-xxxxxxxx".

Sharing your config would help, but obfuscate the passwords etc.

Hey @mjw
This is how my config Json look like:

 "mail": {
    "from": "noreply@merklepal.com",
    "transport": "SMTP",
    "options": {
      "host": "smtp.us.mailgun.org",
      "port": 587,
      "service": "Mailgun",
      "secure": false,
      "requireTLS": true,
      "auth": {
        "user": "news@mg.merklepal.com",
        "pass": "xxxxxxxx"
      }
    }
  },

I’m uncertain if the SMTP server name is correct. Are you sure the “.us” is required?

You may want to check out this guide, or search the forum for “swaks” as this is a useful tool for diagnosing sending issues.

Yeah, my SMTP is .us, Let me use swaks and see what is wrong.

Please, can anyone tell me, what are this errors for, I just check my error.log file, and this what I show:

{"name":"Log","hostname":"merklepal","pid":102188,"level":50,"version":"5.63.0","err":{"id":"48071650-bb17-11ee-99bf-2560c03e73e2","domain":"https://merklepal.com","code":"ABORTED_GET_HELPER","name":"HelperWar>
{"name":"Log","hostname":"merklepal","pid":102188,"level":50,"version":"5.63.0","err":{"domain":"https://merklepal.com","code":"PROTOCOL_CONNECTION_LOST","message":"select `jobs`.* from `jobs` where `jobs`.`na>
{"name":"Log","hostname":"merklepal","pid":102188,"level":50,"version":"5.63.0","err":{"domain":"https://merklepal.com","code":"ECONNREFUSED","message":"connect ECONNREFUSED 127.0.0.1:3306","stack":"Error: con>
{"name":"Log","hostname":"merklepal","pid":102188,"level":50,"version":"5.63.0","err":{"domain":"https://merklepal.com","code":"ECONNREFUSED","message":"connect ECONNREFUSED 127.0.0.1:3306","stack":"Error: con>
{"name":"Log","hostname":"merklepal","pid":102188,"level":50,"version":"5.63.0","err":{"domain":"https://merklepal.com","code":"PROTOCOL_CONNECTION_LOST","message":"select `jobs`.* from `jobs` where `jobs`.`na>
{"name":"Log","hostname":"merklepal","pid":102188,"level":50,"version":"5.63.0","err":{"domain":"https://merklepal.com","code":"ECONNREFUSED","message":"connect ECONNREFUSED 127.0.0.1:3306","stack":"Error: con>
{"name":"Log","hostname":"merklepal","pid":102188,"level":50,"version":"5.63.0","err":{"domain":"https://merklepal.com","code":"ECONNREFUSED","message":"connect ECONNREFUSED 127.0.0.1:3306","stack":"Error: con>
{"name":"Log","hostname":"merklepal","pid":102188,"level":50,"version":"5.63.0","err":{"id":"e6156680-bb3f-11ee-99bf-2560c03e73e2","domain":"https://merklepal.com","code":null,"name":"BadRequestError","statusC>
{"name":"Log","hostname":"merklepal","pid":102188,"level":50,"version":"5.63.0","req":{"meta":{"requestId":"940b448e-57bc-420a-92d2-12efd8638aa7","userId":null},"url":"/users/me/?include=roles","method":"GET",>
{"name":"Log","hostname":"merklepal","pid":102188,"level":50,"version":"5.63.0","req":{"meta":{"requestId":"e4ae4b32-d013-40f7-947b-17ecd6880fa7","userId":null},"url":"/users/me/?include=roles","method":"GET",>
{"name":"Log","hostname":"merklepal","pid":102188,"level":50,"version":"5.63.0","req":{"meta":{"requestId":"248a9bb6-77e0-4bb1-8aa6-ea8d453138d4","userId":null},"url":"/users/me/?include=roles","method":"GET",>
{"name":"Log","hostname":"merklepal","pid":102188,"level":50,"version":"5.63.0","req":{"meta":{"requestId":"8bf2b376-865e-4efe-9584-27b9896182ba","userId":null},"url":"/authentication/setup/","method":"GET","o>
{"name":"Log","hostname":"merklepal","pid":102188,"level":50,"version":"5.63.0","err":{"domain":"https://merklepal.com","message":"ECONNABORTED","stack":""},"msg":"ECONNABORTED","time":"2024-01-25T06:23:41.348>
{"name":"Log","hostname":"merklepal","pid":102188,"level":50,"version":"5.63.0","msg":"[EmailAnalytics] Error while fetching","time":"2024-01-25T06:23:43.195Z","v":0}

Thanks

I am having this same issue following the same setup video for Mailgun and Ghost self installed on YouTube. I’ll look into the SSL certification issue, but I think there’s something wrong in the instructions that led us here. It goes something like this:

  • Open a Mailgun account and set up a dedicated sub-domain
  • Add that sub-domain to your MX and DNS records on your domain host
  • Set up transactional mail using this subdomain
  • Ghost seems to be adding “email” to the sub-domain URL which does not have SSL certification. So in my case: https://email.news.workbus.com, where I set up news.workbus.com at Mailgun for my sub-domain

Any insight on how to resolve would be great! I’ll reach out to Mailgun now too.

My recollection is that mailgun does this if you have link tracking enabled.

Ah, thanks! I look and see if I can turn it off.