Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Ghost
  3. How on Earth do you get Ghost Memberships and Newsletters working with Cloudron

How on Earth do you get Ghost Memberships and Newsletters working with Cloudron

Scheduled Pinned Locked Moved Ghost
28 Posts 4 Posters 3.6k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jdaviescoatesJ Offline
    jdaviescoatesJ Offline
    jdaviescoates
    wrote on last edited by
    #4

    @girish @BrutalBirdie yeah, I've done all that loads of times and it doesn't work. That's why it's driving me mad.

    I use Cloudron with Gandi & Hetzner

    girishG 1 Reply Last reply
    0
    • jdaviescoatesJ jdaviescoates

      @girish @BrutalBirdie yeah, I've done all that loads of times and it doesn't work. That's why it's driving me mad.

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #5

      @jdaviescoates If you can start from scratch and put your notes here, let's try to figure where the docs are lacking.

      1 Reply Last reply
      0
      • jdaviescoatesJ Offline
        jdaviescoatesJ Offline
        jdaviescoates
        wrote on last edited by
        #6

        @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:

        https://ghost.ud.coop/

        I've created newsletter@ud.coop

        Screenshot from 2022-05-17 17-27-30.png

        I've enabled masquerading :

        Screenshot from 2022-05-17 17-31-05.png

        and confirmed it in Ghost at

        Settings -> Email newsletter -> Newsletter -> Customize -> Email addresses (note this is a little different than current Cloudron docs)

        Screenshot from 2022-05-17 17-29-14.png

        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:

        Screenshot from 2022-05-17 17-34-48.png

        Then, if you try to subscribe:
        Screenshot from 2022-05-17 17-36-03.png

        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.

        I use Cloudron with Gandi & Hetzner

        jdaviescoatesJ girishG 2 Replies Last reply
        1
        • jdaviescoatesJ jdaviescoates

          @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:

          https://ghost.ud.coop/

          I've created newsletter@ud.coop

          Screenshot from 2022-05-17 17-27-30.png

          I've enabled masquerading :

          Screenshot from 2022-05-17 17-31-05.png

          and confirmed it in Ghost at

          Settings -> Email newsletter -> Newsletter -> Customize -> Email addresses (note this is a little different than current Cloudron docs)

          Screenshot from 2022-05-17 17-29-14.png

          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:

          Screenshot from 2022-05-17 17-34-48.png

          Then, if you try to subscribe:
          Screenshot from 2022-05-17 17-36-03.png

          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.

          jdaviescoatesJ Offline
          jdaviescoatesJ Offline
          jdaviescoates
          wrote on last edited by jdaviescoates
          #7

          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?

          I use Cloudron with Gandi & Hetzner

          1 Reply Last reply
          0
          • jdaviescoatesJ jdaviescoates

            @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:

            https://ghost.ud.coop/

            I've created newsletter@ud.coop

            Screenshot from 2022-05-17 17-27-30.png

            I've enabled masquerading :

            Screenshot from 2022-05-17 17-31-05.png

            and confirmed it in Ghost at

            Settings -> Email newsletter -> Newsletter -> Customize -> Email addresses (note this is a little different than current Cloudron docs)

            Screenshot from 2022-05-17 17-29-14.png

            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:

            Screenshot from 2022-05-17 17-34-48.png

            Then, if you try to subscribe:
            Screenshot from 2022-05-17 17-36-03.png

            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.

            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by girish
            #8

            @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.

            jdaviescoatesJ 2 Replies Last reply
            0
            • girishG girish

              @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.

              jdaviescoatesJ Offline
              jdaviescoatesJ Offline
              jdaviescoates
              wrote on last edited by
              #9

              @girish yes, I did.

              I use Cloudron with Gandi & Hetzner

              girishG 1 Reply Last reply
              0
              • jdaviescoatesJ jdaviescoates

                @girish yes, I did.

                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #10

                @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.

                jdaviescoatesJ 1 Reply Last reply
                0
                • girishG girish

                  @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.

                  jdaviescoatesJ Offline
                  jdaviescoatesJ Offline
                  jdaviescoates
                  wrote on last edited by
                  #11

                  @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.

                  I use Cloudron with Gandi & Hetzner

                  1 Reply Last reply
                  0
                  • girishG girish

                    @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.

                    jdaviescoatesJ Offline
                    jdaviescoatesJ Offline
                    jdaviescoates
                    wrote on last edited by jdaviescoates
                    #12

                    @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?

                    I use Cloudron with Gandi & Hetzner

                    girishG jdaviescoatesJ 2 Replies Last reply
                    0
                    • jdaviescoatesJ jdaviescoates

                      @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?

                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #13

                      @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...

                      jdaviescoatesJ 1 Reply Last reply
                      0
                      • jdaviescoatesJ jdaviescoates

                        @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?

                        jdaviescoatesJ Offline
                        jdaviescoatesJ Offline
                        jdaviescoates
                        wrote on last edited by
                        #14

                        @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!

                        I use Cloudron with Gandi & Hetzner

                        jdaviescoatesJ 1 Reply Last reply
                        2
                        • girishG girish

                          @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...

                          jdaviescoatesJ Offline
                          jdaviescoatesJ Offline
                          jdaviescoates
                          wrote on last edited by
                          #15

                          @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.

                          I use Cloudron with Gandi & Hetzner

                          girishG 1 Reply Last reply
                          1
                          • jdaviescoatesJ jdaviescoates

                            @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.

                            girishG Offline
                            girishG Offline
                            girish
                            Staff
                            wrote on last edited by
                            #16

                            @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

                            1 Reply Last reply
                            2
                            • jdaviescoatesJ jdaviescoates

                              @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!

                              jdaviescoatesJ Offline
                              jdaviescoatesJ Offline
                              jdaviescoates
                              wrote on last edited by
                              #17

                              @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.

                              I use Cloudron with Gandi & Hetzner

                              girishG 1 Reply Last reply
                              0
                              • jdaviescoatesJ jdaviescoates

                                @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.

                                girishG Offline
                                girishG Offline
                                girish
                                Staff
                                wrote on last edited by girish
                                #18

                                @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.

                                jdaviescoatesJ 1 Reply Last reply
                                1
                                • girishG girish

                                  @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.

                                  jdaviescoatesJ Offline
                                  jdaviescoatesJ Offline
                                  jdaviescoates
                                  wrote on last edited by
                                  #19

                                  @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 🤔

                                  I use Cloudron with Gandi & Hetzner

                                  girishG jdaviescoatesJ 2 Replies Last reply
                                  0
                                  • jdaviescoatesJ jdaviescoates

                                    @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 🤔

                                    girishG Offline
                                    girishG Offline
                                    girish
                                    Staff
                                    wrote on last edited by
                                    #20

                                    @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 from noreply@some.domain.com to blah@some.domain.com . This means that if you change the email address to newsletter@example.com , it will only try to send email as noreply@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 ?

                                    jdaviescoatesJ 1 Reply Last reply
                                    0
                                    • jdaviescoatesJ jdaviescoates

                                      @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 🤔

                                      jdaviescoatesJ Offline
                                      jdaviescoatesJ Offline
                                      jdaviescoates
                                      wrote on last edited by girish
                                      #21

                                      @jdaviescoates said in How on Earth do you get Ghost Memberships and Newsletters working with Cloudron:

                                      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

                                      Yeah, even if you've installed on a subdomain, if change the support address you don't also have to add and then enable masquerading on the subdomain.

                                      So the steps in the docs were all actually correct, I think, it was just the subdomain issue, coupled with Ghost changing where to change stuff had got me all confuddled.

                                      But perhaps the docs could also be clearer too.

                                      Things you need to do in order to get Ghost working.

                                      1. You can get as much as you can ready before installing ghost.

                                        • In Cloudron, enable email on the domain you want to install Ghost on
                                        • create support@ and newsletter@ email boxes
                                        • enable email masquerading
                                        • sign-up to Mailgun, configure DNS as instructed, have your mg.example.coop domain and private API ready
                                      2. Install Ghost

                                      3. Go to example.coop/ghost and set-up admin account

                                      4. Click Explore Ghost admin then Cog at bottom of left column to get into Ghost settings

                                      5. In Ghost Settings, go to Membership -> Portal Settings -> Customize Portal -> Account page settings

                                        • Edit the email to your previously created suppport@ email address.
                                        • Click Save and close (top right)
                                        • Click on the confirmation email sent to support@ to confirm.
                                      6. Go back to Ghost Setting, then into Email newsletter -> Newsletter -> Customize -> Email addresses -> Sender email address

                                        • edit the email to your previously created newsletter@ email address.
                                        • Click Save and close (top right)
                                        • Click on the confirmation email sent to newsletter@ to confirm.
                                      7. Back in Ghost Setting -> Email newsletter

                                        • scroll down to General Settings expand and complete Mailgun configuration by
                                        • choose your region,
                                        • add your domain e.g. mg.domain.coop (without the https:// works fine, maybe it'd work with it too, not tested yet).
                                        • paste in your Mailgun Private API key
                                        • Click Save (top right)
                                      8. Go into Members (note this is not Settings -> Membership /ghost/#/settings/members/ it's just /ghost/#/members/) and click on the Add yourself as a member to test.

                                      9. Also sign-up using another email address by browsing to your domain and clicking on the Subscribe button. Open that email address and confirm your subscription.

                                      10. Create a post, click Publish, then Publish and send, then Publish and send again.

                                      Both members should receive an email with the post you just published and sent.

                                      I use Cloudron with Gandi & Hetzner

                                      girishG 1 Reply Last reply
                                      6
                                      • girishG girish

                                        @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 from noreply@some.domain.com to blah@some.domain.com . This means that if you change the email address to newsletter@example.com , it will only try to send email as noreply@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 ?

                                        jdaviescoatesJ Offline
                                        jdaviescoatesJ Offline
                                        jdaviescoates
                                        wrote on last edited by
                                        #22

                                        @girish said in How on Earth do you get Ghost Memberships and Newsletters working with Cloudron:

                                        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 ?

                                        In this particular instance (somehow I've tried and failed this multiple times for different reasons!) I think I'd just not found and edited that setting! (in my point 5 above)

                                        I use Cloudron with Gandi & Hetzner

                                        1 Reply Last reply
                                        0
                                        • jdaviescoatesJ jdaviescoates

                                          @jdaviescoates said in How on Earth do you get Ghost Memberships and Newsletters working with Cloudron:

                                          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

                                          Yeah, even if you've installed on a subdomain, if change the support address you don't also have to add and then enable masquerading on the subdomain.

                                          So the steps in the docs were all actually correct, I think, it was just the subdomain issue, coupled with Ghost changing where to change stuff had got me all confuddled.

                                          But perhaps the docs could also be clearer too.

                                          Things you need to do in order to get Ghost working.

                                          1. You can get as much as you can ready before installing ghost.

                                            • In Cloudron, enable email on the domain you want to install Ghost on
                                            • create support@ and newsletter@ email boxes
                                            • enable email masquerading
                                            • sign-up to Mailgun, configure DNS as instructed, have your mg.example.coop domain and private API ready
                                          2. Install Ghost

                                          3. Go to example.coop/ghost and set-up admin account

                                          4. Click Explore Ghost admin then Cog at bottom of left column to get into Ghost settings

                                          5. In Ghost Settings, go to Membership -> Portal Settings -> Customize Portal -> Account page settings

                                            • Edit the email to your previously created suppport@ email address.
                                            • Click Save and close (top right)
                                            • Click on the confirmation email sent to support@ to confirm.
                                          6. Go back to Ghost Setting, then into Email newsletter -> Newsletter -> Customize -> Email addresses -> Sender email address

                                            • edit the email to your previously created newsletter@ email address.
                                            • Click Save and close (top right)
                                            • Click on the confirmation email sent to newsletter@ to confirm.
                                          7. Back in Ghost Setting -> Email newsletter

                                            • scroll down to General Settings expand and complete Mailgun configuration by
                                            • choose your region,
                                            • add your domain e.g. mg.domain.coop (without the https:// works fine, maybe it'd work with it too, not tested yet).
                                            • paste in your Mailgun Private API key
                                            • Click Save (top right)
                                          8. Go into Members (note this is not Settings -> Membership /ghost/#/settings/members/ it's just /ghost/#/members/) and click on the Add yourself as a member to test.

                                          9. Also sign-up using another email address by browsing to your domain and clicking on the Subscribe button. Open that email address and confirm your subscription.

                                          10. Create a post, click Publish, then Publish and send, then Publish and send again.

                                          Both members should receive an email with the post you just published and sent.

                                          girishG Offline
                                          girishG Offline
                                          girish
                                          Staff
                                          wrote on last edited by
                                          #23

                                          @jdaviescoates thanks! I have fixed up the existing docs slightly and also linked in your guide here.

                                          1 Reply Last reply
                                          2
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Bookmarks
                                          • Search