How to Set Up a Gmail App Password (2FA) for Zero-Server IMAP Tasks on iPhone
Google blocks your regular Gmail password from direct IMAP/SMTP clients for security — which is why privacy-first local-first apps use a dedicated 16-character App Password instead of routing your mailbox through a third-party cloud OAuth relay. Follow this 2-minute walkthrough to connect Gmail (or iCloud Mail) cleanly in Taskmailer 1.5.0 and isolate each mailbox into its own clean task profile.
Why Direct IMAP + App Password Keeps Your Emails Off Third-Party Servers
Many "smart email" apps ask you to grant broad cloud OAuth tokens so their backend servers can continuously download, parse, and cache your entire Gmail history in the cloud. With a direct IMAP connection and a revocable 16-character App Password, your iPhone talks strictly to imap.gmail.com and smtp.gmail.com — zero middleman servers ever see your messages, and you can revoke the App Password from Google Security in one click anytime.


4-Step Gmail 2FA & App Password Setup (Takes 2 Minutes)
Confirm IMAP is enabled in Gmail settings
In Gmail web settings (See all settings → Forwarding and POP/IMAP), verify that IMAP access is enabled (on most personal Gmail accounts it is active by default).
Enable 2-Step Verification on your Google Account
Open myaccount.google.com/security and turn on 2-Step Verification. Google only displays the App Passwords option once 2-Step Verification is active.
Generate a revocable 16-character App Password
Search for App passwords in your Google Account search bar (or visit myaccount.google.com/apppasswords), enter the label Taskmailer iPhone, and copy the generated 16-character code (spaces are ignored automatically).
Connect inside Taskmailer 1.5.0's Guided Setup
Open Taskmailer, tap Add Email → Gmail (version 1.5.0 walks you screen-by-screen through these exact steps), enter your Gmail address, and paste the 16-character App Password. Taskmailer auto-fills the encrypted TLS ports and saves your password strictly inside Apple's iOS Keychain.
Quick Reference: Auto-Filled IMAP & SMTP Ports
| Provider | IMAP Server (SSL/TLS) | SMTP Server | Credential Type |
|---|---|---|---|
| Gmail / Google Workspace | imap.gmail.com : 993 | smtp.gmail.com : 465 | 16-char Google App Password |
| iCloud Mail | imap.mail.me.com : 993 | smtp.mail.me.com : 587 | Apple Account App-Specific Password |
| Fastmail | imap.fastmail.com : 993 | smtp.fastmail.com : 465 | Fastmail App Password (IMAP/SMTP) |
Keep Studio, Client & Personal Tasks Strictly Isolated
Want to test Taskmailer before setting up any password? Version 1.5.0 lets you start in the On-Device profile right away. Later, when you add your Gmail and iCloud accounts, each email gets its own clean profile (own Tasks, Inbox, and Sent) with a 1-tap switcher at the top — and Taskmailer asks whether you want to move and back up your existing local tasks into your newly connected account.
Frequently Asked Questions
Why can't I see 'App passwords' in my Google Account?
What if I use Google Workspace (custom company domain)?
How do I get an App-Specific Password for iCloud Mail?
Can I try Taskmailer first without creating an App Password?
Related Guides & Tools
How to Turn Gmail & iCloud Emails Into Trackable Tasks
Full walkthrough of email delegation, Remind follow-ups, and 3-column Kanban boards.
RFC 5545 VTODO (.ics) Task Generator
Create and download a standards-compliant .ics task payload directly in your browser.