Tachyon¶
Prefer one command? Try the Tachyon Playbook
Tachyon is an open-source webmail client. It is a fork of SnappyMail, but without legacy code. It requires no database, is free of trackers, and supports features like multiple accounts and undo send, while also serving as a Sieve editor. It can function as a drop-in replacement for SnappyMail. The Tachyon Playbook automates a fresh installation. Example output below is abbreviated.
Prerequisites¶
We're using PHP version 8.4.
[isabell@moondust ~]$ uberspace tool php version set 8.4
OK: Set version of php to 8.4
Installation¶
Enter your DocumentRoot directory, download the latest version, unpack the archive and then delete it.
[isabell@moondust ~]$ cd /var/www/virtual/$USER/html/
[isabell@moondust html]$ url=$(curl -fsS --retry 3 https://api.github.com/repos/kimusan/Tachyon/releases/latest | jq -er '.assets[] | select(.name == "tachyon-latest.tar.gz") | .browser_download_url')
[isabell@moondust html]$ curl -fL --retry 3 "${url:?Resolve the release URL first}" -o tachyon-latest.tar.gz
[...]
[isabell@moondust html]$ tar -xzf tachyon-latest.tar.gz
[isabell@moondust html]$ rm tachyon-latest.tar.gz
curl -fsS reports download errors, and jq -er extracts the archive URL or fails if it is missing. --retry 3 retries temporary failures. Stop if downloading or extraction fails.
For security reasons, it is a good idea to move the data directory from the DocumentRoot to a directory that cannot be accessed by the web server. The home directory is suitable for this purpose. Move the directory data and rename it tachyon-data at the same time, so that you know later it is a part of Tachyon.
[isabell@moondust ~]$ cd /var/www/virtual/$USER/html/
[isabell@moondust html]$ mv data ~/tachyon-data
[isabell@moondust html]$ chmod 700 ~/tachyon-data
Configuration¶
Configure Tachyon¶
You must tell Tachyon about the moved data directory. To do this, enter the new path in the /var/www/virtual/$USER/html/_include.php file as the value of the constant APP_DATA_FOLDER_PATH. To achieve this, add the following line:
Afterwards, rename the file _include.php to include.php.
[isabell@moondust ~]$ cd /var/www/virtual/$USER/html/
[isabell@moondust html]$ mv _include.php include.php
Accessing the Admin Panel¶
Open the admin panel, which can now be found here:
https://isabell.uber.space/?admin
When you access this page for the first time, the ~/tachyon-data/_data_/_default_/admin_password.txt file is created with the initial password for the user admin. Use this to log in, then change your password under "Security". The file with the password will now be deleted automatically.
Configure Your Domains¶
You may now want to configure your own domains for email access. You can do this in the admin panel under "Domains".
Be aware that an entry for moondust.uberspace.de has already been created there automatically. However, this one is incorrect so you should delete it. You can find the correct settings for IMAP and SMTP here: Accessing your mail
Use your full mailbox email address and mailbox password to read mail at https://isabell.uber.space/. These are separate from the Tachyon administrator credentials.
Tuning¶
You can protect your admin account from unauthorized access by using two-factor authentication in addition to a strong password. You can activate this in the admin panel by clicking the "Generate" button under "Security". Please note that you must also enter your current password in order to be able to save it. Now scan the QR code with an app for two-factor authentication. If you don't have one yet, take a look at 2FAS or Ente Auth.
Updates¶
Note
Check the update feed regularly.
Back up ~/tachyon-data, include.php, and the application files before updating. Keep a copy outside the Asteroid and avoid using webmail during the update.
To update the installation, download the new version and overwrite the existing files with those from the new version's archive. Any additional reconfiguration will be done by Tachyon during the next run. Preserve include.php and the private data directory; do not overwrite or reset them. Verify mailbox login and folder access afterwards. Old versions in /var/www/virtual/$USER/html/tachyon/v/ can be deleted after a successful update.
Further Reading¶
Replacing SnappyMail¶
Tachyon is a drop-in replacement for SnappyMail. For instructions on how this works, please refer to the official documentation under Migration/Upgrade from SnappyMail. Note that you might have moved the data folder to ~/snappymail-data if you followed the SnappyMail guide.