Skip to main content

Connection Options

Accounts are managed under Settings → Apps preferences. This page only appears if your role has the User Apps permission.

Google Account (Gmail & Google Calendar)

  1. Go to Settings → Apps preferences and open the Accounts tab
  2. Click Connect with Google. If you already have an account connected, open Gmail and Calendar in the Apps tab instead and click Connect with Google, or Add account if a Google account is already connected
  3. Authorize Twenty to access your Gmail and Google Calendar
  4. Configure email sync settings (visibility, auto-creation) → click Next
  5. Configure calendar sync settings (visibility, auto-creation) → click Finish Setup
  6. Your emails and calendar events will start syncing automatically

Microsoft Account (Outlook & Microsoft Calendar)

  1. Go to Settings → Apps preferences and open the Accounts tab
  2. Click Connect with Microsoft. If you already have an account connected, open Outlook in the Apps tab instead and click Connect with Microsoft, or Add account if a Microsoft account is already connected
  3. Authorize Twenty to access your Outlook and Microsoft Calendar
  4. Configure email sync settings (visibility, auto-creation) → click Next
  5. Configure calendar sync settings (visibility, auto-creation) → click Finish Setup
  6. Your emails and calendar events will start syncing automatically

IMAP/SMTP/CalDAV Setup (Other Providers)

For other email and calendar providers:
  1. Go to Settings → Apps preferences, open the Accounts tab and click Connect via IMAP/SMTP (or open IMAP in the Apps tab and click Connect via IMAP/SMTP, or Add account if an IMAP account is already connected)
  2. Configure IMAP settings to sync incoming email and SMTP settings to send email
  3. Configure CalDAV settings for calendar. You can set up any combination of the three
  4. Click Save. Twenty tests the connection before saving it
Self-hosting on an internal network: By default, Twenty refuses outbound connections to private/internal IP addresses (SSRF protection). If your mail, calendar or identity provider server runs on a local/private IP (e.g. an on-premise server on a LAN), connections to it will be blocked. To allow them, list the hostnames or IP literals in the following environment variable on the server:
Entries are matched on the hostname only (keycloak, not http://keycloak:8080/realms/…), without wildcards. Every other outbound request (HTTP workflow actions, webhooks, SSO and IMAP/SMTP/CalDAV connections) stays protected, and even an allowed host can never reach the cloud metadata address range. Set it to * to disable the protection entirely, which is only appropriate on trusted, isolated networks. If you previously set OUTBOUND_HTTP_SAFE_MODE_ENABLED=false, remove it: while it is set, the protection stays fully off and the list is ignored.

Multiple Mailboxes

  • Unlimited Accounts: Connect multiple email accounts per user
  • Sender Selection: Choose which account sends each email you write in Twenty
  • Sync Settings: Configure different settings per mailbox
Only true mailboxes can be connected (e.g., support@domain.com with its own inbox). Email aliases that forward to another mailbox cannot be connected to Twenty.

Email Configuration

Message Visibility

Choose different levels of visibility for your emails:
  • Metadata: Share only basic information (participants and timestamp)
  • Subject and metadata: Share subject line along with metadata
  • Everything: Share subject, body and attachments

Contact Auto-Creation

  • Sent and Received: Create contacts for people you’ve sent emails to and received emails from
  • Sent: Create contacts only for people you’ve sent emails to
  • None: No automatic contact creation
  • Note: By default, internal emails (where all participants share your domain) are not synced to protect privacy
When enabled, contacts are automatically linked to their Company records based on their email domain. If the company doesn’t exist yet, Twenty creates it for you.
Syncing internal emails: The “internal emails not synced” behavior is the default, but it can be turned off:
  1. Go to Settings → Communication
  2. Enable the Sync Internal Emails toggle to include emails where all participants share the same domain
This is a workspace-wide setting (useful for universities or shared-domain organizations).

Control which emails get synced with Message Folder Selection

Control which email folders sync with Twenty:
  1. Go to Settings → Apps preferences, open the Accounts tab and select your connected email account
  2. In the Emails tab, under Import, choose:
    • Everything: Import all emails
    • Some folders: Import only the folders or labels you select, such as Inbox, Sent or custom folders
Trash and Spam (Junk) folders are never imported. This gives you precise control over which emails appear in your CRM without syncing everything. What Gets Synced:
  • External Emails: All emails with external contacts from selected folders
  • Internal Emails: Not synced by default (same domain emails remain private). Turn on Sync Internal Emails under Settings → Communication to include them workspace-wide.
  • Attachments: Imported with each email and shown in the thread
Note: We don’t provide a CC email address for selective syncing. Instead, use the Message Folder feature above to achieve the same level of control over which emails sync with Twenty.

Calendar Configuration

Event Visibility

Choose what will be visible to other users in your workspace:
  • Everything: The whole event’s details will be shared with your team
  • Metadata: Only date and participants will be shared with your team

Contact Auto-Creation for Meetings

  • Auto-creation on: Automatically create contacts for meeting participants not in your CRM
  • Auto-creation off: Only link meetings to existing contacts
When enabled, contacts are automatically linked to their Company records based on their email domain. If the company doesn’t exist yet, Twenty creates it for you.

Control which events get synced

  • Sync calendar: Pause or resume importing events from this account
  • Exclude private events: Don’t import events marked as private
What Gets Synced:
  • Meetings: Calendar events with external participants
  • Contact Linking: Events automatically linked to CRM records
  • Team Events: Shared calendar visibility

Sync Frequency

Updates every 5 minutes: Both email and calendar data sync automatically every 5 minutes after the initial import.
Initial sync timing: Calendar sync completes quickly (usually within minutes), while email sync takes longer for large mailboxes. Twenty imports emails at approximately 400 messages per minute (limited by Gmail API rate limiting), so a mailbox with 10,000 emails takes about 25 minutes. Don’t worry if you see contacts from calendar events appearing before your email contacts; this is normal behavior.

Next Steps