Email Sender Configuration
The email address from which all outgoing emails are sent.Formats:
- Simple:
[email protected] - With name:
BrandName <[email protected]>
Chatwoot <[email protected]>SMTP Configuration
SMTP is the most common method for sending emails. Configure these variables to use your SMTP server.SMTP domain for HELO checking.Example:
chatwoot.comSMTP server address.Special values:
- Leave empty to use sendmail (postfix)
- Set to
mailhogwhen using docker-compose for development - Set to
localhostor your SMTP server address in other environments
smtp.gmail.comsmtp.sendgrid.netsmtp.mailgun.org
SMTP server port.Common ports:
587- TLS/STARTTLS (recommended)465- SSL25- Unencrypted (not recommended)1025- Mailhog (development)
1025SMTP authentication username.Note: Usually your email address or API username.
SMTP authentication password or API key.
SMTP authentication method.Options:
plainlogincram_md5
Automatically enable STARTTLS if available.Default:
trueRecommendation: Keep enabled for secure connections.OpenSSL verification mode for SMTP connections.Options:
none- No verification (not recommended for production)peer- Verify the server certificate (recommended)client_once- Verify once during initial connectionfail_if_no_peer_cert- Fail if no peer certificate
peerSee ActionMailer SSL DocumentationForce TLS connection.Note: Only set if required by your SMTP server.
Use SSL connection.Note: Only set if required by your SMTP server.
Timeout in seconds for opening SMTP connection.Example:
5Timeout in seconds for reading SMTP responses.Example:
10Incoming Email Configuration
Configure these settings to handle incoming emails for conversation continuity.Domain for reply email addresses when conversation continuity is enabled.Example:
replies.chatwoot.comEmail ingress service for handling incoming emails.Options:
relay- For Exim, Postfix, Qmailmailgun- For Mailgunmandrill- For Mandrillpostmark- For Postmarksendgrid- For SendGridses- For Amazon SES
Password for inbound email webhook authentication.Security: Set this to a strong password of your choice and use it in the inbound webhook URL.
Service-Specific Configuration
Mailgun
Mailgun webhook signing key for verifying incoming requests.
Mandrill
Mandrill API key for incoming email authentication.
Amazon SES
SNS topic ARN for ActionMailbox with Amazon SES.Format:
arn:aws:sns:region:account-id:topic-nameNote: Only required when RAILS_INBOUND_EMAIL_SERVICE=sesInbound Webhook Setup
For Postmark and SendGrid, configure your inbound webhook with the following URL format:For Postmark: Ensure the “Include raw email content in JSON payload” checkbox is selected in the inbound webhook section.
Provider-Specific Examples
Gmail / Google Workspace
SendGrid
Mailgun
Amazon SES
Make sure your sender email is verified in Amazon SES.
Postfix (Local Sendmail)
To use local sendmail with Postfix:SMTP_ADDRESS is empty, Chatwoot automatically uses sendmail for email delivery.
Testing Email Configuration
After configuring your email settings, test the configuration:- Start your Chatwoot instance
- Attempt to sign up or reset a password
- Check your inbox for the email
- Check Chatwoot logs for any email delivery errors
Troubleshooting
Emails not being delivered:- Verify SMTP credentials are correct
- Check if your SMTP provider requires additional authentication
- Verify your sender email is authorized by your SMTP provider
- Check Chatwoot logs for detailed error messages
- Ensure your firewall allows outbound connections on the SMTP port
- Try setting
SMTP_OPENSSL_VERIFY_MODE=none(temporarily for debugging) - Verify the correct port (587 for TLS, 465 for SSL)
- Check if
SMTP_ENABLE_STARTTLS_AUTOshould be enabled or disabled
- Verify the authentication method matches your provider’s requirements
- For Gmail, ensure you’re using an App Password
- Check if your provider requires API keys instead of passwords
Related Configuration
- Environment Variables - Complete environment variable reference
- Redis Configuration - Configure Redis for background jobs

