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


Navigation

    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    SOLVED How to fix SMTP after migrating from Managed to Unmanaged

    WordPress (Developer)
    mail
    5
    15
    139
    Loading More Posts
    • 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.
    • jdaviescoates
      jdaviescoates last edited by girish

      I just used the All in One Migration plugin to move a site from WordPress (Managed) to WordPress (Unmanaged).

      After I learned how to increase the max upload size so I could actually import my export, it all went really smoothly.

      But now SMTP isn't working and so it can't send emails.

      @d19dotca - how do I sort it? (I'm guessing you know as you've done this a migration a few times before)

      Thanks! 😄

      M 1 Reply Last reply Reply Quote 0
      • M
        murgero App Dev @jdaviescoates last edited by

        @jdaviescoates Does the unmanaged app need the SMTP plugin?

        BrutalBirdie 1 Reply Last reply Reply Quote 0
        • BrutalBirdie
          BrutalBirdie App Dev @murgero last edited by

          @murgero said in How to fix SMTP after migrating from Managed to Unmanaged:

          @jdaviescoates Does the unmanaged app need the SMTP plugin?

          https://git.cloudron.io/cloudron/wordpress-unmanaged-app/-/blob/master/CloudronManifest.json

          Sendmail Cloudron Addon is present.

          "addons": {
              "mysql": {},
              "localstorage": {
                "ftp": {
                  "uid": 33,
                  "uname": "www-data"
                }
              },
              "sendmail": {},
              "scheduler": {
                "wpcron": {
                  "schedule": "*/1 * * * *",
                  "command": "/app/pkg/cron.sh"
                }
              },
              "redis": {}
            }
          

          I have a wordpress inside a lamp-app and needed to install WP-Mail SMTP and these are my settings.

          # Mail sender
          * info@domain.tld
          
          # E-Mail Send Service
          * SMTP-Connection
          
          # SMTP-Server
          * mail
          
          # encryption
          * none
          
          # SMTP Port
          * 2525
          
          # SMTP Username
          * lampphp72.app@domain.tld
          
          # SMTP Passwort
          Check vars in cloudron console
          
          M 1 Reply Last reply Reply Quote 0
          • M
            murgero App Dev @BrutalBirdie last edited by murgero

            @BrutalBirdie OK - in the unmanaged Wordpress app, did you also install the WP-mail SMTP plugin? Not to be confused with the sendmail addon from cloudron.

            BrutalBirdie jdaviescoates 2 Replies Last reply Reply Quote 1
            • BrutalBirdie
              BrutalBirdie App Dev @murgero last edited by

              @murgero said in How to fix SMTP after migrating from Managed to Unmanaged:

              @BrutalBirdie OK - in the unmanaged Wordpress app, did you also install the WP-mail SMTP plugin? Not to be confused with the sendmail addon from cloudron.

              Like I wrote, I do not use the unmanaged wordpress app, I use the lamp-app.

              M 1 Reply Last reply Reply Quote 0
              • M
                murgero App Dev @BrutalBirdie last edited by

                @BrutalBirdie Oh, you're not the original poster 😖 sorry!

                1 Reply Last reply Reply Quote 1
                • girish
                  girish Staff last edited by

                  I think that's the missing bit - WP-Mail SMTP needs to be installed and has to be installed. After that, if you restart the app, the package will automatically re-configure that plugin to use the sendmail addon credentials.

                  jdaviescoates 1 Reply Last reply Reply Quote 4
                  • d19dotca
                    d19dotca last edited by

                    Okay, so in my experience using WP-All-In-One Migration plugin, you want to make sure the "Do not replace email domain" is selected, assuming you're putting it eventually back on the original domain. Otherwise you will need to leave it unchecked so that it carries over and takes on the new SMTP settings as that not only impacts the email domain shown on the public site but the settings in WP Mail SMTP too.

                    jdaviescoates 1 Reply Last reply Reply Quote 1
                    • jdaviescoates
                      jdaviescoates @girish last edited by

                      @girish said in How to fix SMTP after migrating from Managed to Unmanaged:

                      I think that's the missing bit - WP-Mail SMTP needs to be installed and has to be installed. After that, if you restart the app, the package will automatically re-configure that plugin to use the sendmail addon credentials.

                      It is installed, it's just the credentials are wrong (I think), because they've been copied over from the Managed one when I imported the All in one Migration export files with the db and files etc.

                      1 Reply Last reply Reply Quote 0
                      • jdaviescoates
                        jdaviescoates @murgero last edited by

                        @murgero said in How to fix SMTP after migrating from Managed to Unmanaged:

                        OK - in the unmanaged Wordpress app, did you also install the WP-mail SMTP plugin?

                        Just to say, no, the WP Mail SMTP plugin is installed by default in both the Managed and Unmanaged Wordpress apps.

                        1 Reply Last reply Reply Quote 0
                        • jdaviescoates
                          jdaviescoates @d19dotca last edited by

                          @d19dotca said in How to fix SMTP after migrating from Managed to Unmanaged:

                          Okay, so in my experience using WP-All-In-One Migration plugin, you want to make sure the "Do not replace email domain" is selected, assuming you're putting it eventually back on the original domain.

                          Aha.

                          I didn't actually see any options, will check next time I do it!

                          Thanks. And yes, it's at the same domain.

                          But still not really sure what to do now, given I didn't select "Do not replace email domain".

                          Where and when do you see that option? When creating the export? Or when importing the export?

                          Thanks!

                          d19dotca 1 Reply Last reply Reply Quote 0
                          • girish
                            girish Staff last edited by

                            @jdaviescoates Just restart the app. Repair -> Restart. It will fix up the credentials of the SMTP plugin.

                            jdaviescoates 1 Reply Last reply Reply Quote 4
                            • jdaviescoates
                              jdaviescoates @girish last edited by

                              @girish worked, thanks! Should've thought to just try that in the first instance! 🙂

                              1 Reply Last reply Reply Quote 0
                              • d19dotca
                                d19dotca @jdaviescoates last edited by

                                @jdaviescoates looks like it’s already fixed but for future reference those options are on export (too late by time you’re doing import unfortunately). There’s an advanced settings collapsible item (collapsed by default so not easy to see) above the export button. It’ll give you a bunch of options such as the email ones plus others like not exporting spam comments, revision history, plugins, themes, etc.

                                jdaviescoates 1 Reply Last reply Reply Quote 1
                                • jdaviescoates
                                  jdaviescoates @d19dotca last edited by

                                  @d19dotca great, thanks 🙂

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post