Blog

Connect your custom domain email to Claude

Connect email on your own domain to Claude through Fluxmail, whether it runs on cPanel, Hostinger, IONOS, Namecheap, GoDaddy, Google Workspace, or Microsoft 365.

Richard Chu

Fluxmail Founder

6 min read

An envelope halfway through the glowing mail slot of a folded paper house

If your email address is on your own domain, such as you@example.com, you can connect it to Claude through Fluxmail, an email MCP server. Claude can then search and read your mail, open attachments, move messages between folders, and save drafts that show up in your usual mail app.

1. Find out who hosts your mailbox

Check where you sign in to webmail or who bills you for the mailbox. The company that sold you the domain may only handle registration. If the address just forwards mail, connect the inbox where those messages arrive.

If you're unsure who hosts your mail, enter the address in Fluxmail Cloud as described in step 3. Cloud checks the domain's mail records. When it recognizes Google or Microsoft, it offers a sign-in button. For iCloud+ and Fastmail, it can fill in the servers for you.

2. Look up your host's IMAP and SMTP settings

Use your full email address as the username. For all five hosts below, choose TLS on port 993 for IMAP and 465 for SMTP.

  • cPanel hosting. In cPanel, open Email Accounts and select Connect Devices next to your address. Copy the incoming and outgoing server names under Secure SSL/TLS Settings and use your mailbox password. cPanel mail client settings
  • Hostinger Email. Use imap.hostinger.com for IMAP, smtp.hostinger.com for SMTP, and your mailbox password. You can check both names under Emails > Manage > Connect Apps & Devices in Hostinger. Hostinger configuration details
  • IONOS Mail Basic or Mail Business. Use imap.ionos.com for IMAP, smtp.ionos.com for SMTP, and your mailbox password if those are the servers listed for your region. IONOS allows alternate sender addresses only on the same domain. IONOS US server settings
  • Namecheap Private Email. Use mail.privateemail.com for both servers. In Private Email settings, turn on IMAP and SMTP under Connect third-party apps, then create an app password for Fluxmail. Namecheap mail client settings
  • GoDaddy Professional Email powered by Titan. Use imap.secureserver.net for IMAP, smtpout.secureserver.net for SMTP, and your mailbox password. If your GoDaddy plan is Microsoft 365, use the Microsoft sign-in from step 1. GoDaddy IMAP settings

If your host uses different servers, copy the names from its mail client settings. Cloud needs publicly reachable servers with valid TLS certificates for both connections, even if Claude will only read mail.

3. Connect with Fluxmail Cloud

  1. Sign up for Fluxmail Cloud. A new workspace gets a seven-day trial, and you don't need a card to start it.
  2. Open Mailboxes, select Connect mailbox > Other email provider, enter your address, and select Continue.
  3. Enter your password, or the app password if your host uses one. Leave Username empty, so Fluxmail signs in with your full address.
  4. Enter your host's IMAP server with 993 · TLS and its SMTP server with 465 · TLS, then select Connect.

Fluxmail tests both servers before it saves the mailbox. Repeat these steps for each address you want Claude to reach.

In Claude Desktop or Claude on the web, add Fluxmail from the connector directory.

  1. In Claude, open Customize > Connectors and select Discover.
  2. Search for Fluxmail, open its listing, and select Connect.
  3. Sign in to Fluxmail and pick your mailbox. For the read-only example below, leave only Read emails checked and approve. Enable Fluxmail in your conversation.

To use Cloud from Claude Code, Cursor, or another client, follow the Cloud MCP setup instructions.

4. Or run Fluxmail on your computer

Skip this step if you connected through Fluxmail Cloud.

On a computer with Node.js 22.22 or newer, install the Fluxmail CLI and create your local administrator.

npm install -g fluxmail
fluxmail setup --name "Your name" --email you@example.com

Enter your address and mail servers. This example uses Hostinger Email.

fluxmail accounts add imap \
  --email you@example.com \
  --imap-host imap.hostinger.com \
  --smtp-host smtp.hostinger.com \
  --smtp-port 465 \
  --smtp-security tls

Fluxmail uses the full address as the username and IMAP over TLS on port 993 by default. If your host's SMTP server uses port 587 with STARTTLS, leave out --smtp-port and --smtp-security, because that is the default. Fluxmail asks for the password without showing it, tests both connections, and encrypts the password in its local database.

In the project where you use Claude Code, add Fluxmail with read-only access.

claude mcp add fluxmail -- fluxmail stdio --profile read-only

For Claude Desktop, open Settings > Developer > Edit Config. Add the fluxmail entry under mcpServers alongside any existing servers, save the file, and restart Claude Desktop.

{
  "mcpServers": {
    "fluxmail": {
      "command": "fluxmail",
      "args": ["stdio", "--profile", "read-only"]
    }
  }
}

If Claude Desktop cannot find fluxmail, use the full path to the executable in the command field. Run which fluxmail on macOS or where.exe fluxmail on Windows to find it.

5. Try it

Ask Claude about your connected inbox.

What are the five most recent emails in my inbox?

You can check the senders and subject lines against the messages in your mail app.

6. Give Claude permission to draft or send

In Fluxmail Cloud, a connection keeps the permissions you approved. To change them, connect Claude again with the permissions you want, then revoke the old connection in Connections.

In self-hosted Fluxmail, switch the profile to read-write to let Claude organize mail and write drafts, or to full to let it send. For Claude Code, return to the same project and re-add the server with the new profile.

claude mcp remove fluxmail
claude mcp add fluxmail -- fluxmail stdio --profile read-write

To organize an IMAP mailbox, ask Claude to move messages into folders.

If something looks off

  • The login is rejected. Check that you can sign in to webmail with your full address and mailbox password. For Namecheap, enter the app password in Fluxmail and check that both IMAP and SMTP are enabled.
  • Sending fails but reading works. If your network blocks port 465, Hostinger, IONOS, and Namecheap also accept 587 · STARTTLS for SMTP.
  • A certificate error on cPanel hosting. Use the exact server name listed under Secure SSL/TLS Settings in Connect Devices. On shared hosting, the certificate may only cover the hosting server's name.
  • Sent messages appear twice. Some servers save their own copy of mail sent over SMTP. If you see duplicates in Sent, open Mailboxes in Cloud, choose Mailbox settings for that mailbox, and turn off Save sent mail to the Sent folder, or add --no-save-sent to the fluxmail accounts add imap command.
  • A folder is missing. Fluxmail finds Sent, Drafts, Trash, Archive, and Spam from the folder flags your server reports and then by common names. In Cloud, open Mailbox settings and select the correct folder. In self-hosted Fluxmail, get the account ID from fluxmail accounts list and specify the folder path, for example fluxmail accounts configure <account-id> --sent-folder 'Sent Items'.
  • You send from more than one address. In self-hosted Fluxmail, add the alias with your mail provider, then register it in Fluxmail. See Send from another address.

Try Fluxmail Cloud

Connect your AI agent to your Gmail, Outlook, or IMAP email accounts.