I had recently switched to KDE from Gnome and was looking for an Alternative for Geary. I really liked how fast Geary was and neither Thunderbird nor KMail could act as a replacement for my need(Simple and fast). Before giving up for another Electron app, I gave a try to Trojita and immediately fell in love with its speed. It was blazingly fast to the extent even Geary could never match! This is a simple guide to setup Trojita for Gmail.
Sources:
Overview:
You need to make use of App Passwords in Google Account in order to access Trojita through Gmail (The other way is to enable Less Secure App Access which doesn’t sound inviting!). App Passwords, in turn, need 2-Factor Authentication turned on.
After installing Trojita, you need to setup IMAP servers for Gmail.
Turn on 2- Step Verification
Set up App Passwords
Install Trojita
Logging in with Gmail
1. Turn on 2-StepVerification
- Open your Google Account.
- In the navigation panel, select Security.
- Under “Signing in to Google,” select 2-Step Verification > Get started.
- Follow the on-screen steps.
After you set up 2-Step Verification, you’ll sign in to your account in two steps using:
- Something you know, like your password
- Something you have, like your phone (Tap Yes/No in the notification that pops up)
2. Setting up App Passwords
Go to your Google Account.
On the left navigation panel, choose Security.
On the ‘Signing in to Google’ panel, choose App passwords. If you don’t see this option:
2-Step Verification is not set up for your account. (Note: Use your Phone to sign in != 2-Step Verification in Google 🤷)
2-Step Verification is set up for security keys only
Your account is through work, school or other organisation
You’ve turned on Advanced Protection for your account
At the bottom, choose Select app and choose Other.
Type in ‘Trojita’.
Choose Generate.
The app password is the 16-character code in the yellow bar on your device.
3. Installing Trojita
In Ubuntu Konsole,
sudo apt install trojita
You can install the same using the respective store in your distro.
4. Logging in with Gmail Account
- Open Trojita. If it doesn’t show up settings, go to IMAP > Settings.
- In the General Tab, set up Passwords as Secure Storage via QtKeychain. Trojita’s default stores your password as plain text (so does many other popular Email clients!)
- Go to IMAP tab and set up the following.
- Encryption: Force Encryption (TLS)
- Server: imap.gmail.com
- Port: 993
- Username: yourusername@gmail.com
- Password: Your_App_Password
- Go to SMTP tab and set up the following.
- Encryption: Force Encryption (TLS)
- Server: smtp.gmail.com
- Port: 465
- Enable Authenticate.
- Enable Use IMAP Credentials.
- Sent Folder Name: [Gmail]/Sent Mail
- Click Save.
- Enjoy the Lightning Speed mailing!