How to Install Trojita Mail on Linux

Trojita (Trojitá) is a Qt email client focused on IMAP. If your Linux distribution still packages it, use that package; otherwise, you can try building from upstream source. KDE’s release list ends at version 0.7 (June 15, 2016), and upstream says its prebuilt downloads are no longer maintained. Check compatibility and password handling before using it for an everyday mailbox.

A Linux software center search for Trojitá, with availability shown as dependent on the distribution.
Search for Trojitá in Discover or another AppStream-capable software center. The package result depends on your Linux distribution.

Check your Linux repositories first

KDE’s Trojitá page points Linux users to AppStream software centers and their distribution’s package manager. Search there before adding a repository. Package availability and version freshness depend on the distribution and release.

Use your distribution’s query to see whether its configured repositories offer a Trojitá package. Refresh the package index first if needed. If there is no result or APT reports Candidate: (none), skip the install command and go to the source-build section.

A Linux terminal checking configured repositories for the Trojita package.
Check the package name in your configured repositories before trying to install it.
DistributionCheck availabilityInstall only if listed
Ubuntu or Debianapt-cache policy trojitasudo apt install trojita
Fedoradnf info trojitasudo dnf install trojita
Arch Linuxpacman -Ss trojitasudo pacman -Syu trojita
openSUSEzypper search -s trojitasudo zypper install trojita
A terminal running the conditional apt install command for Trojita.
Install from the distribution repository only after confirming that it offers a Trojita package.

Review the proposed package changes before confirming. Then launch Trojitá from the app menu or with trojita, if available. Avoid older guides that add an Open Build Service repository for Ubuntu 16.04, download Debian 8 packages, or use apt-key; those instructions target obsolete systems.

Build Trojitá from upstream source

If your repositories do not offer the app, upstream documents a source-build route. It may fail on a modern distribution if an older dependency is unavailable, so use only the repository linked from KDE’s source page and install dependencies from your distribution’s official repositories.

  1. Install build prerequisites. You need Git, CMake, a C++ compiler, and the project’s development libraries. Check the upstream build instructions for dependencies; package names vary by distro.
  2. Clone the KDE source repository and enter the project directory:
git clone https://invent.kde.org/pim/trojita.git
cd trojita
A local Linux source directory containing a trojita checkout.
The Trojitá source checkout is kept in a user-owned source directory.
  1. Configure a separate build directory so generated files stay out of the source tree:
mkdir _build
cd _build
cmake ..
A terminal running cmake .. from the Trojitá build directory.
Run CMake from the separate build directory to check whether the required development libraries are present.
  1. Compile, test, and run the app. The upstream instructions use Make and launch the executable from the build directory:
make -j4
ctest -j 4 --output-on-failure
./trojita
A terminal showing a Trojitá build followed by its CTest checks.
Build and run the available tests before launching the executable from the build folder.

If CMake reports a missing library, install its development package and run cmake .. again. If a required dependency is unavailable or the build fails, do not force old packages onto a current system. Upstream documents running the app from the build folder; that is not a distribution-managed installation.

Configure IMAP and SMTP

At first launch, enter the incoming IMAP and outgoing SMTP details from your email provider. Use its exact hostnames, ports, security mode, and username format. Do not guess based on your email address.

Trojitá account settings with blank fields for the incoming IMAP server, port, username, and password.
Enter the provider’s IMAP server and account details in the incoming-mail section.

Secure IMAP commonly uses implicit TLS on port 993. For outgoing mail, providers commonly support STARTTLS on 587 or implicit TLS on 465. Match the security mode to your provider’s instructions; the IETF email TLS guidance describes these connection patterns.

Trojitá account settings with blank fields for the outgoing SMTP server, port, username, and password.
Enter the provider’s SMTP server and authentication details in the outgoing-mail section.

Before saving a password, read the Trojitá handbook: it warns that the app stores usernames and passwords in a plain-text file on the computer. This is a significant security limitation. Use a dedicated app password if your provider supports one, and revoke it when you stop using Trojitá. Some providers require newer sign-in methods that this older client may not support, so confirm compatibility before entering credentials.

Common problems and removal

  • No package appears: confirm your distro release and refresh repository metadata. Build from source only if you can satisfy its dependencies.
  • CMake cannot find a dependency: install the matching development package from your distro and configure again. Do not mix packages from a different release.
  • Mail will not connect: recheck the server, port, TLS or STARTTLS choice, username, and any app-password or modern-authentication requirement from your provider.
  • Remove the app: uninstall a repository package with the same package manager. For a source build, close Trojitá and delete the source checkout and its _build directory; no system package was registered.

Leave a Comment

How to Record Speaker Output on Linux with Audacity

How to Record Speaker Output on Linux with Audacity

Capture Linux desktop audio in Audacity by routing its recording stream to your output device’s monitor source. Follow PulseAudio and PipeWire steps, export tips, and fixes for silent tracks.

How to Use Dropbox on Linux: Install and Sync Your Files

How to Use Dropbox on Linux: Install and Sync Your Files

Install Dropbox on Linux from the official package, sign in, sync a local folder, manage selective sync, and check status from the command line.

How to Install Inkscape on Linux: Ubuntu, Fedora, Arch, and More

How to Install Inkscape on Linux: Ubuntu, Fedora, Arch, and More

Install Inkscape from your Linux distribution’s repositories, the Ubuntu stable PPA, Snap, or Flathub, with current commands and notes for choosing a package source.

How to Find and Remove Duplicate Files on Linux With FSlint

How to Find and Remove Duplicate Files on Linux With FSlint

Use FSlint to scan selected Linux folders, review duplicate groups, and safely delete redundant files or learn when hard-link merging is appropriate.

How to Install SABnzbd on Linux and Configure It

How to Install SABnzbd on Linux and Configure It

Install SABnzbd on Ubuntu or Debian, or run it in Docker on another Linux host. Then open the web interface and configure your provider and download folders.

How to Install the Paper GTK Theme on Linux

How to Install the Paper GTK Theme on Linux

Install the Paper GTK theme from supported Linux repositories, enable it for GTK apps in GNOME Tweaks, and see what the legacy theme can and cannot change.

How to Install and Set Up Plex on OpenMediaVault with Compose

How to Install and Set Up Plex on OpenMediaVault with Compose

The old OpenMediaVault Plex plugin is archived. Set up Plex on OMV 8 with OMV-Extras, the Compose plugin, persistent storage, and Plex’s official container.

How to Clean and Speed Up Ubuntu Safely

How to Clean and Speed Up Ubuntu Safely

Clean and speed up Ubuntu with safe APT cleanup, storage checks, and startup controls that help free space and troubleshoot a sluggish desktop.

How to Install the Hiri Email Client on Linux

How to Install the Hiri Email Client on Linux

Install Hiri on Linux with its Snap package or official tarball, add a desktop launcher, and check supported accounts plus a warning about Hiri’s old Snap release.

How to Get System Specifications for a Linux PC

How to Get System Specifications for a Linux PC

Use Fastfetch and built-in Linux commands to check your distro, kernel, CPU, memory, graphics, storage, and connected devices, then save a clear report.