How on Earth do you get Ghost Memberships and Newsletters working with Cloudron
-
I've tried to do it so many times, but it never works.
There are various threads on here about this but they are all out of date (both Cloudron and Ghost have changed since) so I'm not even going to link to them.
@staff I'd really love support on this as it's driving me mad!
-
@jdaviescoates
Just to clear this out of the way, you did follow the steps listed in the docs right?
https://docs.cloudron.io/apps/ghost/With mailgun and everything?
-
@girish @BrutalBirdie yeah, I've done all that loads of times and it doesn't work. That's why it's driving me mad.
-
@jdaviescoates If you can start from scratch and put your notes here, let's try to figure where the docs are lacking.
-
@girish sure, just before writing the above post I just tried to do it all again, just to be sure.
I installed a new instance of Ghost at:
I've created newsletter@ud.coop
I've enabled masquerading :
and confirmed it in Ghost at
Settings -> Email newsletter -> Newsletter -> Customize -> Email addresses
(note this is a little different than current Cloudron docs)I've signed-up to Mailgun and set-up the required DNS, got my private API key and pasted in the relevant box in Ghost:
Then, if you try to subscribe:
All the email seem to actually be working (I added myself as a member via the Ghost Dashboard then Members, and then created a post and it arrive fine).
But no one can actually subscribe.
-
Now reading this:
https://forum.ghost.org/t/failed-to-sign-up-please-try-again/20942/6
Looks like perhaps we need to edit an config file...but I can't find anything related ‘secureConnection’ in the file manager.
Perhaps it's port issue?
-
@jdaviescoates Did you also click on the confirmation email (it is sent to your inbox -
newsletter@ud.coop
) ? Without this, the email address doesn't actually change inside Ghost.Also, the mailgun stuff, iirc, is not actually used other than to send the newsletters. i.e it is not used when a member subscribes.
-
@jdaviescoates OK, so, when a user subscribes, do you see anything in the app logs? IIRC, it displays some emails errors in the ghost logs.
-
@girish said in How on Earth do you get Ghost Memberships and Newsletters working with Cloudron:
Also, the mailgun stuff, iirc, is not actually used other than to send the newsletters. i.e it is not used when a member subscribes.
Yes, I know.
But that doesn't help me resolve why no one can subscribe.
-
@girish said in How on Earth do you get Ghost Memberships and Newsletters working with Cloudron:
@jdaviescoates OK, so, when a user subscribes, do you see anything in the app logs? IIRC, it displays some emails errors in the ghost logs.
Aha:
May 17 17:55:23 Error: Mail command failed: 550 Authenticated user ghost.app@ud.coop cannot send mail as noreply@ghost.ud.coop
But that's confusing as masquerading is enabled. But perhaps it's not enabled for the ghost. subdomain or something?
-
@jdaviescoates aha!
From the docs:
Support email address - defaults to noreply@app.example.com ... When trying to change the above addresses, to say support@example.com, Ghost will send a confirmation mail from noreply@example.com to support@example.com
The noreply address subtly changed (the second references does not have
@app.example,com
) ! Checking, why... -
@jdaviescoates said in How on Earth do you get Ghost Memberships and Newsletters working with Cloudron:
But that's confusing as masquerading is enabled. But perhaps it's not enabled for the ghost. subdomain or something?
OK, so I went and added ghost.ud.coop as a domain in domains and then enabled maquerading and it works! FINALLY!
-
@girish said in How on Earth do you get Ghost Memberships and Newsletters working with Cloudron:
The noreply address subtly changed (the second references does not have @app.example,com) ! Checking, why...
I think it was just because I'm using a subdomain.
-
@jdaviescoates thanks, updating the docs. They keep changing this email address stuff every 3 versions
It seems support address is also so hidden. Took me 15 minutes to find it! It's here
/ghost/#/settings/members?showPortalSettings=true
-
@jdaviescoates said in How on Earth do you get Ghost Memberships and Newsletters working with Cloudron:
OK, so I went and added ghost.ud.coop as a domain in domains and then enabled maquerading and it works! FINALLY!
But that seems like quite a few hoops to have to jump through.
Could we make masquerading work across subdomains by default too @girish ? Or change something in the app package so that this extra step of adding another subdomain domain isn't needed?
If not, I guess something about it needs to be added to the docs.
-
@jdaviescoates It seems that subdomain thing is hardcoded in the code (i.e the default email addresses don't come from the database), so looks like we have to make the email server allow sending subdomains as you suggested.
-
@girish said in How on Earth do you get Ghost Memberships and Newsletters working with Cloudron:
@jdaviescoates It seems that subdomain thing is hardcoded in the code (i.e the default email addresses don't come from the database), so looks like we have to make the email server allow sending subdomains as you suggested.
Unless, if I'd already changed the support address (I hadn't in this instance), then perhaps it wouldn't have still tried to send via noreply@ghost.ud.coop at all and I wouldn't've needed to get masqureading working on the subdomain
-
@jdaviescoates I just tested a fresh install now. What I found is, it's not needed to add the subdomain at all.
If you configure the email address (support or the newsletter) to
blah@some.domain.com
, then Ghost is hardcoded to send emails fromnoreply@some.domain.com
toblah@some.domain.com
. This means that if you change the email address tonewsletter@example.com
, it will only try to send email asnoreply@email.com
.I am not sure why it tried to send email from a subdomain in your case. Do you think you might have tried to put in a subdomain email address ?