OS: Ubuntu, v22.04.2 LTS
Node Version: v16.20.0
Ghost Version: 5.52.1
Ghost-CLI Version: 1.24.0
Environment: production
VPS on Interserver
After the successful install I can go to my webpage and try to create an account. Then I can get the magic link error. This leads me to believe that no transactional email is set up. So I tried postfix and gave up on that (not a real smtp server?) and now I’m on mailgun.
From other topics I believe that I’ve set up everything at mailgun correctly (lots of assumptions on that). To confirm my work, I’ve installed swak and tested. Here are the results
I found my error. I needed to add my email sub-domain. Mailgun suggested that I create a mg.xxx domain. So Swak worked just fine. However, I never received an email at my home address. And I’m still missing the linkage between mailgun and ghost to allow the sign in. I’m sure it’s something simple, but no idea myself.
If you already receive email on the bare domain, then it’s essential that Mailgun uses a subdomain.
It looks like you’ve misconfigured your SPF records as they are showing Cloudflare. Make sure the MX records bypass Cloudflare. I can’t see an SPF record for mg.four…com.
Sorry, this isn’t quite my knowledge area, but I’m not quite sure what goes where. I make a new entry (TXT), then I need a name and then content. I assume the spf is the content? But what’s the name?
Again sorry, I can’t find a guide for this content specifically.
Okay! That worked great! But when I try to sign up it still says, “Failed to send magic link email”. Do I need to make an account in the database? I missing something again, aren’t I?
F
ps. Just looked in ghost log (sorry, should have done this earlier). I got this:
NAME: EmailError
CODE: ESOCKET
MESSAGE: Failed to send email. Reason: Hostname/IP does not match certificate’s altnames: Host: smtp.mailgun.com. is not in the cert’s altnames: DNS:*.mailgun.org, DNS:mailgun.org.
I just changed the domain’s in cloudflare to .com. Sigh.
pss. I changed the config to org and changed everything back to .org in cloudflare. Double sigh.
Sorry about that Cool and Martin. It would have been. A bit better if I gave more details. I marked it resolved once things worked. I hate being dependent on Martin and sorted out the rest through digging. If you want to know anything about my thread hit me up.