---
title: "An AI Agent on a Company Inbox: How I Set It Up"
description: "First-hand account: I connected an AI agent to our company inbox through an MCP server — the install, the first tests and what it dug out on day one."
url: "https://www.it-deweloper.pl/en/blog/ai-email-agent-setup"
date: "2026-10-25T08:48:36+00:00"
language: "en-GB"
---

[Skip to main content](#tm-main)

- [ Home](https://www.it-deweloper.pl/en "IT Deweloper web studio home page")
- [Contact](https://www.it-deweloper.pl/en/contact "Contact the IT Deweloper web studio")
    - [ +48 731 190 041](tel:+48731190041 "Phone")
    - [ office<!---->&#64;<!---->it-deweloper.pl](mailto:office<!---->&#64;<!---->it-deweloper.pl "E-mail")
    - [ Nowogródzka 4A, Białystok, Poland](https://maps.app.goo.gl/BNjvryytwRyv4omA7 "Address")
    - [ WhatsApp](https://wa.me/48731190041 "WhatsApp")
    - [ Telegram](https://t.me/+48731190041 "Telegram")
- [Solutions](https://www.it-deweloper.pl/en/web "IT Deweloper's web development solutions")
    - [How we workStages of work](https://www.it-deweloper.pl/en/web/process "Website development stages and timelines")
    - [SEOSearch engine optimization](https://www.it-deweloper.pl/en/web/seo "SEO promotion: optimization, links, positions in Google")
    - [GEOWebsite promotion in AI](https://www.it-deweloper.pl/en/web/geo "GEO optimization: website promotion in ChatGPT, Gemini and Perplexity answers")
    - [AIArtificial intelligence on the website](https://www.it-deweloper.pl/en/web/ai)
    - [JoomlaWebsite management system](https://www.it-deweloper.pl/en/web/joomla "Joomla website development")
    - [GoogleGoogle services setup](https://www.it-deweloper.pl/en/web/google "Google services setup for your website")
- [Cost](https://www.it-deweloper.pl/en/cost "Rates and cost of services")
    - [PricingIndicative website development prices](https://www.it-deweloper.pl/en/cost/pricing "Website development prices")
    - [CalculatorSelf-service online estimate](https://www.it-deweloper.pl/en/cost/calculator "Calculate your website cost online")
    - [BriefGet an accurate project quote](https://www.it-deweloper.pl/en/cost/brief "Fill out the website development brief")
- [Portfolio](https://www.it-deweloper.pl/en/portfolio "Portfolio and examples of our work")
- [About us](https://www.it-deweloper.pl/en/about "About the founder — Victor Parhimchik")
- [FAQ](https://www.it-deweloper.pl/en/faq "Frequently asked questions about website development")
- [Blog](https://www.it-deweloper.pl/en/blog "Articles on website development and promotion")
- [ Русский ](https://www.it-deweloper.pl/ru/blog/ai-email-agent-setup)
- [ Polski ](https://www.it-deweloper.pl/pl/blog/ai-email-agent-setup)
- [ Беларуская ](https://www.it-deweloper.pl/be/blog/ai-email-agent-setup)
- [ English ](https://www.it-deweloper.pl/en/blog/ai-email-agent-setup)

  <a class="uk-search-toggle uk-display-block" href="/" uk-search-icon=""></a>

- <a href="/"> ![](https://www.it-deweloper.pl/templates/yootheme/assets/images/language.svg)  English  </a>
    - [ Русский ](https://www.it-deweloper.pl/ru/blog/ai-email-agent-setup)
    - [ Polski ](https://www.it-deweloper.pl/pl/blog/ai-email-agent-setup)
    - [ Беларуская ](https://www.it-deweloper.pl/be/blog/ai-email-agent-setup)
    - [ English ](https://www.it-deweloper.pl/en/blog/ai-email-agent-setup)

 [ ![IT-Deweloper](https://www.it-deweloper.pl/images/Faviocon.svg)![IT-Deweloper](https://www.it-deweloper.pl/images/Logo-light.svg)](https://www.it-deweloper.pl/en) [ Menu

 ](#tm-dialog)

- [ Home](https://www.it-deweloper.pl/en "IT Deweloper web studio home page")
- [Contact](https://www.it-deweloper.pl/en/contact "Contact the IT Deweloper web studio")
    - [ +48 731 190 041](tel:+48731190041 "Phone")
    - [ office<!---->&#64;<!---->it-deweloper.pl](mailto:office<!---->&#64;<!---->it-deweloper.pl "E-mail")
    - [ Nowogródzka 4A, Białystok, Poland](https://maps.app.goo.gl/BNjvryytwRyv4omA7 "Address")
    - [ WhatsApp](https://wa.me/48731190041 "WhatsApp")
    - [ Telegram](https://t.me/+48731190041 "Telegram")
- [Solutions](https://www.it-deweloper.pl/en/web "IT Deweloper's web development solutions")
    - [How we workStages of work](https://www.it-deweloper.pl/en/web/process "Website development stages and timelines")
    - [SEOSearch engine optimization](https://www.it-deweloper.pl/en/web/seo "SEO promotion: optimization, links, positions in Google")
    - [GEOWebsite promotion in AI](https://www.it-deweloper.pl/en/web/geo "GEO optimization: website promotion in ChatGPT, Gemini and Perplexity answers")
    - [AIArtificial intelligence on the website](https://www.it-deweloper.pl/en/web/ai)
    - [JoomlaWebsite management system](https://www.it-deweloper.pl/en/web/joomla "Joomla website development")
    - [GoogleGoogle services setup](https://www.it-deweloper.pl/en/web/google "Google services setup for your website")
- [Cost](https://www.it-deweloper.pl/en/cost "Rates and cost of services")
    - [PricingIndicative website development prices](https://www.it-deweloper.pl/en/cost/pricing "Website development prices")
    - [CalculatorSelf-service online estimate](https://www.it-deweloper.pl/en/cost/calculator "Calculate your website cost online")
    - [BriefGet an accurate project quote](https://www.it-deweloper.pl/en/cost/brief "Fill out the website development brief")
- [Portfolio](https://www.it-deweloper.pl/en/portfolio "Portfolio and examples of our work")
- [About us](https://www.it-deweloper.pl/en/about "About the founder — Victor Parhimchik")
- [FAQ](https://www.it-deweloper.pl/en/faq "Frequently asked questions about website development")
- [Blog](https://www.it-deweloper.pl/en/blog "Articles on website development and promotion")

  [ IT Deweloper Blog ](https://www.it-deweloper.pl/index.php?option=com_content&view=category&id=29&lang=en-GB "IT Deweloper Blog")

#  An AI Agent on a Company Inbox: How I Set It Up

Our studio's inbox drowns in adverts and cold offers just as thoroughly as anyone else's. I wanted to find out in practice whether an AI agent plugged straight into the mailbox over the MCP protocol really takes that routine off your hands, or merely sounds good in a product description. Here is how it actually went: the install, the first tests and the thing it turned up on day one.

---

![Email logo with an AI check mark — installing an AI agent on a working mailbox](https://it-deweloper.pl/images/AI/ai-email-agent-cover-v2.webp#joomlaImage://local-images/AI/ai-email-agent-cover-v2.webp?width=1200&height=1200)

### Choosing the tool

Out of several MCP servers for email I picked **mcp-server-email** — written in Go, works over IMAP/SMTP, open source. The deciding argument: you can spell out the mail server's host and port explicitly, instead of only picking "Gmail/Outlook/Yahoo" from a list. For company mail that lives on your own hosting rather than in Google Workspace, that is the only option that does not need workarounds.

### Installing it

No building from source — the releases page already carries a ready binary for Windows. I downloaded the archive, checked the checksum (literally one command, but it is the one that separates "installed it" from "installed it and let a trojan in wearing a tool's clothing") and unpacked it. There was no need to install the whole Go toolchain, just the executable.

After that: a config file with the mail account details in JSON, and registering the server in the Claude Code settings (an ordinary entry in the MCP server config, where the command is the path to the exe). Then the application itself has to be restarted — the server's tool list is only picked up at start-up, never on the fly.

### Connection details: check DNS instead of guessing

The most common mistake at this step is trying to guess the mail server's name or hunting for it in the hosting panel. The shorter route: the domain's MX record tells you straight away which platform handles the mail, and that platform's own IMAP/SMTP hosts usually sit on predictable subdomains. While you are at it, test the ports with a plain TCP connection rather than trusting the documentation — 993 and 587 were open for me and 25 was closed, which immediately settled which TLS mode to use.

One security moment stood out. The script that was meant to fetch the mailbox password (from an already configured mail client of another system) and write it into the config was stopped by Claude Code's own safety mechanism: writing a password into a file autonomously counted as too sensitive an action. Fair enough — the password ended up being typed in by a human rather than a script. A neat illustration that guard-rails like that are not a bug, but exactly what they exist for.

### The first test — a live handshake, not the documentation

Before trusting a tool, it is worth making sure it genuinely works rather than merely starts. I sent the MCP handshake by hand (`initialize` → `tools/list`) straight over stdio, with no client in between — the server answered correctly and returned exactly 22 tools, as advertised: folder listing, reading, search, sending, replies, forwarding, drafts, batch operations. Then a real call with real credentials: the IMAP connection went through and the server returned the actual structure of the mailbox.

That structure was a surprise: hundreds of separate folders of the form `Archives.<sender>` — the mail panel, it turned out, files every new sender into a personal folder of their own. Tidy, but as it emerged later, that mechanism has an unpleasant side effect.

### What it found on day one

Among dozens of messages in the SPAM folder — solid cold outreach from SEO agencies and advertising outfits — the agent pulled out one that was there by mistake: a reply to a job advert, with a portfolio on a personal site. Nothing malicious, ordinary correspondence, simply lost among the spam and quite possibly left unopened for another week. One command and the message was back in the inbox. That is precisely what made the experiment worth running: not a "clever chatbot", but a tool that genuinely saves your attention.

### Round two: "why is spam still coming through?"

A day later came the feedback: the spam keeps arriving regardless. Digging in showed the spam filter itself was not at fault — it worked as intended, and fresh messages did land in SPAM. The problem was that automatic filing into `Archives.*` folders: it intercepted mail before the spam filter and tucked even blatant spam into personal folders, including a campaign selling fake Google reviews from a fresh throwaway domain for every message.

At this point the MCP server was out of the picture — it does not touch the mail server's filters, only the messages themselves. I had to go into the mail web panel directly and find the real blocking mechanism. It turned up in two places: an ordinary Sieve filter (move on the condition "sender contains domain") and, more importantly, a built-in blacklist that rejects at delivery — mail from domains listed there never reaches the mailbox at all. I added several domains that had been re-sending the same letter every two to four weeks; the front-runner sent seven messages in three weeks, each under a different pretext.

### What I took away from the experiment

- **MCP servers for email are not just a "reader".** The full set of operations is there: reading, sending, moving, flagging, drafts. If a tool looks like it "can only look", chances are nobody got round to trying the rest of its functions.
- **Real connection details are found, not guessed.** DNS and a plain TCP connection are more reliable than any hosting documentation.
- **An existing platform often already has the mechanism you need.** Before writing your own filter, check whether a built-in panel feature solves it — here it did.
- **Guard-rails around passwords and system settings are protection, not an obstacle.** The moment the automation refused to write sensitive data into a config file by itself was not a bug, but exactly the behaviour you want from a tool with access to real infrastructure.

If you want the same for your own mail — without working through MCP servers and Sieve filters yourself, and with a configured result handed over ready — the studio offers it as a service: [an AI agent for your company inbox](https://www.it-deweloper.pl/en/web/ai/ai-corporate-email-agent).

21 September 2026 | [Victor Parhimchik](https://www.it-deweloper.pl/index.php?option=com_contact&view=contact&id=1&catid=4) | [IT Deweloper Blog](https://www.it-deweloper.pl/index.php?option=com_content&view=category&id=29)

 [ ![A database icon in a browser window, a step checklist and a question mark — a guide to first queries on GA4 data in BigQuery](https://www.it-deweloper.pl/images/blog/ga4-bigquery-first-query-cover.webp)

### How to Write Your First Query on GA4 Data in BigQuery

Once Google Analytics 4 is linked to BigQuery, raw events appear in your warehouse every day: every page view, click and enquiry with all its paramet…

 ](https://www.it-deweloper.pl/index.php?option=com_content&view=article&id=300:ga4-bigquery-first-query&catid=29&lang=en-GB)

 [ ![A gateway arch with an arrow in a browser window, a step checklist and a question mark — an explanation of how Google tag gateway works](https://www.it-deweloper.pl/images/blog/how-google-tag-gateway-works-cover.webp)

### How Google Tag Gateway Works and Whether to Turn It On

Google tag gateway is a feature that lets you load Google tags from your own domain instead of Google’s servers. It’s often described as a way to “by…

 ](https://www.it-deweloper.pl/index.php?option=com_content&view=article&id=299:how-google-tag-gateway-works&catid=29&lang=en-GB)

 [ ![A speed gauge with a needle in a browser window, a step checklist and a question mark — a guide to checking Core Web Vitals](https://www.it-deweloper.pl/images/blog/check-core-web-vitals-cover.webp)

### How to Check Your Core Web Vitals and Read the Numbers

Core Web Vitals are three metrics Google uses to judge how comfortable a page is to use: how quickly the main content appears, how quickly the page r…

 ](https://www.it-deweloper.pl/index.php?option=com_content&view=article&id=298:check-core-web-vitals&catid=29&lang=en-GB)

 [ ![An envelope in a browser window, a step checklist and a question mark — a guide to setting up SPF, DKIM and DMARC for Google Workspace](https://www.it-deweloper.pl/images/blog/google-workspace-spf-dkim-dmarc-cover.webp)

### How to Set Up SPF, DKIM and DMARC for Google Workspace

If emails from your domain land in spam or don’t arrive at all, the first thing to check is three DNS records: SPF, DKIM and DMARC. Since 2024, Gmail…

 ](https://www.it-deweloper.pl/index.php?option=com_content&view=article&id=297:google-workspace-spf-dkim-dmarc&catid=29&lang=en-GB)

 [ ![A shield with a padlock in a browser window, a step checklist and a question mark — a guide to choosing reCAPTCHA and getting keys](https://www.it-deweloper.pl/images/blog/choose-recaptcha-version-cover.webp)

### How to Choose reCAPTCHA for a Form and Get the Keys

reCAPTCHA protects your website forms from spam bots. During 2025, Google moved all reCAPTCHA keys to Google Cloud, so many older guides are out of d…

 ](https://www.it-deweloper.pl/index.php?option=com_content&view=article&id=296:choose-recaptcha-version&catid=29&lang=en-GB)

 [ ![A map pin in a browser window, a step checklist and a question mark — a guide to embedding a Google map on a website](https://www.it-deweloper.pl/images/blog/embed-google-map-on-website-cover.webp)

### How to Embed a Google Map on Your Website Without an API Key

A map on your Contact page helps customers see where you are and get directions straight away. You don’t need an API key or a payment card in Google…

 ](https://www.it-deweloper.pl/index.php?option=com_content&view=article&id=295:embed-google-map-on-website&catid=29&lang=en-GB)

 [ ![A target with an arrow in a browser window, a step checklist and a question mark — a guide to checking Google Ads conversions](https://www.it-deweloper.pl/images/blog/check-google-ads-conversions-cover.webp)

### How to Check That Google Ads Conversions Are Tracked

Google Ads learns from conversions: enquiries, calls, purchases. If they’re counted wrongly, the system optimises your campaigns blind — spending bud…

 ](https://www.it-deweloper.pl/index.php?option=com_content&view=article&id=294:check-google-ads-conversions&catid=29&lang=en-GB)

 [ ![Pie and bar charts in a browser window, a step checklist and a question mark — a guide to building a Data Studio report](https://www.it-deweloper.pl/images/blog/data-studio-first-report-cover.webp)

### How to Build a Data Studio Report from Analytics and GSC

Data Studio is Google’s free tool for reports and dashboards. In April 2026 Google brought back this name; for several years before that it was calle…

 ](https://www.it-deweloper.pl/index.php?option=com_content&view=article&id=293:data-studio-first-report&catid=29&lang=en-GB)

 [ ![A cookie icon in a browser window, a step checklist and a question mark — a guide to checking Google Consent Mode](https://www.it-deweloper.pl/images/blog/check-consent-mode-v2-cover.webp)

### How to Check If Consent Mode v2 Works on Your Website

Google Consent Mode v2 passes the choice a visitor made in your cookie banner to Google Analytics and Google Ads. A banner can look perfect and still…

 ](https://www.it-deweloper.pl/index.php?option=com_content&view=article&id=292:check-consent-mode-v2&catid=29&lang=en-GB)

 [ ![A Tag Manager tag icon in a browser window, a step checklist and a question mark — a guide to installing Google Tag Manager](https://www.it-deweloper.pl/images/blog/install-google-tag-manager-cover.webp)

### How to Install Google Tag Manager on Your Website

Google Tag Manager is a “box” for all the tracking codes on your site: Google Analytics, Google Ads conversions, social media pixels. You install the…

 ](https://www.it-deweloper.pl/index.php?option=com_content&view=article&id=291:install-google-tag-manager&catid=29&lang=en-GB)

 [](#)

 [](#)

   ##  Build your website

Find out what your website will cost

 [ Pricing ](https://www.it-deweloper.pl/index.php?Itemid=262&lang=en-GB)

 ![](https://www.it-deweloper.pl/media/yootheme/cache/3c/background-square-01-3c44c74f.png?src=images/yootheme/demo/background-square-01.png&thumbnail=900,900,&hash=72c31958)

 ![](https://www.it-deweloper.pl/media/yootheme/cache/cb/background-square-03-cbb341a0.png?src=images/yootheme/demo/background-square-03.png&thumbnail=600,600,&hash=6e9dde93)

###  [ Contact ](https://www.it-deweloper.pl/index.php?Itemid=277&lang=en-GB)

Web studio IT Deweloper website development, Poland. 5423493188

 SEOAIAdsWebSMM

### Address

Nowogródzka 4A
 Białystok, 15-490, PL

 [

### Phone

+48 731 190 041

 ](tel:+48731190041)

 [

### Email

This email address is being protected from spambots. You need JavaScript enabled to view it.

 ](mailto:office<!---->&#64;<!---->it-deweloper.pl)

 [

### WhatsApp

 ](https://wa.me/48731190041)

 [

### Telegram

 ](https://t.me/+48731190041)

 Opening hours:

- Monday

    0900–1800
- Tuesday

    0900–1800
- Wednesday

    0900–1800
- Thursday

    0900–1800
- Friday

    0900–1800
- Saturday

    0900–1600
- Sunday

    closed

 ![IT Deweloper](https://www.it-deweloper.pl/images/Logo.webp)

Web development can be interesting! Our social media, with content about building websites.

- [](https://www.facebook.com/ITdeweloper)
- [](https://www.linkedin.com/company/it-deweloper)
- [](https://t.me/IT_deweloper)
- [](https://www.instagram.com/it_deweloper/)

**it-deweloper** — a web development studio.
We design and build modern websites and online stores.

© [it-deweloper](https://it-deweloper.pl/en).
All rights reserved.

[Privacy Policy](https://www.it-deweloper.pl/index.php?Itemid=313&lang=en)
