imap-mcp-server 2.2.0: a setup wizard only your machine can reach, and send-as aliases
3 hours ago
Version 2.2.0 of the IMAP MCP server brings two changes you will notice. The setup wizard now listens on your own machine only, closing a gap that let others on your network reach your account settings. And your agent can send mail from an alias address, taken from a list you control.
Ask about this presentation
Chapters
Show transcriptHide transcript
Version 2.2.0 of the IMAP MCP server brings two changes you will notice. The setup wizard now listens on your own machine only, closing a gap that let others on your network reach your account settings. And your agent can send mail from an alias address, taken from a list you control.
Here's the gap. The wizard used to bind to every network interface, and its localhost check on the Host header only stopped browsers. Anyone on the same network could send a request with curl, claim to be localhost, and reach the account API while the wizard ran. From there, they could point one of your accounts at their own IMAP server.
The fix is one argument. The server now passes a bind address when it starts listening, and by default that's 127.0.0.1, so other machines can't reach it. If you run the wizard on the computer with your browser, it works exactly as before.
On a server, a NAS or a VM, you have two ways in. The recommended one is an SSH tunnel. Forward port 3000, start imap-setup on the server, and open localhost in your own browser, over an encrypted connection. The other way is the new host flag, which binds the wizard to the network and requires an access token.
That token is new each time the wizard starts, and it's printed as part of the address. Open that address and the token becomes an HttpOnly cookie, gone from the address bar. Scripts send it as a bearer token. For a fixed token, set the wizard token variable, at least 16 characters long. Requests from other sites are refused.
Now the new feature. Send, save draft, reply and forward each take an optional from field. Your agent can send as the account's email, as its login if that's an email address, or as any address in the new allowedFrom list, which you set with add account or update account.
The check is strict. Matching ignores case, and your display name is kept. An address outside the list is refused, and the error names it. So is a value carrying two addresses, or a line break that tries to sneak in another header. And reply-all now leaves your aliases off the recipients.
The allowedFrom list is a guardrail inside the app. An agent that can update the account can change it, so your SMTP server still decides who may send as whom. Network mode is plain HTTP, so anyone reading your traffic can see the token and your passwords. Use it on trusted networks, or use the tunnel.
Every tool keeps its name and shape, the new fields are optional, and a wizard you run locally behaves as before. The release also updates imapflow, nodemailer and mailparser. That's 2.2.0: a setup wizard only your machine can reach, and an agent that sends from your aliases.









