Add a Gmail account
Librix Mail has no server of its own and, for now, no Google app of its own either: Gmail is reached with an app password, or with a small Google app that you create once, for free, in your own Google account.
This will get simpler. An official Librix Mail Google app is being set up. Once it is available, adding a Gmail account will come down to “Sign in with Google”, without creating anything. This guide will be updated then.
Which method?
- Mail only: an app password, ready in two minutes.
- Mail, calendar and contacts: your own Google app, about fifteen minutes, once. Google does not accept app passwords for calendars and contacts.
Mail only: app password
- In your Google account, turn on 2-Step Verification (Security › 2-Step Verification). Google requires it for app passwords.
- Create an app password at myaccount.google.com/apppasswords, named for example “Librix Mail”. Google shows a 16-letter password: copy it.
- In Librix Mail: Settings › Accounts › Add account, enter your name and your Gmail address, then Continue; the server settings are found.
- Paste the app password in the App password field, then click Sign in: the account is tested, then added.

Mail, calendar and contacts: your own Google app
The app lives in your Google account and is only used by you. Creating it is free.
1. In the Google Cloud console
- Open console.cloud.google.com with your Google account and create a project, named for example “Librix Mail”.
- In APIs & Services › Library, enable the CalDAV API and the CardDAV API (search for them by name).
- Set up the consent screen (Google Auth Platform, or “OAuth consent screen” depending on the console version): audience External, an app name, your address as support and developer contact.
- In Data access (or “Scopes”), add these three permissions by hand:
https://mail.google.com/,https://www.googleapis.com/auth/calendarandhttps://www.googleapis.com/auth/carddav. - In Clients (or “Credentials”), create an OAuth client ID of type Desktop app. Google gives you a client ID (ending in
.apps.googleusercontent.com) and a client secret (starting withGOCSPX-). - In Audience, either add your Gmail address as a test user, or publish the app (“In production”): see “Testing or in production” below.
2. In Librix Mail
- Settings › Accounts › Add account, enter your name and your Gmail address, then Continue.
- Click Sign in with Google: the full form opens, with OAuth2 (sign-in in the browser) already chosen in Authentication.
- Paste the Google client ID and the Client secret. They go into your system’s keyring and are never shown again.
- Click Sign in with Google: your browser opens. Choose your account and accept the permissions, then come back to Librix Mail and add the account.
Mail, calendars and contacts of the account then appear in Librix Mail. The same Google app can serve several of your Gmail addresses.

Testing or in production
- Testing (the default): only the test users you listed can sign in, and Google ends the connection after 7 days. Librix Mail then shows a banner: one click on Sign in again and you are reconnected.
- In production: the connection lasts. As the app is not verified by Google, the sign-in page shows a warning that the app is not verified: for your own app, choose “Advanced”, then continue. An unverified app is limited to 100 users, which is plenty for personal use.