Appearance
Email Configuration Guide
Complete guide to configuring domains, SMTP settings, and email options.
Domain Configuration
Adding a Domain
- Navigate to Email Settings page
- Enter domain name (without
wwworhttp://) - Click Add Domain
- System will generate DNS records for verification
DNS Records
After adding a domain, you'll receive DNS records to add:
TXT Records: Used for domain verification
- Name: Usually
@or domain name - Value: Verification string provided by system
- TTL: 3600 (or your DNS provider's default)
MX Records (if required): For email routing
- Priority: As specified in DNS records
- Value: Mail server hostname
Adding DNS Records:
- Log into your domain registrar or DNS provider
- Navigate to DNS management
- Add each record with exact values provided
- Save changes
- Wait for propagation (can take up to 48 hours)
Domain Verification
Check Status:
- Click Check Status to refresh verification status without triggering verification
- Status updates automatically when DNS records propagate
Trigger Verification:
- Click Verify to actively check if DNS records are correctly configured
- System will update status:
pending→verifiedorfailed
Verification Status:
- Pending: DNS records not yet verified
- Verified: Domain verified and ready to use
- Failed: DNS records incorrect or not propagated
SMTP Credentials
Once domain is verified:
- Click Create SMTP Credentials button
- System generates username and password
- Credentials are automatically encrypted and stored
- Credentials are used automatically for sending emails
Credential Security:
- Passwords are encrypted in database
- Credentials are never displayed in full
- Only active credentials are used
SMTP Configuration
SMTP Priority System
The system uses a three-tier priority for SMTP configuration:
Emailit Credentials (Highest Priority)
- Used if domain is verified via Emailit
- Automatically configured after credential creation
- Uses verified domain for
fromaddress
Tenant Custom SMTP (Medium Priority)
- Configured in System → Settings → Email
- Supports any SMTP server
- Password is encrypted before storage
Default Platform SMTP (Fallback)
- Configured via environment variables
- Used if no tenant-specific config exists
- Includes tenant branding in from address
Custom SMTP Setup
System → Settings → Email:
- Enter From Email Address (e.g.,
your-email@gmail.com)- The system can auto-detect SMTP settings from your email domain
- Click Detect Settings to automatically fill SMTP/IMAP configuration
- Supported providers: Gmail, Outlook/Office365, Yahoo, iCloud, Zoho, and more
- If auto-detection doesn't work, manually enter:
- SMTP Host (e.g.,
smtp.gmail.com) - Port:
587for STARTTLS (recommended)465for SSL25for unencrypted (not recommended)
- Username (usually your email address)
- Password (use app password for Gmail/Outlook)
- SMTP Host (e.g.,
- Click Test Connection to verify settings
- Review any error messages for specific guidance
- Click Save once test passes
Smart SMTP Defaults:
The system automatically detects email provider settings when you enter a "From Email" address:
- Gmail: Auto-fills
smtp.gmail.com:587andimap.gmail.com:993 - Outlook/Office365: Auto-fills
smtp.office365.com:587andoutlook.office365.com:993 - Yahoo: Auto-fills
smtp.mail.yahoo.com:587andimap.mail.yahoo.com:993 - iCloud: Auto-fills
smtp.mail.me.com:587andimap.mail.me.com:993 - Zoho: Auto-fills
smtp.zoho.com:587andimap.zoho.com:993
Click Detect Settings next to the From Email field to auto-fill configuration, or let the system detect automatically as you type.
Validation & Testing:
- The system validates all SMTP fields before saving
- Required fields are highlighted with error messages if invalid
- Use Test Connection button to verify SMTP settings before saving
- Test results show success or enhanced error messages with:
- Specific error descriptions
- Actionable resolution steps
- Links to setup guides
- Step-by-step troubleshooting
- Invalid configurations are prevented from being saved
Enhanced Error Messages:
If SMTP connection fails, you'll see detailed error messages with:
- Specific Error: What went wrong (e.g., "Authentication failed")
- Actionable Guidance: What to do (e.g., "Verify your SMTP password")
- Resolution Steps: Step-by-step instructions to fix the issue
- Documentation Links: Direct links to relevant setup guides
Common SMTP Providers:
- Gmail:
smtp.gmail.com:587(requires app password) - Outlook:
smtp.office365.com:587(orsmtp-mail.outlook.com:587) - Yahoo:
smtp.mail.yahoo.com:587 - SendGrid:
smtp.sendgrid.net:587 - Mailgun:
smtp.mailgun.org:587
Email Context Library
The context library provides reusable business information across all workflows.
Adding Context
- Navigate to Email Workflows page
- Click Context Library button
- Enter context key (e.g.,
company_info) - Enter context value (e.g., business description)
- Click Add
Using Context
Context entries are automatically included in all workflow executions. They're merged with workflow-specific context and provided to the AI.
Best Practices:
- Use descriptive keys (e.g.,
pricing_tiers,service_areas) - Keep values concise but informative
- Update context when business information changes
IMAP Configuration (Advanced)
For receiving emails via IMAP instead of webhooks:
- Navigate to System → Settings → Email
- Scroll to Custom IMAP Mailbox section
- Enable Use custom IMAP mailbox toggle
- Enter:
- IMAP host (e.g.,
imap.gmail.com) - Port (usually
993for SSL,143for STARTTLS) - Username (usually your full email address)
- Password (use app password for Gmail)
- Mailbox (usually
INBOX)
- IMAP host (e.g.,
- Click Test IMAP Connection to verify settings
- Click Save SMTP Configuration to save
Validation & Testing:
- All IMAP fields are validated before saving
- Required fields show error messages if invalid
- Test IMAP Connection button verifies credentials and connectivity
- Test must pass before configuration can be saved
- Last polled timestamp shows when mailbox was last checked
IMAP Polling:
- System polls mailbox every 60 seconds (configurable)
- Emails are automatically forwarded to workflow system
- Supports both admin mailbox and per-tenant mailboxes
- Connection status is displayed in the UI
Next Steps
- Workflows Guide - Configure email processing workflows
- Troubleshooting - Resolve configuration issues

