Cypht - Lightweight open source webmail application written in PHP and JavaScript
-
Some older screenshots from 2016: https://unencumberedbyfacts.com/2016/09/08/cypht-webmail-screen-shots/
Some interesting comparisons: https://wikisuite.org/Why-Cyrus-IMAP-and-Cypht -
-
Install Cypht app (d'uh)
-
Open the Filemanager for the app and navigate to
cypht / hm3.ini
-
On line 55 change the value to
auth_type = IMAP
-
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
- On line 157 change the value to
user_config_type=file
This way no db is needed and settings are kept in files.
- 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
-
Save the file and close the Filemanager
-
Open the Terminal for the app and change to the cypht directory:
cd ../data/cypht/
-
Run the following command to update the config for cypht:
sudo php ./scripts/config_gen.php
-
Get out of the Terminal and restart the app
-
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
-
-
@3246 said in Cypht - Lightweight open source webmail application written in PHP and JavaScript:
- 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)? -
@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.
-
Is there a demo of Cypht somewhere? I can't find any on their site.
-
@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....
-
@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
-
-
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
-
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
-
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 lineinclude /etc/nginx/conf.d/*.conf;
including a master conf which overrides the nginx.conf ?
Not an nginx expoert, just taking guesses. -
@timconsidine Thanks for sharing ideas, the path
/etc/nginx/conf.d/
is empty -
Hmmm.
I notice that/run/access.log
and/run/error.log
are ownedroot:root
and arerw-r--r--
But processes are running as www-data or cloudron ?
Still just chucking stuff around -
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.