nodemailer / wildduck

Opinionated email server
https://wildduck.email/
European Union Public License 1.2
1.92k stars 268 forks source link

Standalone IMAP Server Library? #745

Closed jordanbancino closed 1 month ago

jordanbancino commented 1 month ago

I found nodemailer/smtp-server, which appears to be a standalone NodeJS library for implementing a custom SMTP server. I was wondering if there is an equivalent standalone library for IMAP. I see that Wildduck appears to implement IMAP, but I am interested in only the IMAP protocol part; I would like to implement my own backend.

Is this possible with Wildduck? If not, would it be feasible to break out the IMAP protocol functionality into its own standalone package?

Otherwise, are the any alternative Node packages that implement just the IMAP protocol and allow developers to hook into it like smtp-server?

andris9 commented 1 month ago

IMAP protocol is so much more complex that it is really hard to provide a simple server library. Some people have used the underlying IMAP server from WildDuck for it. You can find an example IMAP server implementation on top of the WIldDuck IMAP core from here (it's a standalone server implementation that provides a test server for automated tests)

jordanbancino commented 1 month ago

Very well, I understand.

The test server looks pretty close to what I want, so I will take a look and see if it will work for my needs.

Thank you for the timely response.