OpenIMAPD
a free IMAP4rev2 server, built on OpenBSD, for OpenBSD
Source is currently being re-written to be free of AI-generated code.
Overview
OpenIMAPD will be an IMAP4rev2 (RFC 9051) server written in strict
C99 plus POSIX, following the same privilege-separation design as
smtpd, httpd, and ntpd: a root
parent that reads a configuration and binds sockets, an unprivileged
listener that terminates TLS and speaks the wire protocol, a separate
auth process, a keymgr process that holds the TLS private
key so the process terminating TLS never has it in memory, a parser
child that the parent forks when a store asks for one and that is
retired after a spell idle, to do every parse of attacker-reachable
content. SEARCH’s grammar and FETCH’s
ENVELOPE/BODYSTRUCTURE/header-field parsing are confined to pledge(2)
“stdio recvfd”, reading each message over a descriptor the store passes
it already open rather than opening anything itself, and a store process
forked per authenticated account, shared by all of that account’s
sessions, that chroots and drops privileges before ever touching a
mailbox. pledge(2), unveil(2), and
chroot(2) are used to enforce boundaries: the parent and
store are the only processes that can pass a file descriptor.
Source
The repository is currently offline pending a re-write.
Status
Security
If you find any security issues, please send an email to: security@openimapd.dev.
Feedback
For general feedback, please send an email to: feedback@openimapd.dev.