← Back to the blog

How to use ChatGPT Plus with Roundcube and self-hosted email

If you open Roundcube to read your business email, you can keep your mailbox on your own mail server and ask ChatGPT for help with selected messages. You might want to identify emails that need a reply or write a draft. A ChatGPT Plus subscription does not directly connect to a generic IMAP mailbox. A small connector can bridge the two.

How to use ChatGPT Plus with Roundcube and self-hosted email

Where Roundcube fits

In the setup we use, Roundcube is the webmail interface. Other email clients access the same mailbox through IMAP. An MCP tool, a small application that gives ChatGPT specific capabilities, can read the parts of the mailbox you authorize. Roundcube documentation.

Getting started with ChatGPT Plus

  1. Get your IMAP settings. You typically need a server name such as mail.example.com, port 993 with TLS, and the credentials your provider supports. Start with a separate mailbox containing test messages.
  2. Connect a local MCP tool. In ChatGPT Desktop, if Plugin Creator is available on your account, open Plugins and select +. Ask it to create a local plugin that uses an IMAP connector running on your computer. The connector needs to be built or installed as part of setup. Your mail administrator can help with permissions and installation. ChatGPT plugin instructions.
  3. Try a simple request. “Check the last five test emails. Show me the senders and subject lines.” Fetch a specific message when you need to summarize it or write a draft.

@plugin-creator Build a local plugin for my test business mailbox. Use IMAP over TLS. Add subject search and the ability to read selected messages. Read the credential from my device’s secret manager. Leave out sending, deletion and attachments.

A local plugin runs its MCP tool on your computer. This connection works on Desktop and does not automatically appear on the web or on your phone. On the command line, you can sign in to Codex CLI with the same ChatGPT Plus account and add the local MCP there. See the iRox technical guide for the terminal setup. Accessing Codex with a ChatGPT account.

What you need to share

Store your mailbox credential in your computer's secret manager. Start with read-only access, skip attachments, and send replies yourself in Roundcube. Messages stay stored on your mail server, but excerpts returned by the tool can be used in ChatGPT to answer your request. Review the data controls in your account before working with confidential correspondence. ChatGPT Data Controls.

If you only need occasional help drafting a reply, share the relevant excerpt after removing personal details. For more on owning the infrastructure itself, read “Business email on your own mail server or with a provider?”.