Skip to main content
The Email channel allows you to manage customer support emails directly from Chatwoot. All incoming emails appear as conversations in your inbox, and your replies are sent from your configured email address.

Features

  • Two-way email communication - Send and receive emails
  • IMAP support - Fetch incoming emails automatically
  • SMTP configuration - Send replies from your domain
  • Email forwarding - Forward emails to Chatwoot
  • Thread preservation - Maintain email conversation threads
  • Attachment support - Handle file attachments
  • Multiple providers - Gmail, Microsoft, custom SMTP/IMAP

Setup Methods

There are two ways to set up an email inbox: Forward emails from your existing email account to Chatwoot.
1

Create email inbox in Chatwoot

Navigate to SettingsInboxesAdd InboxEmailEnter your support email address (e.g., [email protected])
2

Get forwarding address

Chatwoot will generate a unique forwarding address like:
3

Set up email forwarding

In your email provider, forward emails to the Chatwoot address.Gmail:
  1. Go to Settings → Forwarding and POP/IMAP
  2. Add forwarding address
  3. Confirm forwarding email from Chatwoot
Microsoft/Outlook:
  1. Settings → Mail → Forwarding
  2. Add the Chatwoot forwarding address
Custom domain/cPanel: Add email forwarder in your hosting control panel
4

Configure SMTP for sending (optional)

To send replies from your email address, configure SMTP settings in the inbox configuration.

Method 2: IMAP/SMTP (Full Integration)

Connect Chatwoot directly to your email server.
1

Gather IMAP/SMTP credentials

You’ll need:
  • IMAP server address and port
  • SMTP server address and port
  • Email address and password
  • SSL/TLS settings
2

Create email inbox

Go to SettingsInboxesAdd InboxEmail
3

Configure IMAP (Incoming)

Enable IMAP and enter:
  • Address: IMAP server (e.g., imap.gmail.com)
  • Port: Usually 993 for SSL
  • Login: Your email address
  • Password: Email password or app password
  • Enable SSL: Check if server uses SSL
4

Configure SMTP (Outgoing)

Enable SMTP and enter:
  • Address: SMTP server (e.g., smtp.gmail.com)
  • Port: Usually 587 (STARTTLS) or 465 (SSL)
  • Login: Your email address
  • Password: Email password or app password
  • Authentication: Usually ‘login’
  • Enable STARTTLS: Check for port 587
  • Enable SSL/TLS: Check for port 465
5

Test and save

Click Test Connection to verify settings, then save the inbox.

Provider-Specific Setup

Gmail

Microsoft 365 / Outlook

IMAP Settings:
  • Server: outlook.office365.com
  • Port: 993
  • SSL: Enabled
SMTP Settings:
  • Server: smtp.office365.com
  • Port: 587
  • STARTTLS: Enabled
Microsoft accounts may require OAuth authentication. Check your organization’s security policies.

Custom Domain (cPanel/Plesk)

Ask your hosting provider for IMAP/SMTP details. Common settings: IMAP:
  • Server: mail.yourdomain.com
  • Port: 993 (SSL) or 143 (STARTTLS)
SMTP:
  • Server: mail.yourdomain.com
  • Port: 465 (SSL) or 587 (STARTTLS)

Email Configuration Options

Inbox Settings

email
string
required
Your support email address
forward_to_email
string
Chatwoot-generated forwarding address for incoming emails

IMAP (Incoming) Settings

imap_enabled
boolean
default:"false"
Enable IMAP to fetch incoming emails
imap_address
string
IMAP server address (e.g., imap.gmail.com)
imap_port
integer
IMAP port (typically 993 for SSL, 143 for STARTTLS)
imap_login
string
IMAP login username (usually your email address)
imap_password
string
IMAP password (encrypted at rest)
imap_enable_ssl
boolean
default:"true"
Enable SSL/TLS for IMAP connection

SMTP (Outgoing) Settings

smtp_enabled
boolean
default:"false"
Enable SMTP to send emails
smtp_address
string
SMTP server address (e.g., smtp.gmail.com)
smtp_port
integer
SMTP port (typically 587 for STARTTLS, 465 for SSL)
smtp_login
string
SMTP login username
smtp_password
string
SMTP password (encrypted at rest)
smtp_authentication
string
default:"login"
Authentication method (login, plain, cram_md5)
smtp_enable_starttls_auto
boolean
default:"true"
Enable STARTTLS (port 587)
smtp_enable_ssl_tls
boolean
default:"false"
Enable SSL/TLS (port 465)
smtp_openssl_verify_mode
string
default:"none"
SSL certificate verification mode (none, peer, client_once, fail_if_no_peer_cert)

Email Workflow

Incoming Emails

  1. Customer sends email to [email protected]
  2. Email is forwarded to Chatwoot or fetched via IMAP
  3. Chatwoot creates a new conversation with the email content
  4. Agents receive notification and can reply
  5. Email thread is preserved with In-Reply-To and References headers

Outgoing Emails

  1. Agent replies in Chatwoot conversation
  2. Reply is sent via SMTP from your configured email address
  3. Customer receives email from [email protected]
  4. Customer’s reply comes back to Chatwoot
  5. Conversation thread continues

Best Practices

Use email forwarding for simplest setup
Configure SMTP to send from your domain
Enable IMAP to automatically fetch emails
Use app passwords for Gmail/Microsoft accounts
Test email sending before going live
Set up SPF, DKIM, and DMARC records for deliverability
Monitor IMAP sync for errors

Troubleshooting

For Email Forwarding:
  • Verify forwarding is set up correctly in your email provider
  • Check spam folder in your email account
  • Ensure forwarding address is correct
For IMAP:
  • Test IMAP credentials with an email client (Thunderbird, Outlook)
  • Check IMAP server address and port
  • Verify SSL/TLS settings
  • Check Chatwoot logs for IMAP errors
  • Verify SMTP settings are correct
  • Test SMTP with an email client
  • Check SMTP authentication method
  • Ensure port and SSL/TLS settings match your provider
  • Check if your email provider blocks less secure apps
  • For Gmail, use App Password instead of regular password
  • Chatwoot uses In-Reply-To and References headers to maintain threads
  • Check if your SMTP provider preserves these headers
  • Verify Message-ID is being set correctly
  • For Gmail: Use App Password with 2FA enabled
  • For Microsoft: Check if OAuth is required
  • Verify username is correct (usually full email address)
  • Try re-entering password
  • Check if account requires 2FA or has security restrictions

Advanced Configuration

Environment Variables (Self-Hosted)

For self-hosted installations, you can configure global email settings:
# SMTP Configuration
SMTP_ADDRESS=smtp.gmail.com
SMTP_PORT=587
SMTP_DOMAIN=yourdomain.com
SMTP_USERNAME=[email protected]
SMTP_PASSWORD=your-password
SMTP_AUTHENTICATION=login
SMTP_ENABLE_STARTTLS_AUTO=true

# Email Sender
MAILER_SENDER_EMAIL=[email protected]
See Email Setup Guide for complete configuration.

Build docs developers (and LLMs) love