Installation¶
This guide is for Lime Expert Services implementing the Email Integration for a customer.
Before You Start¶
Prerequisites:
- Customer has completed Requirements for their email provider and deployment type
- Customer has familiarized themselves with How It Works
- For Lime Cloud: Customer account is ready
- For On-Premise: EmailEngine server is prepared and license key obtained
Preparation:
- Work with customer IT to clean up inbox folders of all monitored email accounts before integration goes live
- Every email marked as
unread(new) will be imported when the integration activates - Customer should move unwanted emails away from inbox folders first
Implementation Steps¶
1. Add Package to Solution¶
- Add
limepkg-emailas a dependency to the customer's Lime CRM solution - Build the solution
- Deploy to the customer's Lime CRM environment
See lime-project documentation for your specific deployment environment.
2. Run Installation in Lime Admin¶
- In Lime Admin, navigate to Settings → Email Integration → Setup
- Click Run Installation
- Follow the on-screen instructions
What Gets Created:
- Database tables for conversations, messages, followers, and attachments
- Relations between conversation and helpdesk (conversation parent - can be customized later)
- Relations between followers and coworker/person tables
- System user
emailengine@limewith Administrators group membership - Initial view configurations
3. Configure LISA Access Policies¶
Create the following LISA (Lime Security Administration) policies for users who need email integration access:
| Policy Name | Permissions | Apply To |
|---|---|---|
| tbl_conversation_message | R, W, A, D | conversation_message table |
| tbl_conversation_message_error | R, W, A, D | conversation_message_error table |
| tbl_conversation | R, W, A, D | conversation table |
| tbl_embedded_file | R, W, A, D | embedded_file table |
| tbl_follower | R, W, A, D | follower table |
| tbl_message_follower | R, W, A, D | message_follower table |
| tbl_text_snippet | R, W, A, D | text_snippet table |
Notes:
- R = Read, W = Write, A = Add, D = Delete
- Apply these policies to all groups who should access email integration features
- The
emailengine@limesystem user is created automatically and added to Administrators group — no policy needed
4. Configure Bounce Detection¶
For the integration to properly detect email bounces and errors, configure your email provider's spam filter to allow bounce messages to reach the inbox.
Why This Matters:
- Bounce emails detect delivery failures
- If bounce messages go to junk, error notifications won't appear in Lime CRM
- The system only monitors the inbox folder
Configuration Steps:
- From Lime CRM, send a test email to bounce@foolbounce.com
- Using an email client (for instance Outlook), verify the bounce arrives in the inbox (not junk)
- If it ends up in junk, move it to inbox to train your filter
- You should receive a request for confirmation to treat these emails as non-spam.
- You are done. To be sure, you can do #1 again to make sure #2 happens.
5. On-Premise: License Setup¶
For on-premise installations, follow internal Lime Technologies' documentation to:
- Obtain a valid license key for EmailEngine
- Configure the license in EmailEngine
- Verify the license is recognized (should see license check succeed in firewall logs to postalsys.com)
Next Steps¶
Installation is complete. Proceed to Configuration to:
- Create OAuth applications (if using OAuth) in customer's Microsoft Entra or Google Cloud
- Add email accounts in Lime Admin (Settings → Email Integration → Accounts)
- Configure view activities and limetype mappings for the customer's objects
- Configure integration settings (webhook URL, optional parameters)
Reference: Database Changes¶
During installation, the following database structures are created:
New Tables:
conversation- Email thread containerconversation_message- Individual emails in a threadconversation_message_error- Error tracking for failed messagesfollower- Email participantsmessage_follower- Followers on specific messagesembedded_file- Email attachmentstext_snippet- Email signature templates
Relations Created:
conversation↔helpdesk(conversation parent - can be customized by editing the relation in LISA)follower↔coworker(internal participants)follower↔person(external participants)
Reference: System User (emailengine@lime)¶
The integration user emailengine@lime is created during installation. This system user:
- Handles the webhook endpoint for email processing and impersonation
- Runs the scheduled task that processes unprocessed emails
- Is automatically added to the Administrators group
- Must not be a member of any other groups
- Cannot be deleted or modified by end users