Trojita, the fastest Email Client - Gmail Setup Guide

 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.
  1. Turn on 2- Step Verification
  2. Set up App Passwords
  3. Install Trojita
  4. Logging in with Gmail

1. Turn on 2-StepVerification


  1. Open your Google Account.
  2. In the navigation panel, select Security.
  3. Under “Signing in to Google,” select 2-Step Verification > Get started.
  4. 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

 

  1. Go to your Google Account.
  2. On the left navigation panel, choose Security.
  3. 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
  4. At the bottom, choose Select app and choose Other.
  5. Type in 'Trojita'.
  6. Choose Generate.
  7. 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

  1. Open Trojita. If it doesn't show up settings, go to IMAP > Settings.
  2. 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!)
  3. 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
  4. 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
  5. Click Save
  6. Enjoy the Lightning Speed mailing!

Comments