Linux MailDB will create an in-memory DB (using FxHashMap) by reading the configured mail files once upon starting.
It will then start tailing the configured tail files for further updates.
The DB can be queried, e.g.:
curl 'localhost:8080/[email protected]'
curl 'localhost:8080/[email protected]?subject_filter=test subject'
Or, to retrieve all mails that have a subject:
curl 'localhost:8080/[email protected]?subject_filter='
Building happens with buildx due to heredoc contained in Dockerfile.
docker buildx build -t linux-mail-db .
I've made this to assist sys admins or support teams in debugging mail issues.