---
title: "Set up a CRM from your business mailboxes with a local AI model | mcpcrm guide"
url: https://mcpcrm.app/guide/crm-from-mailbox/
description: "An AI model on your own server reads your business mailboxes, personal ones and shared ones such as info@, sales@ and support@, and proposes your customers, prospects, suppliers and deals for a new CRM. No email content goes to a third party."
---

Chapter 9 of 10

# Set up a CRM from your business mailboxes with a local AI model

An AI model running on your own server can build your CRM from your business mailboxes, whether a person’s own mailbox or a shared one such as info@, hello@, sales@ or support@. It reads years of email and proposes your customers, prospects, suppliers and the work you did with them, and you choose what to keep. No email content goes to a third party. The whole job is done on a server you control.

## A local AI model, on your own server

The model is open source and runs on the same server as your CRM, or on another machine you own. Your mail is read there and stays there. It does not go to OpenAI, Google, Anthropic or any other AI service, and it does not go to us. A new CRM starts empty, and your mailboxes have the history: who you work with, how often and since when.

Qwen3 30B A3B, under the Apache 2.0 licence, does this well on an ordinary server processor without a graphics card. It uses about 3 billion parameters for each word, so it is fast enough to work through years of mail overnight.

## Personal and shared mailboxes

In many businesses the shared mailboxes hold more of the customer history than any one person’s. Enquiries arrive at info@ or hello@, orders and quotes go through sales@, and clients write to support@. Scan each mailbox that matters, one at a time. People found in more than one are matched by their email address, so each becomes one record.

-   A person’s own mailbox is scanned with their agreement, and the results are theirs to review.
-   A shared mailbox is scanned with the agreement of whoever is responsible for it, usually an owner or admin, and its results go to the people who look after that mailbox.
-   Your own addresses, including the shared ones, are left out, so info@yourcompany never becomes a contact.

## Who belongs in the CRM

### A contact is someone you had a conversation with

Someone who wrote to you at least twice, or who wrote back to you, is a contact. Mail you sent that nobody answered is left out, and so are newsletters, receipts and notifications.

### The organisation comes from the email domain

anna@client.co.za works at client.co.za. Free mail such as gmail.com, services such as banks and registrars, and your own domains are left out.

### Role addresses belong to the organisation

info@, accounts@ and sales@ become the organisation’s email address.

### Signatures fill in the details

The last messages each person sent have their name, title, office and mobile numbers and website in the signature. Only what is written there is used.

## How it works

1.  ### Read the headers
    
    The From, To, Cc and date of every message, read-only. These show who you write to, how often and since when.
    
2.  ### Rank by strength
    
    Conversations both ways count most, then mail you sent, then mail they sent, weighted by how recent they are. The strongest relationships come first.
    
3.  ### Take the details from signatures
    
    Names, titles and numbers come from the signature blocks of the two newest messages each person sent.
    
4.  ### Ask the model what each relationship is
    
    The AI model on your server reads a few of each organisation’s conversations and says whether it is a customer, prospect, supplier or partner, with a one-line summary and any pieces of work.
    
5.  ### Review and import
    
    Keep or reject each organisation with its people and deals, or everything above a strength. Kept ones become records with a one-line summary and none of the mail.
    

## What each relationship becomes

### Customer or former customer

Becomes a contact at their organisation, with the work you did together as deals.

### Prospect

Asked about your work and did not buy. Becomes a lead to follow up.

### Supplier or partner

Becomes a contact and an organisation, without a deal.

### Personal, or no real conversation

Is left out, with the reason shown so you can change it.

## Keep the mail out of the CRM

A record needs who someone is and what you did together. Store a one-line summary and a link to the first email of the conversation, by its Message-ID, and leave the text of the mail in the mailbox. Before you import, match people by email address and organisations by domain, so that records you already have are filled in where they are empty, with no duplicates and nothing overwritten.

## The model must not invent anything

-   A name, title or company counts only if it is in the signature block.
-   A deal counts only if its evidence, and any amount, is in the mail.
-   If the model is unsure, the person decides. Without a model, a conversation both ways makes a contact and one-way mail makes a lead.

## Consent and privacy

-   A person agrees to each scan. A shared mailbox needs the approval of whoever is responsible for it.
-   Nothing in the mailbox changes, and messages stay unread. Leave out personal folders and senders, such as family, your bank or your doctor.
-   The model runs on a computer you control, so no mail goes to an outside AI service.

Check the privacy law where you and your contacts are, such as POPIA or the GDPR.

## A prompt for after the import

### Check a CRM set up from a mailbox

```
The Organisations, Contacts and Leads in this workspace were imported from my mailbox today. Find Organisations with no Contacts, Contacts with no Organisation whose email is not free mail, and two Organisations with the same website. List each with its id and what you suggest, ask me before changing anything, and change nothing yet.
```

## In mcpcrm

In mcpcrm Team this is the CRM setup page. It scans a person’s own mailbox or any of the workspace’s shared mailboxes, such as info@ or support@. A person agrees on a consent screen, and the scan runs on your own server. The AI model, Qwen3 30B A3B, reads signatures and conversations at night on a server you control, and no email content leaves it. People see names and numbers and keep or reject each organisation; agents see only domains, counts and the relationship, and can only recommend. “Import” makes organisations first, then contacts, leads and deals, and importing again makes nothing new. See [Inbox Miner in mcpcrm Team](https://mcpcrm.app/team/#inbox-miner).

[CRM setup in mcpcrm Team](https://mcpcrm.app/team/#inbox-miner)

## Try it with your own agent

mcpcrm Solo is free for one person and runs in your browser. Connect your agent, and it gets the CRM manual and your rules when it connects. Then start with the prompts in this guide.

[Open the app](https://app.mcpcrm.app)[Get the prompt pack](https://mcpcrm.app/guide/prompts/)
