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. App Wishlist
  3. Cypht - Lightweight open source webmail application written in PHP and JavaScript

Cypht - Lightweight open source webmail application written in PHP and JavaScript

Scheduled Pinned Locked Moved App Wishlist
44 Posts 16 Posters 7.8k Views 15 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.
  • 32463 3246

    Has anyone gotten this to work either as an app or via the LAMP app?

    I am struggling to get it working with either LDAP or MySQL 😒

    32463 Offline
    32463 Offline
    3246
    wrote on last edited by
    #11

    Got it working using IMAP auth, logging in using an email account (my Cloudron one) and storing the session.

    πŸ‘‰ Find our more www.bebraver.online

    necrevistonnezrN 1 Reply Last reply
    5
    • 32463 3246

      Got it working using IMAP auth, logging in using an email account (my Cloudron one) and storing the session.

      necrevistonnezrN Offline
      necrevistonnezrN Offline
      necrevistonnezr
      wrote on last edited by
      #12

      @3246 Cool - maybe you can share a quick how-to?

      32463 1 Reply Last reply
      3
      • necrevistonnezrN necrevistonnezr

        @3246 Cool - maybe you can share a quick how-to?

        32463 Offline
        32463 Offline
        3246
        wrote on last edited by 3246
        #13

        @necrevistonnezr πŸ‘

        1. Install Cypht app (d'uh)

        2. Open the Filemanager for the app and navigate to cypht / hm3.ini

        3. On line 55 change the value to auth_type = IMAP

        4. In the 'IMAP Authentication' section (from line 77 onwards), amend the IMAP server settings to suit your server. I have used the Cloudron one - simples.

        ; IMAP Authentication
        ; -------------------
        ; If auth_type is set to IMAP, configure the IMAP server to authenticate against
        ; with the following settings, otherwise these are ignored.
        ;
        ; This is just a label used in the UI. It can be set to anything
        imap_auth_name=Cloudron
        
        ; The hostname or IP address of the IMAP server to authenticate to
        imap_auth_server=mysupercoolcloudron.server
        
        ; The port the IMAP server is listening on.
        imap_auth_port=993
        
        ; Enable TLS/SSL connections. Leave blank or set to false to disable. Set to
        ; true to enable TLS connections. If you want to use IMAP STARTTLS, do NOT
        ; enable this. This is only for TLS enabled sockets (typically on port 993).
        imap_auth_tls=true
        
        1. On line 157 change the value to user_config_type=file

        This way no db is needed and settings are kept in files.

        1. Make sure that the location for where cypht will place the files exists. For example, on line 165, change the value to user_settings_dir=/app/data/hm3/users

        Line 173 attachment_dir=/app/data/hm3/attachments

        Line 181 app_data_dir=/app/data/hm3/app_data

        1. Save the file and close the Filemanager

        2. Open the Terminal for the app and change to the cypht directory: cd ../data/cypht/

        3. Run the following command to update the config for cypht: sudo php ./scripts/config_gen.php

        4. Get out of the Terminal and restart the app

        5. Login using an appropriate account that authenticates against the IMAP server you added to the config.

        Enjoy and let me know how you get on πŸ™‚

        πŸ‘‰ Find our more www.bebraver.online

        necrevistonnezrN 1 Reply Last reply
        6
        • 32463 3246

          @necrevistonnezr πŸ‘

          1. Install Cypht app (d'uh)

          2. Open the Filemanager for the app and navigate to cypht / hm3.ini

          3. On line 55 change the value to auth_type = IMAP

          4. In the 'IMAP Authentication' section (from line 77 onwards), amend the IMAP server settings to suit your server. I have used the Cloudron one - simples.

          ; IMAP Authentication
          ; -------------------
          ; If auth_type is set to IMAP, configure the IMAP server to authenticate against
          ; with the following settings, otherwise these are ignored.
          ;
          ; This is just a label used in the UI. It can be set to anything
          imap_auth_name=Cloudron
          
          ; The hostname or IP address of the IMAP server to authenticate to
          imap_auth_server=mysupercoolcloudron.server
          
          ; The port the IMAP server is listening on.
          imap_auth_port=993
          
          ; Enable TLS/SSL connections. Leave blank or set to false to disable. Set to
          ; true to enable TLS connections. If you want to use IMAP STARTTLS, do NOT
          ; enable this. This is only for TLS enabled sockets (typically on port 993).
          imap_auth_tls=true
          
          1. On line 157 change the value to user_config_type=file

          This way no db is needed and settings are kept in files.

          1. Make sure that the location for where cypht will place the files exists. For example, on line 165, change the value to user_settings_dir=/app/data/hm3/users

          Line 173 attachment_dir=/app/data/hm3/attachments

          Line 181 app_data_dir=/app/data/hm3/app_data

          1. Save the file and close the Filemanager

          2. Open the Terminal for the app and change to the cypht directory: cd ../data/cypht/

          3. Run the following command to update the config for cypht: sudo php ./scripts/config_gen.php

          4. Get out of the Terminal and restart the app

          5. Login using an appropriate account that authenticates against the IMAP server you added to the config.

          Enjoy and let me know how you get on πŸ™‚

          necrevistonnezrN Offline
          necrevistonnezrN Offline
          necrevistonnezr
          wrote on last edited by
          #14

          @3246 said in Cypht - Lightweight open source webmail application written in PHP and JavaScript:

          @necrevistonnezr πŸ‘

          1. Install Cypht app (d'uh)

          Thanks!
          You left out one juicy part - did you like install this… into the LAMP app? Is there any special folder to use for the source (as per https://cypht.org/install.html)?

          32463 1 Reply Last reply
          1
          • necrevistonnezrN necrevistonnezr

            @3246 said in Cypht - Lightweight open source webmail application written in PHP and JavaScript:

            @necrevistonnezr πŸ‘

            1. Install Cypht app (d'uh)

            Thanks!
            You left out one juicy part - did you like install this… into the LAMP app? Is there any special folder to use for the source (as per https://cypht.org/install.html)?

            32463 Offline
            32463 Offline
            3246
            wrote on last edited by
            #15

            @necrevistonnezr ah, yes πŸ™‚ I just followed the install guide on their website. It's pretty straight forward I found: https://cypht.org/install.html

            The approach is slightly more complex than downloading an archive and pointing it to a database but actually pretty neat and quick.

            πŸ‘‰ Find our more www.bebraver.online

            necrevistonnezrN 1 Reply Last reply
            1
            • humptydumptyH Offline
              humptydumptyH Offline
              humptydumpty
              wrote on last edited by
              #16

              Is there a demo of Cypht somewhere? I can't find any on their site.

              1 Reply Last reply
              0
              • 32463 3246

                @necrevistonnezr ah, yes πŸ™‚ I just followed the install guide on their website. It's pretty straight forward I found: https://cypht.org/install.html

                The approach is slightly more complex than downloading an archive and pointing it to a database but actually pretty neat and quick.

                necrevistonnezrN Offline
                necrevistonnezrN Offline
                necrevistonnezr
                wrote on last edited by
                #17

                @3246 said in Cypht - Lightweight open source webmail application written in PHP and JavaScript:

                @necrevistonnezr ah, yes πŸ™‚ I just followed the install guide on their website. It's pretty straight forward I found: https://cypht.org/install.html

                The approach is slightly more complex than downloading an archive and pointing it to a database but actually pretty neat and quick.

                • Installed Lamp App
                • Downloaded the Code to /app/data/ and unzipped, cd to the unzipped dir
                • Tried to run composer install, getting an error [LogicException] No lockfile found. Unable to read locked packages
                • Run composer diagnose: Getting the error
                Checking pubkeys: FAIL
                Missing pubkey for tags verification
                Missing pubkey for dev verification
                Run composer self-update --update-keys to set them up
                
                • run composer self-update --update-keys, I have to open https://composer.github.io/pubkeys.html to find the latest keys (WTF?!)
                • copy and paste the public key, get an error [ErrorException] file_put_contents(/root/.config/composer/keys.dev.pub): failed to open stream: No such file or directory

                Grrrrr....

                robiR 1 Reply Last reply
                1
                • D Offline
                  D Offline
                  dozod
                  wrote on last edited by
                  #18

                  Would really like to see this on Cloudron. It's a powerful unified inbox solution + rss reader.

                  1 Reply Last reply
                  2
                  • girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #19

                    This does look good! Has sieve support, imap etc. All the things we need to get it working out of the box with Cloudron mail. Will check it out.

                    1 Reply Last reply
                    4
                    • necrevistonnezrN necrevistonnezr

                      @3246 said in Cypht - Lightweight open source webmail application written in PHP and JavaScript:

                      @necrevistonnezr ah, yes πŸ™‚ I just followed the install guide on their website. It's pretty straight forward I found: https://cypht.org/install.html

                      The approach is slightly more complex than downloading an archive and pointing it to a database but actually pretty neat and quick.

                      • Installed Lamp App
                      • Downloaded the Code to /app/data/ and unzipped, cd to the unzipped dir
                      • Tried to run composer install, getting an error [LogicException] No lockfile found. Unable to read locked packages
                      • Run composer diagnose: Getting the error
                      Checking pubkeys: FAIL
                      Missing pubkey for tags verification
                      Missing pubkey for dev verification
                      Run composer self-update --update-keys to set them up
                      
                      • run composer self-update --update-keys, I have to open https://composer.github.io/pubkeys.html to find the latest keys (WTF?!)
                      • copy and paste the public key, get an error [ErrorException] file_put_contents(/root/.config/composer/keys.dev.pub): failed to open stream: No such file or directory

                      Grrrrr....

                      robiR Offline
                      robiR Offline
                      robi
                      wrote on last edited by robi
                      #20

                      @necrevistonnezr said in Cypht - Lightweight open source webmail application written in PHP and JavaScript:

                      copy and paste the public key, get an error [ErrorException] file_put_contents(/root/.config/composer/keys.dev.pub): failed to open stream: No such file or directory

                      set the HOME=/app/data env var to make this work

                      LAMP app and terminal session should do that automagically IMO @staff

                      Conscious tech

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        crazybrad
                        wrote on last edited by
                        #21

                        @staff Was investigating this independently. Should have realized that Team Cloudron has been scoping it out for years. +1 for bundling this. Seems like a better email option that some others we already have.

                        1 Reply Last reply
                        1
                        • robiR Offline
                          robiR Offline
                          robi
                          wrote on last edited by
                          #22

                          @Kubernetes ?

                          Conscious tech

                          1 Reply Last reply
                          1
                          • KubernetesK Offline
                            KubernetesK Offline
                            Kubernetes
                            App Dev
                            wrote on last edited by Kubernetes
                            #23

                            I started to create a package in my Repo

                            • It is not yet working
                            • PHP needs to be activated in nginx
                            • The hm3.ini is very basic and needs improvement (missing SMTP config, Database Config, LDAP Config)
                            • there might be more issues when PHP is running
                            • easy installer will not be ready before the package is usable
                            1 Reply Last reply
                            3
                            • KubernetesK Offline
                              KubernetesK Offline
                              Kubernetes
                              App Dev
                              wrote on last edited by Kubernetes
                              #24

                              Grmpf.... I am totally lost with getting nginx up and running....

                              I receive these error logs:

                              root@b64767c7-9e50-475e-9f57-40b454d06b97:/app/code# ./start.sh 
                              ==> Starting App
                              2024-02-06 17:29:06,821 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
                              2024-02-06 17:29:06,824 INFO supervisord started with pid 35
                              2024-02-06 17:29:07,829 INFO spawned: 'nginx' with pid 46
                              nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (30: Read-only file system)
                              2024/02/06 17:29:07 [warn] 46#46: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1
                              2024/02/06 17:29:07 [emerg] 46#46: mkdir() "/run/client_body" failed (13: Permission denied)
                              2024-02-06 17:29:07,863 INFO exited: nginx (exit status 1; not expected)
                              

                              I don't understand why it still tries to use /var/log/nginx/error.log

                              I am using supervisord to start, in nginx.conf the access and error logs are directed to /run . even in the nginx default I refer to /run for the logging.

                              I have updated the source in my repo, if someone want to have a look

                              girishG 1 Reply Last reply
                              1
                              • timconsidineT Offline
                                timconsidineT Offline
                                timconsidine
                                App Dev
                                wrote on last edited by timconsidine
                                #25

                                I'm not sure, so genuine question : does /run/client_body need to be created in the Dockerfile or start.sh ?

                                The error log is strange as you have set it explicitly.
                                Is this line include /etc/nginx/conf.d/*.conf; including a master conf which overrides the nginx.conf ?
                                Not an nginx expoert, just taking guesses.

                                KubernetesK 1 Reply Last reply
                                2
                                • timconsidineT timconsidine

                                  I'm not sure, so genuine question : does /run/client_body need to be created in the Dockerfile or start.sh ?

                                  The error log is strange as you have set it explicitly.
                                  Is this line include /etc/nginx/conf.d/*.conf; including a master conf which overrides the nginx.conf ?
                                  Not an nginx expoert, just taking guesses.

                                  KubernetesK Offline
                                  KubernetesK Offline
                                  Kubernetes
                                  App Dev
                                  wrote on last edited by
                                  #26

                                  @timconsidine Thanks for sharing ideas, the path /etc/nginx/conf.d/ is empty

                                  1 Reply Last reply
                                  0
                                  • timconsidineT Offline
                                    timconsidineT Offline
                                    timconsidine
                                    App Dev
                                    wrote on last edited by
                                    #27

                                    Hmmm.
                                    I notice that /run/access.log and /run/error.log are owned root:root and are rw-r--r--
                                    But processes are running as www-data or cloudron ?
                                    Still just chucking stuff around

                                    1 Reply Last reply
                                    1
                                    • robiR Offline
                                      robiR Offline
                                      robi
                                      wrote on last edited by robi
                                      #28

                                      Perhaps it's looking for an environment variable and when not found it uses a default. Set HOME and whatever else nginx looks for with supervisor.

                                      Conscious tech

                                      KubernetesK 1 Reply Last reply
                                      0
                                      • robiR robi

                                        Perhaps it's looking for an environment variable and when not found it uses a default. Set HOME and whatever else nginx looks for with supervisor.

                                        KubernetesK Offline
                                        KubernetesK Offline
                                        Kubernetes
                                        App Dev
                                        wrote on last edited by
                                        #29

                                        @robi I already tried with HOME, didn't help

                                        robiR 1 Reply Last reply
                                        0
                                        • KubernetesK Offline
                                          KubernetesK Offline
                                          Kubernetes
                                          App Dev
                                          wrote on last edited by Kubernetes
                                          #30

                                          Okay, I got one step further after using a symlink in Dockerfile for the error.log

                                          It seems the document root is still broken, because I get
                                          Feb 06 20:22:40=> Healtheck error got response status 502

                                          Okay, this is because of not properly working php

                                          root@da491a6f-01a2-4d9c-859a-e34799e1c3cf:/app/code# tail -f /run/error.log 
                                          2024/02/06 19:25:20 [crit] 24#24: *37 connect() to unix:/run/php/php8.1-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 172.18.0.1, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "a101.
                                          
                                          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