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
  • Brite
  • 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. LimeSurvey
  3. Email Settings

Email Settings

Scheduled Pinned Locked Moved LimeSurvey
11 Posts 5 Posters 667 Views 5 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.
  • jamesJ Offline
    jamesJ Offline
    james
    Staff
    wrote on last edited by
    #2

    Do you mean => https://docs.cloudron.io/apps/#disable-email-configuration?

    But very good that you mention the start.sh.
    I just took a peek https://git.cloudron.io/packages/limesurvey-app/-/blob/master/start.sh?ref_type=heads#L35-L44

    echo "==> Configure email"
    $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('siteadminemail', '${CLOUDRON_MAIL_FROM}')"
    # support for single quote in splace name
    display_name=$(echo -n "${CLOUDRON_MAIL_FROM_DISPLAY_NAME:-LimeSurvey}" | base64)
    $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('siteadminname', FROM_BASE64('${display_name}'))"
    $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('siteadminbounce', '${CLOUDRON_MAIL_FROM}')"
    $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('emailmethod', 'smtp')"
    $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('emailsmtpssl', '')"
    $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('emailsmtphost', '${CLOUDRON_MAIL_SMTP_SERVER}:${CLOUDRON_MAIL_SMTP_PORT}')"
    $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('emailsmtpuser', '${CLOUDRON_MAIL_SMTP_USERNAME}')"
    

    There is no check surrounding this based on https://docs.cloudron.io/apps/#disable-email-configuration.
    This means, the app needs to be updated to include such a check. Otherwise, even when disabling via. the UI this will still try to set it.
    Thanks for reporting!

    D 1 Reply Last reply
    3
    • jamesJ james

      Do you mean => https://docs.cloudron.io/apps/#disable-email-configuration?

      But very good that you mention the start.sh.
      I just took a peek https://git.cloudron.io/packages/limesurvey-app/-/blob/master/start.sh?ref_type=heads#L35-L44

      echo "==> Configure email"
      $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('siteadminemail', '${CLOUDRON_MAIL_FROM}')"
      # support for single quote in splace name
      display_name=$(echo -n "${CLOUDRON_MAIL_FROM_DISPLAY_NAME:-LimeSurvey}" | base64)
      $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('siteadminname', FROM_BASE64('${display_name}'))"
      $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('siteadminbounce', '${CLOUDRON_MAIL_FROM}')"
      $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('emailmethod', 'smtp')"
      $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('emailsmtpssl', '')"
      $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('emailsmtphost', '${CLOUDRON_MAIL_SMTP_SERVER}:${CLOUDRON_MAIL_SMTP_PORT}')"
      $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('emailsmtpuser', '${CLOUDRON_MAIL_SMTP_USERNAME}')"
      

      There is no check surrounding this based on https://docs.cloudron.io/apps/#disable-email-configuration.
      This means, the app needs to be updated to include such a check. Otherwise, even when disabling via. the UI this will still try to set it.
      Thanks for reporting!

      D Offline
      D Offline
      darren
      wrote on last edited by
      #3

      @james yes I am also not sure this app has the option to disable email configuration even presented in the UI which would make sense since there's no check in the start.sh to respect a UI pref.

      7b810dc1-e48d-4d24-9008-73b97ff481a6-image.png

      1 Reply Last reply
      4
      • jamesJ Offline
        jamesJ Offline
        james
        Staff
        wrote on last edited by
        #4

        @BrutalBirdie did the changes https://git.cloudron.io/packages/limesurvey-app/-/merge_requests/25
        Will be reviewed, and then the app update will be published.

        1 Reply Last reply
        2
        • nebulonN Away
          nebulonN Away
          nebulon
          Staff
          wrote on last edited by
          #5

          Updated package with optional sendmail is out now.

          1 Reply Last reply
          2
          • D Offline
            D Offline
            darren
            wrote on last edited by
            #6

            Thank you!

            1 Reply Last reply
            2
            • jamesJ Offline
              jamesJ Offline
              james
              Staff
              wrote on last edited by
              #7

              @darren we can take the thanks as a "This now solved my issue", yes?
              If so, you can just upvote this message.

              1 Reply Last reply
              2
              • D Offline
                D Offline
                darren
                wrote on last edited by
                #8

                Yes thanks I think this is resolved!

                1 Reply Last reply
                2
                • D Offline
                  D Offline
                  darren
                  wrote last edited by
                  #9

                  Hi @james I think there's been a regression. Email passwords are no longer persisted following app updates. I think other settings seem to be persisted.

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    joseph
                    Staff
                    wrote last edited by
                    #10

                    @darren Can you explain more? Initial report was about optional sendmail which is now resolved. What do you mean by "Email passwords are no longer persisted" ? Do you mean you have sendmail disabled but for some reason email password (your custom setup) is not persisted?

                    1 Reply Last reply
                    0
                    • girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote last edited by
                      #11

                      Great catch. @joseph there was some old migration workaround I added many years ago.

                      https://git.cloudron.io/packages/limesurvey-app/-/merge_requests/39

                      1 Reply Last reply
                      1
                      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