Create your own, robust and easy to use IMAP server. Built with Node.js and Typescript, this package offers a lightweight, high performance and straightforward interface for setting up and launching your own IMAP server.
Node LTS 20.x or higher
This package is available on npm as follows and supports both CommonJS and ECMAScript modules (ESM) projects:
npm install @protocoljs/imap
The official documentation is available at https://protocoljs.github.io/docs
You can report issues and suggest features on GitHub Issues.
Launching you own IMAP server has never been that simple! Here's a quick example to start.
import imap from "@protocoljs/imap"
function myAuthenticationFunction() : boolean {
// your custom authentication code
}
const server = imap()
server.authenticate(myAuthenticationFunction)
server.listen({port: 993, host: '0.0.0.0'})