Create a Gmail App Password and Sign In to Mailriva
Google does not accept your regular password in email programs like Mailriva. You need an app password instead. It takes about 2 minutes and works for Gmail and, if your administrator allows it, for Google Workspace.
App password in 4 steps
Turn on 2-Step Verification
Open myaccount.google.com/signinoptions/twosv and turn on 2-Step Verification if it isn't on yet. Google only offers app passwords when it is.
Create the app password
Open myaccount.google.com/apppasswords. Enter a name such as “Mailriva” and click Create.
Copy the password
Google shows the password once, as 16 characters in four blocks. Copy it. Mailriva removes the spaces automatically when you paste it.
Paste it into Mailriva
Enter your Gmail address in Mailriva. It sets the server and port automatically. Paste the app password into the password field and click Test connection. Mailriva shows the steps right next to the password field; if a sign-in fails, the error message has a “How to” button that opens them.
Google Workspace (custom domain)
Workspace accounts with a custom domain, such as name@company.com, also work with an app password. Mailriva detects them through your domain's MX record and shows the same steps.
In Workspace, your administrator decides whether app passwords are available. They must allow 2-Step Verification. If you don't see the App passwords option, contact your administrator.
Accounts enrolled in Google's Advanced Protection Program cannot use app passwords.
Common errors and fixes
- The App passwords option is missing
- Usually 2-Step Verification is not turned on yet. The option is also missing if you only use security keys as your second step, if your account is in the Advanced Protection Program, or if a Workspace administrator does not allow app passwords.
- “Application-specific password required”
- You entered your regular Google password. Create an app password and use that instead.
- “Invalid credentials” or login failed
- Check that the email address is correct and the app password was pasted completely. If you changed your Google password, Google revokes all app passwords. Create a new one.
- It worked before, now it doesn't
- The app password was revoked, either by you, by a password change, or by your administrator. Create a new one and enter it in Mailriva.
Gmail IMAP settings
| IMAP server | imap.gmail.com |
| Port | 993 |
| Encryption | SSL/TLS |
| Username | your full email address |
| Password | the 16-character app password |
Mailriva fills in these values automatically. IMAP is always on in Gmail; you don't need to enable it.
Frequently asked questions
Is an app password safe?
The app password stays on your computer and is never sent to Mailriva's servers. You can revoke it at any time at myaccount.google.com/apppasswords without changing your Google password.
Do I need to enable IMAP in Gmail?
No. Google removed the setting; IMAP is always on in Gmail.
What happens if I change my Google password?
Google then revokes all app passwords. Create a new app password and enter it in Mailriva.
Why is there no sign-in through a Google window?
The app password is the reliable way to connect Gmail to Mailriva.
Move or back up Gmail
With the app password, you can back up your Gmail mailbox with Mailriva or move it to another mailbox. Your mailbox stays unchanged.